-   Linux - Networking (
-   -   routing, nat question? (

pudhiyavan 02-01-2005 10:33 PM

routing, nat question?
sorry to raise this question,

in linux we can do route and nat, similar way how to internet sharing in windows xp, any opensource tools available?

Thoreau 02-02-2005 01:11 AM

Yes, what you call "Internet Connection Sharing" is called dhcpd in linux or any other OS. It's just a dhcp server, not a big deal at all.

pudhiyavan 02-04-2005 01:42 AM

thanks thoreau

DavidPhillips 02-04-2005 10:15 AM

ICS has two components. A dhcp server and a NAT router.

To get the same thing in linux you need to setup dhcpd. And you also need to setup iptables to do nat and configure your kernel to allow packet forwarding.

dhcpd requires a config file /etc/dhcpd.conf

check this..
and also..
man dhcpd.conf


gd2shoe 02-04-2005 08:57 PM

I would personally be interested in doing the IP tables manually (not that I have the tallent, lol). Many would not. So your are aware, there are a number of "firewalls" for Linux. Most (if not all) of these work by manipulating the IP tables. At least some of these can be configured to allow packet forwarding. The easy answer might be to get a firewall! (kinda sounds funny doesn't it.)

Thoreau 02-06-2005 01:35 PM

As an addendum. Most linux distributions have a button in their control panel that set's up both parts automagically. This has become standard on most major distributions. So, effectively you don't have to know anything at all.

All times are GMT -5. The time now is 08:35 PM.