#004: Using iptables to share your internet connection

November 11th, 2006 by patrys

One of the less intuitive networking tasks often performed on Linux boxes is the connection sharing process. Here is a short clip to show you how iptables works.

Tips

  • Use iptables -t nat -I POSTROUTING -s 192.168.0.1/24 -j MASQUERADE to set up a dynamic masquerade (the most popular way of sharing the connection where your internet IP is likely to change)
  • Remember to replace 192.168.0.1/24 with your local area network IP and mask in the above example

Download and watch

Using iptables to share your internet connection (0.3MB)

about


This is the about me section, you will prob. want to edit this. If you want to change the image you may do so by changing the avatar.jpg located in the NewZen images directory.

search

navigation

archives

categories