LinuxQuestions.org
Review your favorite Linux distribution.
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 03-14-2007, 10:59 AM   #1
sajjad81
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
Routing issue with two linux with firewall


Hello, I have a fedora box with IP Masquerading setup. I used the instructions on tldp.org to set it up. The problem is that I can't ssh from my firewall box to any internal linux box. my firewall is configured eth0 as internal and eth1 as external and just using basic iptables ruleset from the tutorial. When I try to ssh to my internal box 192.168.0.x from the external box I get " ssh: connect to host 192.168.0.x port 22: No route to host". I can ping the ip fine. My routing table looks like this:
[root@oracle rc.d]# ip route show
192.168.0.11 via 192.168.0.1 dev eth0
192.168.0.0/24 via 192.168.0.1 dev eth0
external_IP/24 dev eth1 proto kernel scope link src ISP_address
169.254.0.0/16 dev eth0 scope link
default via ISP_gateway dev eth1

[root@oracle rc.d]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.11 192.168.0.1 255.255.255.255 UGH 0 0 0 eth0
192.168.0.0 192.168.0.1 255.255.255.0 UG 0 0 0 eth0
external_IP 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 eth0
0.0.0.0 ISP_gateway 0.0.0.0 UG 0 0 0 eth1


what's wrong with my routing table? Please help.
BTW: the natting works fine, I can ssh to the firewall box on both interface fine. just can't ssh/telnet from the firewall to anywhere else.
Thanks.
 
Old 04-06-2007, 05:41 PM   #2
UhhMaybe
Member
 
Registered: Jul 2004
Location: Salt Lake City, Utah
Distribution: Absolute 12.0 Studio 64 1.3.0
Posts: 470

Rep: Reputation: 30
Cool

Change the firewall rules.
 
  


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 or firewall issue svandena Linux - Networking 6 11-14-2006 09:34 AM
Firewall routing by hostname - possible? jread Linux - Networking 3 09-16-2005 11:34 AM
Firewall Routing trent000 SUSE / openSUSE 1 07-19-2005 11:17 AM
masquerading / routing /firewall issue? VultureCulture Linux - Networking 2 10-04-2002 11:47 AM

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

All times are GMT -5. The time now is 03:07 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