Results 11 to 15 of 15
Using nat or ipmasq?...
- 02-21-2003 #11Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
Using nat or ipmasq?
- 02-21-2003 #12Just Joined!
- Join Date
- Feb 2003
- Posts
- 56
netstat
This is what I get with netstat
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN 555/rpc.statd
tcp 0 0 127.0.0.1:32769 0.0.0.0:* LISTEN 688/xinetd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 536/portmap
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 867/X
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 688/xinetd
tcp 0 0 0.0.0.0:4662 0.0.0.0:* LISTEN 1026/donkey_s_45
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 674/sshd
tcp 0 0 0.0.0.0:4663 0.0.0.0:* LISTEN 1026/donkey_s_45
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 711/sendmail: accep
tcp 0 0 192.168.2.3:32828 24.26.124.198:4662 ESTABLISHED 1026/donkey_s_45
tcp 0 0 192.168.2.3:32832 194.152.99.217:4662 TIME_WAIT -
tcp 0 0 192.168.2.3:32809 80.131.188.37:4662 ESTABLISHED 1026/donkey_s_45
tcp 0 0 192.168.2.3:32834 24.47.195.52:4662 ESTABLISHED 1026/donkey_s_45
tcp 0 0 192.168.2.3:32826 80.133.224.51:4662 ESTABLISHED 1026/donkey_s_45
tcp 0 0 192.168.2.3:32825 80.129.28.72:4662 ESTABLISHED 1026/donkey_s_45
tcp 0 0 127.0.0.1:4663 127.0.0.1:32770 ESTABLISHED 1026/donkey_s_45
tcp 0 0 192.168.2.3:4662 211.243.11.90:2762 ESTABLISHED 1026/donkey_s_45
tcp 0 0 192.168.2.3:32813 213.66.77.118:4662 ESTABLISHED 1026/donkey_s_45
tcp 0 0 192.168.2.3:32829 24.192.122.242:4662 ESTABLISHED 1026/donkey_s_45
tcp 0 0 192.168.2.3:32776 66.111.54.190:4224 ESTABLISHED 1026/donkey_s_45
tcp 0 0 192.168.2.3:32830 80.202.167.184:4662 ESTABLISHED 1026/donkey_s_45
tcp 0 0 192.168.2.3:32824 24.138.69.102:4662 ESTABLISHED 1026/donkey_s_45
tcp 0 0 127.0.0.1:32770 127.0.0.1:4663 ESTABLISHED 1023/ed2k_gui
tcp 0 0 192.168.2.3:32821 208.138.154.54:4662 TIME_WAIT -
tcp 0 0 192.168.2.3:32814 64.177.242.188:80 ESTABLISHED 1060/mozilla-bin
tcp 0 0 192.168.2.3:32812 64.177.242.188:80 ESTABLISHED 1060/mozilla-bin
tcp 0 0 192.168.2.3:32815 211.47.89.21:4662 ESTABLISHED 1026/donkey_s_45
tcp 0 0 192.168.2.3:32833 217.225.149.168:4662 TIME_WAIT -
If I ssh to myself with my local IP this is what I get...
[bionik@localhost bionik]$ ssh 192.168.2.3
The authenticity of host '192.168.2.3 (192.168.2.3)' can't be established.
RSA key fingerprint is d2:aa:a8:2f:dc:02:5d:81:fb:ef:df:e8:99:67:56:34.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.2.3' (RSA) to the list of known hosts.
bionik@192.168.2.3's password:
[bionik@localhost bionik]$
If I ssh to myself or from work with my Internet IP this is what I get...
[bionik@localhost bionik]$ ssh 67.41.211.XXX
ssh: connect to address 67.41.211.XXX port 22: Connection refused
[bionik@localhost bionik]$
I am using a DSL router but I have port 22 open for my box. I know its open because I havent changed anything and it was working with RH7.2.
Not sure if im using nat or ipmask how can I find out?
Thanks
- 02-21-2003 #13Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
Do you have your router forwarding port 22 to that ip? Seems like its trying to connect to your router and not your box.
- 02-21-2003 #14Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Even though you write that you've opened up port 22, I must tend to agree with genlee in that it sure appears to be that problem. (Btw., you are using NAT; your router uses it)
Do you have any other computer on the network (I'm guessing so, since you have a router)? If so, connect with one of them. If they're running Windows, use putty, which is a telnet/ssh client for Windows.
Here's another way of troubleshooting: If you don't already have it installed, install (from your RedHat CDs) the packages ethereal and ethereal-gnome. Then, start listening and try to connect to your computer via ssh and see if anything comes up that's SSH related. If it doesn't, the problem is most likely with your router.
- 02-21-2003 #15Just Joined!
- Join Date
- Feb 2003
- Posts
- 56
Port22
I have port22 forwarded to that IP. I just tried it again from work and I was able to get in. But its very slow. Im using putty from a win2k machine. Thanks again for all your help you guys are great.



