View Full Version : sshd problem w/ 2 nic's
wiz561
2004-12-28, 12:57 PM CST
Hi!
I ran into a small problem and I think it may be related to routing. Here's what's going on. I just wrote like 3 pages and figured out it was too complicated. So, here's the easy way... :-)
I have two interfaces, eth0 and eth1. eth0 is connected to an internal lan (192.168.x.x number). eth1 is connected straight to the internet. I want to be able to ssh into the machine on both interfaces, and it's currently not letting me do this. Is there a way to tell the machine to accept ssh connections on eth0 and eth1?
Thanks in advance!
Growler
2004-12-29, 10:35 AM CST
Hi!
I ran into a small problem and I think it may be related to routing. Here's what's going on. I just wrote like 3 pages and figured out it was too complicated. So, here's the easy way... :-)
I have two interfaces, eth0 and eth1. eth0 is connected to an internal lan (192.168.x.x number). eth1 is connected straight to the internet. I want to be able to ssh into the machine on both interfaces, and it's currently not letting me do this. Is there a way to tell the machine to accept ssh connections on eth0 and eth1?
Thanks in advance!sshd should listen on all local addresses. is ListenAddress defined in your sshd_config file? If so, try undefining it and see what happens.
wiz561
2005-01-03, 09:27 AM CST
I checked the sshd config and the ListenAddress is not defined (pound sign in front of the line). I tried it again and the same results.
I'm wondering if it has something goofy to do with the new FC3 kernel stuff. I'm running SELINUX with it and wonder if that has something to do with it not working.
Thanks!
ewdi
2005-01-03, 09:30 AM CST
any firewall running?
wiz561
2005-01-04, 02:59 PM CST
Yes, but I tried it by turning it off by issuing....
/etc/init.d/iptables stop
When I tried that, the problem still exists. :-(
Thanks!
harlequin
2005-01-04, 03:11 PM CST
Applications -> System Settings -> Security level is where I changed it. (NB. I'm using fedora core 3, so it may or may not exists for you)
etucker
2005-01-04, 03:21 PM CST
Hi
had this same prob recently. it's down to the default routing for IP. You need to set up ip route rules to make sure that incoming stuff goes back out the same interface.
it worth going throuh this doc for info:
http://www.tldp.org/HOWTO/Adv-Routing-HOWTO/index.html
the specific section for you is:
http://www.tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.rpdb.multiple-links.html
hope it works out.
Elliot.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.