Thursday, May 22, 2014

Vyatta - How to block specific URL


Log in to Vyatta Firewall and switch to configure mode

configure
set service webproxy url-filtering squidguard local-block 'itsysroute.cl'
set service webproxy url-filtering squidguard local-block-url 'itsysroute.cl'
set service webproxy url-filtering squidguard redirect-url 'http://www.google.com'
commit
save

Have a look at Vyatta configuration

configure
show service webproxy
    cache-size 20480
    domain-noncache mydomain.vn
    listen-address 192.168.1.2 {
    }
    maximum-object-size 40960
    mem-cache-size 1500
    url-filtering {
        squidguard {
        local-block itsysroute.cl
        local-block-url itsysroute.cl
        redirect-url 
http://www.google.com }
    }


0 comments:

Post a Comment