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. |
Change the firewall rules.
|
All times are GMT -5. The time now is 09:23 AM. |