LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-01-2005, 10:33 PM   #1
pudhiyavan
Member
 
Registered: Oct 2003
Location: Linux world
Distribution: redhat,mandy,centos,debian,ubuntu
Posts: 209

Rep: Reputation: 30
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?
 
Old 02-02-2005, 01:11 AM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
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.
 
Old 02-04-2005, 01:42 AM   #3
pudhiyavan
Member
 
Registered: Oct 2003
Location: Linux world
Distribution: redhat,mandy,centos,debian,ubuntu
Posts: 209

Original Poster
Rep: Reputation: 30
thanks thoreau
 
Old 02-04-2005, 10:15 AM   #4
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
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..
http://www.tldp.org/HOWTO/DHCP/index.html
and also..
man dhcpd.conf

Iptables..

http://www.linuxguruz.com/iptables/h...l-HOWTO-1.html
http://www.linuxguruz.com/iptables/howto/

Last edited by DavidPhillips; 02-04-2005 at 10:21 AM.
 
Old 02-04-2005, 08:57 PM   #5
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
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.)
 
Old 02-06-2005, 01:35 PM   #6
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two-way NAT routing MPowers Linux - Networking 3 06-24-2005 03:24 PM
nat routing vaat Linux - Networking 11 02-16-2005 10:02 AM
real routing under nat routing nothingmuch Linux - Networking 4 10-27-2003 03:11 PM
Routing behind NAT bax *BSD 5 04-26-2003 05:38 PM
Routing and nat Morning_Star Linux - Networking 5 02-11-2003 11:31 AM


All times are GMT -5. The time now is 06:50 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration