Hello,
I cannot seem to find information on how to perform NAT for multiple internal (LAN) interfaces with pf.
I have a very simple set of rules for performing basic NAT:
My question is, how would I adjust the above to allow for more than one internal interface?
Thanks!
I cannot seem to find information on how to perform NAT for multiple internal (LAN) interfaces with pf.
I have a very simple set of rules for performing basic NAT:
Code:
# Definitions
ext_if = "wlan0" # macro for external interface - use tun0 for PPPoE
int_if = "ue0" # macro for internal interface
localnet = $int_if:network
icmp_types="echoreq"
# Skip all loopback traffic
set skip on lo
# Scrub all traffic
scrub in
# Perform NAT on external interface
nat on $ext_if from $localnet to any -> ($ext_if)
# Default block rule
block log all
# Allow from internal
pass from { lo0, $localnet } to any keep state
My question is, how would I adjust the above to allow for more than one internal interface?
Thanks!