LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-22-2003, 03:46 AM   #1
lumux
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Rep: Reputation: 0
Routing


OK here is what I want to do.......

I want to use a Red Hat 8 or 9 box to act as a Router between a unsecure "Real IP" network and a secure DHCP NAT Network. I am planning to use a box with two ethernet cards, One configured for each network.

Question:
Am I right in thinking if I set the default gateway on the box to the normal intenet gateway on the unsecure network. Then use the secure ip address of the box as the gateway for all the machines on the secure side.....will this work?

Have I missed something?

Any thoughts on this will be appreciated
 
Old 08-22-2003, 06:32 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
On your Linux system, assign a default gateway only for the NIC that will be connected to the Internet. The NIC that connects to your local network does not require a default gateway.

You will also need to enable ip forwarding

edit /etc/sysctl.conf and set
net.ipv4.ip_forward = 1

I am sure you will indeed use iptables to filter traffic.
 
Old 08-22-2003, 06:38 AM   #3
lumux
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Thank you

are there any other consideration I should take into account?
 
Old 08-22-2003, 06:52 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
DNS perhaps, DDNS if you so please

Squid proxy if you want to regulate access... anything else???
 
Old 08-22-2003, 06:54 AM   #5
lumux
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0

I thing that will hold me for now.....see how far I get
 
  


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
routing jmono Linux - Networking 5 02-07-2006 06:20 AM
Routing gtkmike Linux - Networking 1 11-13-2003 09:21 AM
real routing under nat routing nothingmuch Linux - Networking 4 10-27-2003 03:11 PM
Routing in RH 8.0 Hybrid Blue Linux - Networking 2 10-12-2003 05:41 PM
Routing jimval7 Linux - Networking 3 02-08-2002 04:06 PM

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