Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Wireless Internet

Simple port forwarding problem

Reply
 
Thread Tools Display Modes
  #1  
Old 11-24-2006, 09:06 AM
Default Simple port forwarding problem



Hi,

I'm afraid I am a complete beginner at this...

I have a Debian Linux box sitting behind a Linksys WRT54GS wireless
router. It is running the SSH daemon listening on port 22. The router
is serving IPs under DHCP and the Linux box has an IP of 192.168.1.103.
I checked the external IP using one of those 'check my ip' sites and
it is 82.xxx.xxx.xxx. Both IP's are still the same, as the Linux box
and the router have never been switched off and haven't reset/crashed.

I am able to SSH into the Linux box from any of the computers on the
local network (i.e. on the same side of the router).

I have set up port forwarding on the router [Port Start]=22 [Port
End]=22 [Direction]=both [Destination]=192.168.1.103 [Enabled]=Yes.
However, I get no response when I "Putty -ssh 82.xxx.xxx.xxx". I also
get no response from "ping -ssh 82.xxx.xxx.xxx".

I would be very grateful if someone could give me some pointers on how
to diagnose the source of this problem.

Many thanks

Jon



jrpfinch
Reply With Quote
  #2  
Old 11-24-2006, 07:17 PM
John Navas
Guest
 
Posts: n/a
Default Re: Simple port forwarding problem

On 24 Nov 2006 01:06:53 -0800, "jrpfinch" <(E-Mail Removed)> wrote in
<(E-Mail Removed) .com>:

>I'm afraid I am a complete beginner at this...
>
>I have a Debian Linux box sitting behind a Linksys WRT54GS wireless
>router. It is running the SSH daemon listening on port 22. The router
>is serving IPs under DHCP and the Linux box has an IP of 192.168.1.103.
> I checked the external IP using one of those 'check my ip' sites and
>it is 82.xxx.xxx.xxx. Both IP's are still the same, as the Linux box
>and the router have never been switched off and haven't reset/crashed.
>
>I am able to SSH into the Linux box from any of the computers on the
>local network (i.e. on the same side of the router).
>
>I have set up port forwarding on the router [Port Start]=22 [Port
>End]=22 [Direction]=both [Destination]=192.168.1.103 [Enabled]=Yes.
>However, I get no response when I "Putty -ssh 82.xxx.xxx.xxx". I also
>get no response from "ping -ssh 82.xxx.xxx.xxx".
>
>I would be very grateful if someone could give me some pointers on how
>to diagnose the source of this problem.


Check the router log to see what's happening when you try to SSH in from
the outside. Your ISP may be blocking port 22. Try a different port.

--
Best regards, FAQ for Wireless Internet: <http://Wireless.wikia.com>
John Navas FAQ for Wi-Fi: <http://wireless.wikia.com/wiki/Wi-Fi>
Wi-Fi How To: <http://wireless.wikia.com/wiki/Wi-Fi_HowTo>
Fixes to Wi-Fi Problems: <http://wireless.wikia.com/wiki/Wi-Fi_Fixes>
Reply With Quote
  #3  
Old 11-25-2006, 05:04 PM
outbackwifi
Guest
 
Posts: n/a
Default Re: Simple port forwarding problem


jrpfinch wrote:

> However, I get no response when I "Putty -ssh 82.xxx.xxx.xxx". I also
> get no response from "ping -ssh 82.xxx.xxx.xxx".
>

Hi,
I know this probably sounds silly, but you wont be able to do this from
*inside* the LAN.
You might have to ask a friend to do the putty 82.xxx.xxx.xxx from
outside your network over the internet.
*Then* you will be able to check the logs as John has pointed out.

Regards,
Shiv

Reply With Quote
  #4  
Old 11-25-2006, 05:59 PM
dold@15.usenet.us.com
Guest
 
Posts: n/a
Default Re: Simple port forwarding problem

outbackwifi <(E-Mail Removed)> wrote:
> I know this probably sounds silly, but you wont be able to do this from
> *inside* the LAN.
> You might have to ask a friend to do the putty 82.xxx.xxx.xxx from
> outside your network over the internet.
> *Then* you will be able to check the logs as John has pointed out.



I have a Linux AS3 and ES4 dual boot server available on a simple
Netgear router. I can reach the "outside" address from inside.
I have ssh, and some other ports, redirected to the Linux box.

I wonder if the local firewall rules in the Linux box are set to allow ssh
access from outside the LAN?

--
---
Clarence A Dold - Hidden Valley Lake, CA, USA GPS: 38.8,-122.5
Reply With Quote
  #5  
Old 11-26-2006, 08:53 AM
John Navas
Guest
 
Posts: n/a
Default Re: Simple port forwarding problem

On Sat, 25 Nov 2006 17:59:00 +0000 (UTC), (E-Mail Removed) wrote in
<eka094$snr$(E-Mail Removed)>:

>outbackwifi <(E-Mail Removed)> wrote:
>> I know this probably sounds silly, but you wont be able to do this from
>> *inside* the LAN.
>> You might have to ask a friend to do the putty 82.xxx.xxx.xxx from
>> outside your network over the internet.
>> *Then* you will be able to check the logs as John has pointed out.

>
>I have a Linux AS3 and ES4 dual boot server available on a simple
>Netgear router. I can reach the "outside" address from inside.


Many low-end routers won't do that.

--
Best regards, FAQ for Wireless Internet: <http://Wireless.wikia.com>
John Navas FAQ for Wi-Fi: <http://wireless.wikia.com/wiki/Wi-Fi>
Wi-Fi How To: <http://wireless.wikia.com/wiki/Wi-Fi_HowTo>
Fixes to Wi-Fi Problems: <http://wireless.wikia.com/wiki/Wi-Fi_Fixes>
Reply With Quote
  #6  
Old 11-27-2006, 03:16 PM
jrpfinch
Guest
 
Posts: n/a
Default Re: Simple port forwarding problem

There is no firewall on the Linux box. I have changed the ssh config
file so that it listens on port 14000 instead. Still no luck.

I'll wait till I get home this evening to see what the router log
says...

Reply With Quote
  #7  
Old 11-27-2006, 03:30 PM
jrpfinch
Guest
 
Posts: n/a
Default Re: Simple port forwarding problem

I've changed the ssh daemon to listen on port 14000 instead and have
also told the router to forward in both directions on port 14000.
"putty -ssh -P 14000 82.xxx.xxx.xxx" from outside the LAN still yields
no response. Will check the router log when I get home this evening...

jon

Reply With Quote
  #8  
Old 11-27-2006, 05:07 PM
dold@15.usenet.us.com
Guest
 
Posts: n/a
Default Re: Simple port forwarding problem

Can you connect to a redirected port for some other utility?
I might test a redirection of http or daytime, or some useful tool like
iperf. iperf could be run on some other system on your LAN, so you could
prove that redirection works to a box other than Linux.

--
---
Clarence A Dold - Hidden Valley Lake, CA, USA GPS: 38.8,-122.5
Reply With Quote
Reply

Tags
forwarding, port, problem, simple

Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump


All times are GMT. The time now is 10:53 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.