Category Archives: Iptables

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 $ iptables -t nat -A POSTROUTING -j read more »

Share and Enjoy

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