Share an Internet Connection With Multiple Computers

Share an Internet Connection With Multiple Computers
Linux offers the ability to act as both firewall and router for 
multiple computers. You can easily set this up using iptables. 

Execute the following commands on your Linux box. This example assumes 
that eth0 is the network interface connected to the cable or DSL modem. 

# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE 
# modprobe ip_conntrack_ftp 
# echo 1 > /proc/sys/net/ipv4/ip_forward 
# iptables -P INPUT DROP 

Of course, this is greatly simplified; it's just the basics to get you 
up and running quickly. 

Keep in mind that it doesn't matter what systems you're running on your 
network, be it Windows, Macs, or other Linux systems. All you need to 
do is tell those clients to use this Linux machine as the gateway.

Related Posts:

  • Excel Formula to return the last nonblank cell in a column or Row Some times in Excel worksheet which we update frequently by adding new data to its columns and we need to reference the last value in a particular column. That is the value most frequently entered. We can achieve this c… Read More
  • How To Make A Facebook Game In this tutorial, we'll learn how to add a HTML5 game made with Construct 2 to Facebook, and how to integrate it with Facebook's features. If you haven't already, download the Free edition of the Construct 2 HTM… Read More
  • Image Marquee In Google Sites Marquee Images : Marquee is a scrolling display of text and images on a web page.  On our site you can find it by the script code, but this way is not easy for everyone. If you want it on your site I'll t… Read More
  • Backing Up Your Computer Imagine what would happen if your computer suddenly stopped working. Would you lose any important documents, photos, or other files? It may be possible to repair your computer, but your files may be lost forever. Luckily, yo… Read More
  • How To Clean Monitor Dirt, finger prints, and dust can make your computer screen difficult to read; however, it's easy to clean your screen when needed. Although there are monitor cleaning kits that you can buy, they may damage your monitor if t… Read More

0 comments: