LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-28-2006, 11:33 PM   #1
halo_75
LQ Newbie
 
Registered: Nov 2006
Posts: 5

Rep: Reputation: 0
Linux Router


Hi,
I´ve been playing round with linux for a couple of years now and have managed to do quite a few tricks with it........but i´ve hit a brick wall with this issue. I´ve been googling it all day and had no luck, i´m sure there´s an easy solution i have overlooked.

I have a Fedora box set up with 2 nics. The Firestarter GUI insalled.
2 networks - 172.x.x.x (internal) and 192.x.x.x (external)
eth0 - 192.168.252.14
eth1 - 172.17.1.14
Fedora box routes everything fine from any pc on the 172.x.x.x range through to any pc on the 192.x.x.x range, but no the other way.

I have set a route on the machines in the 192 range as:

172.17.1.0 255.255.255.0 192.168.252.14 (eth0)

and it can pint eth1 (172.17.1.14) fine, but nothing past that.

Can anyone help??? As I said, i´m sure it something really simple....and my brain is fried from sitting here for hour staring at this monitor :-(
Thanx in advance.

Halo
 
Old 11-29-2006, 03:15 AM   #2
mickyg
Member
 
Registered: Oct 2004
Location: UK
Distribution: Ubuntu/Kubuntu
Posts: 249

Rep: Reputation: 30
I may be clutching at straws here but could this be a firewall issue?? I.e. Do the 192 PCs have the 172 PCs set as trusted, but the 172 PCs are blocking traffic from the 192 PCs? - Just a thought.

Also, when you say:
Quote:
I have set a route on the machines in the 192 range as:

172.17.1.0 255.255.255.0 192.168.252.14 (eth0)

and it can pint eth1 (172.17.1.14) fine, but nothing past that.
Do you mean a PC on the 192 subnet (e.g. PC 192.168.252.13) can ping 172.17.1.14 but not, for example, 172.17.1.13?

Last edited by mickyg; 11-29-2006 at 03:18 AM.
 
Old 11-29-2006, 07:54 AM   #3
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
There are a couple of issues that need to be looked at. One being where is your default route set to. And probably most importantly, what you have done with the firewall. I haven't used your firestarter GUI but I do use IPtables. Typically if you put ANY chain or filter in besides the default ones that allow everything, you must put something in for everything. Get the point. So, I would first turn off iptables and then try it. If it works, its got to do with the firewall. If it doesn't, it may be your routing statements. If it is the firewall, then try writing a rule that allows the traffic one way and then write one that allows it the other way. Or however you want it set up. Try that and repost.
 
Old 11-29-2006, 10:45 AM   #4
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
The 192.x.x.x (external) network would'nt be having any route for 172.x.x.x network.
You can verify the same with shuttting down your firewall for some time & then try if you get any replies for your ping 192.x.x.x packets ?

Another thing is that i really dont understand about what you mean by 192.x.x.x network being external ?????
Can you be more specific or detail in this regards ?
 
Old 11-29-2006, 06:08 PM   #5
halo_75
LQ Newbie
 
Registered: Nov 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Hi, and thank you for your replys.
Even with the firewall stopped, I still can´t ping the 172 network. But even if it was a firewall issue, u would think it would be stoppping me from pinging Eth1 (172.17.1.14) when it´s on...but it doesn´t.

Quote:
Originally Posted by mickyg
Also, when you say:
Do you mean a PC on the 192 subnet (e.g. PC 192.168.252.13) can ping 172.17.1.14 but not, for example, 172.17.1.13?
Yep, thats rite.....

ScooterB,
with iptables stopped I get the same issue. So i´m thinkin it´s gotta be a route issue.
Route -n
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.252.0 192.168.252.14 255.255.255.0 UG 0 0 0 eth0
192.168.252.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
172.16.175.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet8
172.17.1.0 172.17.1.14 255.255.255.0 UG 0 0 0 eth1
172.17.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 192.168.252.254 0.0.0.0 UG 0 0 0 eth0

amitsharma_26,
Sorry, shouldn´t have used external. 192.x.x.x network is dmz.

Thanx again for your replys.
Halo
 
Old 11-29-2006, 08:48 PM   #6
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
Lightbulb

After replying to another post similar to yours today, it came to me. You need a Source network translation rule for each of the two networks. That's why with the firewall off it still didn't work. I made a similar recommendation to another poster and he came back and said that it did the trick. Try setting up the snat statements for each netork and give it a go. Then repost.
 
Old 12-05-2006, 09:11 PM   #7
halo_75
LQ Newbie
 
Registered: Nov 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Excellent........SNAT set up and networks are pinging beautifully!!! Thanx for that scooterB.....much appreciated!!
Cheers.
 
Old 12-06-2006, 07:59 AM   #8
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
You're quite welcome. That's what we're all here for. Now enjoy!
 
  


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
Small Linux Router/firewall behind D-Link Hardware router dleidlein Linux - Networking 6 04-30-2007 05:12 AM
linux as router/gateway/firewall to dsl-router sjoerdvvu Linux - Networking 2 02-24-2006 10:56 PM
Linux Router & Netgear Wireless Router DMaCATO Linux - Wireless Networking 1 04-30-2004 09:16 AM
/etc/resolv.conf configuration when behind a router(not a linux router) rmanocha Linux - Networking 2 04-28-2004 01:52 AM
ADSL Router + Linux Router + LAN = HELP!!! linuxlois Linux - General 2 09-16-2003 08:24 AM

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

All times are GMT -5. The time now is 10:45 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
Open Source Consulting | Domain Registration