LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-30-2006, 01:42 AM   #1
hradtke
Member
 
Registered: May 2006
Distribution: Fedora Core 6
Posts: 38

Rep: Reputation: 15
Cannot SSH from outside the network


I just moved into a new place and got Verizon DSL. I had my linux box setup at my old place allow me to ssh from the outside, using my Belkin router. However, at my new place it is no longer working.

Relevant info:
Code:
eth0      Link encap:Ethernet  HWaddr 00:16:76:63:8C:6C
          inet addr:192.168.2.8  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::216:76ff:fe63:8c6c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3413 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3900 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1755655 (1.6 MiB)  TX bytes:717013 (700.2 KiB)
          Interrupt:177 Base address:0xb800

My first step was to make sure ssh works and that I can ssh from within the network:

Code:
[hradtke@localhost ~]$ ssh 192.168.2.8
hradtke@192.168.2.8's password:
Last login: Tue Aug 29 19:54:05 2006
[hradtke@localhost ~]$
An old post I was reading suggested using tcpdump to watch the packets. However, I am not exactly sure what I am looking for.

Code:
22:01:42.009998 IP 192.168.2.8.50618 > pool-71-107-207-6.lsanca.dsl-w.verizon.net.ssh: S 678866255:678866255(0) win 5840 <mss 1460,sackOK,timestamp 7671768 0,nop,wscale 2>
22:01:42.010513 IP 192.168.2.8.32770 > 192.168.2.1.domain:  11384+ PTR? 6.207.107.71.in-addr.arpa. (43)
22:01:42.011874 IP pool-71-107-207-6.lsanca.dsl-w.verizon.net.ssh > 192.168.2.8.50618: R 0:0(0) ack 678866256 win 0
22:01:42.041029 IP 192.168.2.1.domain > 192.168.2.8.32770:  11384 1/0/0 (99)
22:01:42.041270 IP 192.168.2.8.32770 > 192.168.2.1.domain:  40380+ PTR? 8.2.168.192.in-addr.arpa. (42)
22:01:42.069661 IP 192.168.2.1.domain > 192.168.2.8.32770:  40380 NXDomain 0/0/0 (42)
22:01:42.069828 IP 192.168.2.8.32770 > 192.168.2.1.domain:  61305+ PTR? 1.2.168.192.in-addr.arpa. (42)
22:01:42.098382 IP 192.168.2.1.domain > 192.168.2.8.32770:  61305 NXDomain 0/0/0 (42)
This is what relevent information I found when I tried to ssh to 71.107.207.6. It appears to me that the packet is being forwarded, but other than that I cannot tell.

Any suggestions from here?
 
Old 08-30-2006, 01:49 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
can't see any evidence of a port forwarding taking place. have you really followed all the advice from portforward.com?
 
Old 08-30-2006, 01:54 AM   #3
hradtke
Member
 
Registered: May 2006
Distribution: Fedora Core 6
Posts: 38

Original Poster
Rep: Reputation: 15
http://www.portforward.com/english/r...4v7.01/SSH.htm

I referenced this page, but did not have to change anything because it was already set up that way. As seen on ifconfig, the IP is 192.168.2.8. I set it up to go 22 on both LAN and public.
 
Old 08-30-2006, 02:04 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well in that case run the tcpdump command for port 22 only (which i guess you saw me mention) and then try to connect to the external address from a remote site. if the router is port forwarding then you will see incoming traffic on port 22
 
Old 08-30-2006, 02:33 AM   #5
hradtke
Member
 
Registered: May 2006
Distribution: Fedora Core 6
Posts: 38

Original Poster
Rep: Reputation: 15
I see now. tcpdump is silent when I try to ssh from the outside. There must be some issue with Westell modem -> Belkin router that I need to fix. Thanks for the help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot ssh inside my network cucolin@ Linux - Networking 16 07-24-2006 09:34 AM
SSH - How can i alllow someone SSH to my network from Internet - please help me b:z Linux - Networking 4 04-05-2005 07:21 AM
SSH can not login outside of network xvaughan Linux - Networking 1 03-29-2004 07:58 PM
Can ssh localhost but not from network? jon_k Linux - Software 7 03-10-2004 06:47 AM
can't telnet/ssh across network paul.nel Linux - Networking 4 11-14-2003 03:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration