How to set up Internet connection sharing with iptables on Linux
Posted on: 06/09/2014 01:53 PM

Xmodulo posted a tutorial about setting up Internet connection sharing with iptables on Linux

How to set up Internet connection sharing with iptables on Linux


In this tutorial, I'll explain how to share a single Internet connection among multiple devices on Linux. While consumer-grade WiFi routers have become mainstream nowadays, making this problem a non-issue, suppose you don't have one at home. However, say you have a Linux box already assembled with a modem and a LAN card. The modem is connected to the Internet with a dynamic public IP address, and the LAN card connected to your switch/hub. Other devices (Linux/Windows PC, laptop) are connected to the switch without having any Internet connection. To share the Internet connection of the Linux box, you have to turn the box into a gateway, so that it can relay traffic to and from other devices.



Printed from Linux Compatible (http://www.linuxcompatible.org/news/story/how_to_set_up_internet_connection_sharing_with_iptables_on_linux.html)