problem with ssh redhat, 2 nic cards, one route
Posted on 2003-03-02
I've had a redhat server running for about 8 months now, I just decided to put it on the local subnet as well though and I've had nothing but problems.
Here's the setup
I have my isp connected to a hub, which goes to the server and a router, then I have another connection from the router going back into the server on my other nic card
so eth0 - say 147.32.342.12 my server ip
and eth1 - 192.168.100.103
for the most part I don't have any problems, however when people try to remoting ssh they cannot connect.
I however do not have a problem connecting through either of them, both 147.32.342.12 works, and 192.168.100.103 work for me.
my var/log/secure looks something like this
Mar 2 14:20:34 IceServer sshd: Accepted password for sean from 136.159.xx.xxx port 1585 ssh2
Mar 2 14:34:00 IceServer sshd: Received disconnect from 136.159.xx.xxx: 11: Disconnect requested by Windows SSH Client.
Mar 2 14:48:41 IceServer sshd: Received signal 15; terminating.
Mar 2 14:50:32 IceServer sshd: Server listening on 0.0.0.0 port 22.
Mar 2 14:56:06 IceServer sshd: Could not reverse map address 192.168.100.103.
Mar 2 14:56:07 IceServer sshd: Accepted password for root from 192.168.100.103 port 4480
I thought it was something to do with my routing tables that maybe my router was blocking it...
here is my route table
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.0 * 255.255.255.0 U 0 0 0 eth1
68.xxx.xx.0 * 255.255.252.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.100.1 0.0.0.0 UG 0 0 0 eth1
default 68.xxx.xx.x 0.0.0.0 UG 0 0 0 eth0
Extra points if someone can tell me why my sendmail is now saying "relaying denied possible forged ip" now even though before I was on the subnet I didn't have the problem