Try this config:
# Define the internal and external interfaces
internal_if = "re0"
external_if = "pppoe0"
# NAT rule
nat on $external_if inet from $internal_if:network to any -> ($external_if)
round-robin
# Example pass rules (you may need to adjust these based on your
requirements)
pass out on
I am trying to setup a rule in pf.conf on NetBSD10
my internal interface is re0 => 192.168.6.2/24
my internet connection is pppoe0 => with a public internet IP
netstat -rn shows pppoe0 as default
my pf.conf says:
nat on egress inet from re0:network to any -> (egress) round-robin
it accepts the pf