1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-20 10:17:16 +01:00
fwbuilder/test/pf/firewall40.conf.orig
2011-01-03 13:01:06 -08:00

42 lines
1.2 KiB
Plaintext

# Tables: (1)
table <tbl.r4.s> { 192.0.2.1 , 192.0.3.1 , 192.168.1.1 }
#
# Rule 0 (NAT)
# Translate source address
# for outgoing connections
nat on le1 proto {tcp udp icmp} from 192.168.1.0/24 to any -> 192.0.2.1
#
# Rule 1 (NAT)
# Translate source address
# for outgoing connections
nat on le2 proto {tcp udp icmp} from 192.168.1.0/24 to any -> 192.0.3.1
#
# Rule 0 (lo0)
pass quick on lo0 inet from any to any label "RULE 0 -- ACCEPT "
#
# Rule 1 (fxp0)
pass quick on fxp0 inet from 192.168.1.0/24 to 192.168.1.0/24 label "RULE 1 -- ACCEPT "
#
# Rule 2 (fxp0)
pass in quick on fxp0 route-to { ( le1 192.0.2.10 ) } inet proto tcp from 192.168.1.0/24 to any port { 80, 25 } label "RULE 2 -- "
#
# Rule 3 (fxp0)
pass in quick on fxp0 route-to { ( le2 192.0.3.10 ) } inet proto tcp from 192.168.1.0/24 to any port 22 label "RULE 3 -- "
#
# Rule 4 (global)
pass out quick inet from <tbl.r4.s> to any keep state label "RULE 4 -- ACCEPT "
#
# Rule 5 (global)
block log quick inet from any to any label "RULE 5 -- DROP "
#
# Rule fallback rule
# fallback rule
block quick inet from any to any label "RULE 10000 -- DROP "