troubleshooting Question

After changing gateway, ssh stops working

Avatar of Mark
Mark asked on
LinuxNetworkingLinux NetworkingNetwork ArchitectureLinux Distributions
11 Comments1 Solution512 ViewsLast Modified:
I have the following /etc/rc.d/rc.inet1.conf:

# Config information for eth0:
IPADDR[0]="xx.yy.zz.95"
NETMASK[0]="xx.yy.zz.192"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]="192.168.0.3"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Default gateway IP address:
GATEWAY="xx.yy.zz.65"

I changed the gateway to 192.168.0.1 (the address of the firewall/router) in order to get port forwarding to work to this computer. That is now working, but I can no longer access the eth0 IP properly from outside the LAN. If I ssh to myuser.mydomain.com (which resolves to xx.yy.zz.95) I get not connection and the /var/log/messages file gets an entry, "Apr  2 15:38:50 webserver sshd[10699]: Did not receive identification string from aa.bb.cc.98"

I can, however, telnet to this port and get a connection:

telnet mydomain.com 22
telnet xx.yy.zz.95 22

both of these give me a telnet connection.

Likewise I can telnet to port 80, but I can't actually open a web page via my browser, though I don't see an error entry in any webpage.

Does anyone have an idea about what I can do?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros