LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 08-27-2005, 12:38 PM   #1
brainlesspinkey
Member
 
Registered: Jul 2004
Distribution: Debian Unstable
Posts: 66

Rep: Reputation: 15
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
 
Old 08-27-2005, 12:56 PM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
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
 
Old 08-27-2005, 04:16 PM   #3
brainlesspinkey
Member
 
Registered: Jul 2004
Distribution: Debian Unstable
Posts: 66

Original Poster
Rep: Reputation: 15
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.
 
Old 08-27-2005, 05:12 PM   #4
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Using SSH to login to a local pc??? tuxuser19 Debian 1 11-06-2005 03:28 AM
ssh wont connect outside of local network clintonkerr Linux - Software 9 09-20-2005 08:35 AM
SSH can not login outside of network xvaughan Linux - Networking 1 03-29-2004 08:58 PM
Cannot resolve local addresses on local network danielgrenyer Linux - Networking 6 01-14-2004 12:03 PM
ssh login on network xaphious Linux - Networking 2 06-20-2003 10:42 AM


All times are GMT -5. The time now is 09:02 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration