Hello,
I'm a newbie in FreeBSD (eternal). So, could you check my pf.conf for correctness, please. I have an obsession that it contains some redundant or missing expressions. Task is to have access by any from LAN to HTTP, by sysadmins from LAN to any. No routing. Plans in future to add rules to access several ports from the Internet.
I'm a newbie in FreeBSD (eternal). So, could you check my pf.conf for correctness, please. I have an obsession that it contains some redundant or missing expressions. Task is to have access by any from LAN to HTTP, by sysadmins from LAN to any. No routing. Plans in future to add rules to access several ports from the Internet.
Code:
int_if="bce0"
ext_if="bce1"
int_ip="192.168.x.x"
ext_ip="x.x.x.x"
sys_admins="{ 192.168.x.a 192.168.x.b }"
table <private> const { 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 }
set skip on lo0
scrub in all
no rdr on $int_if from any to $ext_if
no rdr on $ext_if from any to $int_if
block in all
block out all
pass in quick on $int_if inet from $sys_admins to any
pass in on $int_if inet proto tcp from <private> to $int_if port = http
pass out quick on $int_if
pass out quick on $ext_if from $ext_ip to any