Monthly Archives: May 2013

Port forwarding with iptables

If you ever want to try port forwarding with iptables, here is a quick example of forwarding a public port (45000) – public network to a private port (22) – ssh – private network: $ iptables -t nat -A PREROUTING -p tcp –dport 45000 -j DNAT –to-destination 192.168.1.200:22 $ iptables -t nat -A POSTROUTING -j read more »

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS