Routing SSH from LAN to Dial-Up (Masquerade)

This is useful if you want to route a service like ssh over a different link (e.g. one that has lower bandwidth but better pings than your main link)
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -p tcp --dport 22 -o ppp0 -j MASQUERADE


Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?