mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-15 01:19:29 +02:00
should use "(interface)" syntax to the right of "->" in NAT rules. This now works for all interfaces, including those that have ip addresses in fwbuilder configuration, when interface object appears in "Translated Source" in a nat rule. When firewall object appears in "Translated Source", it gets replaced with a set of its interfaces which also get translated into "-> (interface)".
24 lines
650 B
Plaintext
24 lines
650 B
Plaintext
|
|
|
|
|
|
#
|
|
# Rule 0 (NAT)
|
|
# rule is attached to physical interface en0
|
|
# but uses address of carp0 for translation
|
|
nat on en0 proto {tcp udp icmp} from 192.168.1.0/24 to any -> (carp0)
|
|
|
|
#
|
|
# Rule -3 CARP (automatic)
|
|
pass quick on vlan100 inet proto carp from any to any label "RULE -4 -- ACCEPT "
|
|
#
|
|
# Rule -2 CARP (automatic)
|
|
pass quick on en1 inet proto carp from any to any label "RULE -3 -- ACCEPT "
|
|
#
|
|
# Rule -1 CARP (automatic)
|
|
pass quick on en0 inet proto carp from any to any label "RULE -2 -- ACCEPT "
|
|
#
|
|
# Rule fallback rule
|
|
# fallback rule
|
|
block quick inet from any to any no state label "RULE -1 -- DROP "
|
|
|