LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-12-2008, 01:06 AM   #1
ochienged
Member
 
Registered: Oct 2007
Location: Plano, TX
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 70

Rep: Reputation: 26
Cool Distribute internet to LAN from centOS server


i have a CentOS server that has two NIC cards; eth0(217.21.119.17) connects to the internet whereas eth1(192.168.0.1) connects to a LAN. some kindly direct me how i can make the computers on the LAN access the internet(NOTE: The server has access to both networks). Please explain elaborately since i am doing this for the first time.
 
Old 02-12-2008, 07:32 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
It is probably beyond the scope of a forum like this to explain what you need in extreme detail, however there are a few online resources that do this, as well as some products that will both simplify and improve the quality of your product. One article I find quite well done is http://librenix.com/?inode=9837. You can use a GUI tool or canned package to create a good firewall/router. Two examples of these are homeLANSecurity and Firestarter. These offer the advantage of someone else's expertise being built into your final product, as well as significantly reducing the learning effort.

Do you have the two ethernet interfaces working now? If yes, you are already well on your way. Have a go at it, and come back here when you bump into a problem. For further research, try Googling "linux router firewall".
--- rod.
 
Old 02-13-2008, 08:17 AM   #3
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
You need to setup a basic iptables firewall and install ip-masquerading; see this guide.

Once you have this established then configure the IP addresses on the lan to the same subnet. It is often easier to use static addresses but you can also use dhcp. You must assign IP addresses in the range 192.168.0.2 - 192.168.0.254. When you have done that then set the gateway for each box on the lan as 192.168.0.1. You should be good to go.

Last edited by TigerOC; 02-13-2008 at 08:19 AM.
 
  


Reply



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
how to configure CentOS as internet server? czarjohnph Linux - Networking 2 01-16-2006 12:29 AM
Running A Quake 3 Server over LAN and internet Bremen Linux - Games 1 06-05-2005 09:48 PM
a Distribute for a server and coding blackman890 Linux - Distributions 5 03-26-2005 08:51 PM
New server on my work lan, cannot ping to it on get on internet. leejenson Linux - Networking 2 11-13-2003 11:35 AM
How can I CONNECT my Lan to Internet through a proxy server Mike1234 Linux - Networking 3 07-17-2003 11:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:01 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration