LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   can login to ssh via local network, but not outside (https://www.linuxquestions.org/questions/linux-security-4/can-login-to-ssh-via-local-network-but-not-outside-357521/)

brainlesspinkey 08-27-2005 11:38 AM

can login to ssh via local network, but not outside
 
I am having a wierd problem: I am trying to allow access to ssh on my server which is behind a router firewall. I have the router forwarding the port to my machine, and I have the daemon running. I can ssh from any machine on the local network behind the router, but if I try to ssh into the router's outside ip address, I get a connection refused. I went to shields up, and it says that the correct port is open, so It seems to be a problem somewhere in my system. I have checked hosts.allow, and hosts.deny, and they are both all commented out. I have ran iptables -L, and have no chains listed under input, forward, or output.
I tried some other servers, and it seems that my machine is rejecting all communication outside of my LAN. I have no idea where to look from here. Any ideas?
I am using debian unstable.

Thanks,
-bp

slackie1000 08-27-2005 11:56 AM

hi there,
ok, you asked for ideas.. i give you one... maybe it is not a solution..
could it be that your ISP block the port 22 ?? this happens sometimes.. did you try making the sshd listen other port??
regards,
slackie1000

brainlesspinkey 08-27-2005 03:16 PM

Thanks for the quick reply.

I've tried it on a different port, with no success. I've also tried other services on different ports, and they do not work as well (outside my lan). There seems to be a residual setting somewhere in my system that is blocking access to my server.

ug.

slackie1000 08-27-2005 04:12 PM

hi there,
sorry man. i am not specialist in the area. it was a try.
this sounds weird. you mean that even http services - ex. port 80 - don't work?
maybe something with your iptables/firewall - from the router? can you access it?
did you setup port forwarding in your router: usually you need to forward the port, ex. 22, from your external IP(the one provided by your ISP) to the local IP(the one in your LAN)... this can also be the reason..none of the ports are forwarded..
don't know mate...
hope some of the security gurus can drop a light here...
regards,
slackie1000


All times are GMT -5. The time now is 10:38 PM.