1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-21 10:47:16 +01:00
fwbuilder/test/pf/firewall39.conf.orig
Vadim Kurland 344a22feed see #2524 'avoid " {tcp udp icmp} " in place of protocol'. NAT
compiler for PF does not need to generate protocol match "proto {tcp
udp icmp}" when service object used in the NAT rule is "any". The
reason this was done this way is lost in the mist of time; it's been
like this since very early versions of fwbuilder.
2011-06-22 11:03:07 -07:00

61 lines
1.7 KiB
Plaintext

#
# Scrub rules
#
scrub in all fragment reassemble
#
# Rule 0 (NAT)
nat on le0 from 192.168.1.0/24 to any -> (le0)
nat on enc1 from 192.168.1.0/24 to any -> (enc1)
#
# Rule 1 (NAT)
nat on le0 from 192.168.1.0/24 to any tagged ipsec_tag -> (le0)
nat on enc1 from 192.168.1.0/24 to any tagged ipsec_tag -> (enc1)
#
# Rule 0 (le0)
pass in on le0 inet from any to any tag INTNET keep state
#
# Rule 1 (enc1)
pass in quick on enc1 inet from any to any keep state
#
# Rule 2 (enc0)
# logging is not allowed with 'anchor'
# compiler should not generate 'log' keyword
anchor "rule2_branch" in on enc0 inet proto 50 from any to any
anchor "rule2_branch" in on enc0 inet proto 51 from any to any
#
# Rule 3 (enc0)
anchor "rule3_branch" in on enc0 inet proto tcp from any to any port 80
#
# Rule 4 (lo)
pass quick on lo inet from any to any keep state
#
# Rule 5 (global)
anchor "rule5_branch" inet proto 50 from any to any
anchor "rule5_branch" inet proto 51 from any to any
#
# Rule 6 (global)
pass quick inet proto 50 from any to any keep state
pass quick inet proto 51 from any to any keep state
#
# Rule 7 (global)
pass quick inet proto tcp from any to any port 80 keep state
pass quick inet from any to any tagged ipsec_tag keep state
#
# Rule 9 (global)
pass quick inet proto tcp from 192.168.1.0/24 to any port 25 queue mail
#
# Rule 10 (global)
block log quick inet from any to any
#
# Rule fallback rule
# fallback rule
block quick inet from any to any
load anchor rule2_branch from "/etc/fw/firewall39-rule2_branch.conf"
load anchor rule3_branch from "/etc/fw/firewall39-rule3_branch.conf"
load anchor rule5_branch from "/etc/fw/firewall39-rule5_branch.conf"