Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-07-2004, 02:08 PM
|
#1
|
|
LQ Newbie
Registered: Mar 2004
Location: USA
Posts: 18
Rep:
|
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
|
|
|
|
04-07-2004, 03:55 PM
|
#2
|
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,471
Rep: 
|
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?
|
|
|
|
04-07-2004, 04:18 PM
|
#3
|
|
LQ Newbie
Registered: Mar 2004
Location: USA
Posts: 18
Original Poster
Rep:
|
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
|
|
|
|
04-07-2004, 04:28 PM
|
#4
|
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,471
Rep: 
|
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).
|
|
|
|
04-07-2004, 05:01 PM
|
#5
|
|
LQ Newbie
Registered: Mar 2004
Location: USA
Posts: 18
Original Poster
Rep:
|
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
|
|
|
|
04-08-2004, 09:26 AM
|
#6
|
|
LQ Newbie
Registered: Mar 2004
Location: USA
Posts: 18
Original Poster
Rep:
|
Hello anybody,
Any idea?
-Thiru
|
|
|
|
04-09-2004, 08:20 AM
|
#7
|
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,471
Rep: 
|
So how does the routing table on RH machine look like?
|
|
|
|
04-09-2004, 09:52 AM
|
#8
|
|
LQ Newbie
Registered: Mar 2004
Location: USA
Posts: 18
Original Poster
Rep:
|
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
|
|
|
|
04-10-2004, 05:38 PM
|
#9
|
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,471
Rep: 
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:44 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|