You are not logged in.

#1 2009-01-10 02:35:05

venky80
Member
Registered: 2007-05-13
Posts: 1,002

ssh portforwarding tunneling etc etc..NAS issues

I have a NAS HDD behind a wireless router with an internal ip 192.168.0.4 it has a ddndns service which I have setup so the host name i have picked is foo.ddndns.com but when i see the IP of foo.ddndns.com it is my ISP's dynamic IP
now can I test ssh into my NAS
a) for an external IP
b) from my arch laptop which is 192.168.0.12 on the internal network

the home network is ISP MODEM >>DLINK ROUTER>>AIRLINK ROUTER>>NAS
the airlink router is used as a switch coz there are way too many devices in my network

Thanks for all SSH gurus

cheers

and i have forwarded port 22 on my dlink router which is 192.168.0.1 following is the screen shot of the setting
http://img55.imageshack.us/img55/785/snap2nq4.png

Last edited by venky80 (2009-01-10 02:39:18)


Acer Aspire V5-573P Antergos KDE

Offline

#2 2009-01-10 04:14:01

fumbles
Member
Registered: 2006-12-22
Posts: 246

Re: ssh portforwarding tunneling etc etc..NAS issues

I'm not really quite sure what you are asking? I would say the problem is one of: the Airlink router not forwarding ssh, the DLINK router not forwarding ssh or NAS not responding. So I would try ssh'ing from every part of the network.

Offline

#3 2009-01-10 04:52:18

venky80
Member
Registered: 2007-05-13
Posts: 1,002

Re: ssh portforwarding tunneling etc etc..NAS issues

the airlink router is not being used as a router...it is just being used as a switch whcih is basically the input from the Dlink router just goes into one of the empty lan ports in the airlink router and there is nothing going into the WAN port of the airlink router
I am not sure if that makes it a little clear?


Acer Aspire V5-573P Antergos KDE

Offline

#4 2009-01-10 05:07:03

fumbles
Member
Registered: 2006-12-22
Posts: 246

Re: ssh portforwarding tunneling etc etc..NAS issues

If the Dlink router is indeed forwarding the ssh packets to your NAS box, then it must be your NAS box. Check the settings for that.

Offline

#5 2009-01-14 22:22:20

Obi-Lan
Member
From: Finland
Registered: 2007-05-23
Posts: 179

Re: ssh portforwarding tunneling etc etc..NAS issues

Private port 21? Change that to 22 perhaps?

Offline

#6 2009-01-15 01:59:41

Jeffers0n
Member
Registered: 2008-07-09
Posts: 12

Re: ssh portforwarding tunneling etc etc..NAS issues

Make sure to check your /etc/hosts.allow and hosts.deny files, there might be a problem there.

Offline

#7 2009-01-15 02:50:05

venky80
Member
Registered: 2007-05-13
Posts: 1,002

Re: ssh portforwarding tunneling etc etc..NAS issues

ya i finally figured what was happening...it seems ssh and sftp are different (sorry iam a complete noob)
so sftp works so the public port is outsidemachine to the router and private port is router to NAS
so sftp username@username.mydyndns.com now works


Acer Aspire V5-573P Antergos KDE

Offline

Board footer

Powered by FluxBB