22 April 2010

OpenBSD Like Gateway

Simple Make this:

~# 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
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: