|
|
|||
SHARE
AN INTERNET CONNECTION WITH MULTIPLE COMPUTERS With "always-on" connections, the need for a firewall becomes more of a requirement than a luxury, and there's a number of fairly inexpensive hardware appliances available that act as both firewall and router. However, your Linux desktop can fulfill this need and save you a few dollars in the process. Linux offers the ability to act as both firewall and router for multiple computers. You can easily set this up using iptables. A number of tools exist to help build firewall scripts using iptables. If you just want to share a connection with a very simplistic firewall, you can even be up and running in a few minutes. 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 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. |
||||