All pastes #240546 Raw Edit

Someone

public text v1 · immutable
·published 2006-11-05 20:15 UTC
rendered paste body
echo Enabling Masquerade...
modprobe ipt_MASQUERADE
iptables -F; iptables -t nat -F; iptables -t mangle -F
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to XX.YY.ZZ.TT
echo 1 > /proc/sys/net/ipv4/ip_forward

Note: eth0 is your local net. XX.YY.ZZ.TT is your public ip (internet)