Skip to content
WhistleMaster edited this page Mar 16, 2012 · 1 revision

WAN Port usage

Disclaimer: This is a user created guide and is not provided by the Hak5 development team. This information is provided “as is”. Source: Darren Shady thread.

Configuration

iptables -A FORWARD -i eth1 -o wlan0 -s 172.16.42.0 -m state --state NEW -j ACCEPT
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
Clone this wiki locally