All pastes #418641 Raw Edit

Unnamed

public text v1 · immutable
#418641 ·published 2007-03-31 19:10 UTC
rendered paste body
# ath0 goes to WAN, eth0 goes to LAN
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
iptables --table nat --append POSTROUTING --out-interface ath0 -j MASQUERADE
iptables --append FORWARD --in-interface eth0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward