version 1.13, 2008/03/03 16:58:41 |
version 1.14, 2011/04/07 13:33:52 |
|
|
# Return HTTP/HTML error pages to the client |
# Return HTTP/HTML error pages to the client |
return error |
return error |
|
|
|
# Block disallowed sites |
|
label "URL filtered!" |
|
request url filter "www.example.com/" |
|
|
# Block disallowed browsers |
# Block disallowed browsers |
label "Please try a <em>different Browser</em>" |
label "Please try a <em>different Browser</em>" |
header filter "Mozilla/4.0 (compatible; MSIE *" from "User-Agent" |
header filter "Mozilla/4.0 (compatible; MSIE *" from "User-Agent" |
|
|
} |
} |
|
|
relay httpproxy { |
relay httpproxy { |
# Listen on localhost, accept redirected connections from pf(4) |
# Listen on localhost, accept diverted connections from pf(4) |
listen on 127.0.0.1 port 8080 |
listen on 127.0.0.1 port 8080 |
protocol httpfilter |
protocol httpfilter |
|
|
# Forward to the original target host |
# Forward to the original target host |
forward to nat lookup |
forward to destination |
} |
} |