TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ssh and NAT



Does anything special need to be done to get ssh working through NAT ?

I've got my USWest DSL hooked up (finally !).  I'm using the Cisco 675
external with DHCP server enabled.  So eth0 on the linux box is configured
to get its ip address via dhcp.  Also NAT is probably working in port
address translation mode, since the router negotiates just one wan address
from the isp (also uswest) which is also dynamic (dhcp) not static.

Suddenly ssh is starting to misbehave.  I'm able to log in to my sshd server
at work, but in a few minutes the whole connection freezes.  Don't know
whats causing it.  Sometimes it feels as though, if i keep typing something
the connection stays alive.  But that assumption might not be correct.  Also
i can only run one ssh session, the second one hangs.  I don't think they've
done anything on the server side to restrict connections.  In any case the
one connection should not freeze.

I assume that ssh only encrypts the data part of the packet and leaves the
ip header alone.  So theorectically NAT should have no effect.

Any ideas ?

Thanks.

-Unni