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 04-07-2004, 03:08 PM   #1
thirumala
LQ Newbie
 
Registered: Mar 2004
Location: USA
Posts: 18

Rep: Reputation: 0
Red face how to setup router on linux as a open firewall


Hi anybody,


I want to set up a router on linux for NIST Net testing. The router should allow all traffic without any filters between interfaces eth0 and eth1. That means open firewall.

I have been trying to achieve this, but I couldn’t succeed. I could ping in one direction but not in other direction.

Could anybody help me in resolving this problem?
I want step by step procedure to setup open firewall router.

Thanks,
Thiru
 
Old 04-07-2004, 04:55 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
What kind of IPs are used by networks connected to eth0 and eth1? Are they local in one of the networks, local in both or both global?
 
Old 04-07-2004, 05:18 PM   #3
thirumala
LQ Newbie
 
Registered: Mar 2004
Location: USA
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Mara
What kind of IPs are used by networks connected to eth0 and eth1? Are they local in one of the networks, local in both or both global?
thanks for the reply.

local in both.

Here is the picture:

GW-------SW-------------[eth0 linux box with redhat 9.0 eth1]--------client pc

Eth0: 192.168.10.40 with 192.165.10.0 network
Router/GW: 192.168.10.1

Eth1: 192.168.20.1 with 192.168.20.0 network

Client PC: 192.168.20.25


thanks,
Thiru
 
Old 04-07-2004, 05:28 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
So I understand that RH box has 192.168.10.x subnet set to be sent to eth0 and 192.168.20.x to eth1.
How have you set the GW on client PC? It should have a gateway in the same subnet it's in, so the geteway for it should be 192.168.20.1 (RH machine).
 
Old 04-07-2004, 06:01 PM   #5
thirumala
LQ Newbie
 
Registered: Mar 2004
Location: USA
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Mara
So I understand that RH box has 192.168.10.x subnet set to be sent to eth0 and 192.168.20.x to eth1.
How have you set the GW on client PC? It should have a gateway in the same subnet it's in, so the geteway for it should be 192.168.20.1 (RH machine).
yes, I do.

The client PC has GW set to 192.168.20.1.

-thanks
 
Old 04-08-2004, 10:26 AM   #6
thirumala
LQ Newbie
 
Registered: Mar 2004
Location: USA
Posts: 18

Original Poster
Rep: Reputation: 0
Hello anybody,


Any idea?

-Thiru
 
Old 04-09-2004, 09:20 AM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
So how does the routing table on RH machine look like?
 
Old 04-09-2004, 10:52 AM   #8
thirumala
LQ Newbie
 
Registered: Mar 2004
Location: USA
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Mara
So how does the routing table on RH machine look like?
thanks for the reply.

here is the route command output:


Here is “route” command output:

192.168.20.0 * 255.255.255.0 U 0 0 0 eth1
192.168.10.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 l0


Thanks,
Thiru
 
Old 04-10-2004, 06:38 PM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
There's no default gateway set on the RH machine. The line with '169.254.' probably was written to work this way, but it's probably not enough.
 
  


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
How can I setup a Linux firewall router for my public class C IP block? abefroman Linux - Networking 9 09-06-2005 03:32 PM
how am I supposed to setup my router on my linux, so that i can open ssh 22 port? babyboss Linux - Networking 9 09-23-2004 08:33 AM
Howto setup two stage firewall? Linux and router-in-a-box? drdirt Linux - Security 5 01-10-2004 03:51 AM
router/firewall setup please help?! basatum Mandriva 1 09-20-2003 04:53 PM
setup linux firewall/router sub_netter Linux - Networking 4 08-15-2003 07:18 AM


All times are GMT -5. The time now is 04:51 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration