~# sysctl -w net.inet.ip.forwarding=1
cat /etc/sysctl.conf
net.inet.ip.forwarding=1
cat /etc/pf.conf
ext_if="YOUR-IF"
int_if="YOUR-IF"
set skip on lo
set skip on lo
pass in all
pass out all
nat on $ext_if from RFC1918 to any -> IPEXTIF
~# pfctl -e
~# pfctl -nvf /etc/pf.conf
~# pfctl -vf /etc/pf.conf
Just like very simple Gateway.
biOos
No comments:
Post a Comment