[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rdr rule for proxy



running openbsd 3.2 - just upgraded this morning
and i have one pf rule i cant get to work

# Redirect HTTP requests to Proxy Server except DOMAIN Web Sites
rdr on $Int inet proto tcp from $Lan to ! $DOMAIN port 80 -> 
xxx.xxx.xxx.8 port 80

here is all i get when i try to load pf.conf with the rule applied
firewall:~ # pfctl -f /etc/pf.conf
/etc/pf.conf:62: syntax error
pfctl: Syntax error in file: pf rules not loaded

im assuming it has to do with the ! $DOMAIN
if i take that part out and just go with
rdr on $Int inet proto tcp from $Lan to any port 80 -> xxx.xxx.xxx.8 
port 80
it will work but i dont want to proxy for my local webservers.