Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 01-08-2007, 10:58 AM   #1
LQ Newbie
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
ssh works good from LAN but can't login from WAN

I use Suse SLED 10. SSH works good from LAN, but can't connect from WAN.
hosts.allow and hosts.deny are empty. Port 22 is redirected in my router correctly. I tried another ports (50022..) I looks like Linux ignore packets incoming from WAN. I tried to connect with VNC and there is the same problem - works from LAN but can't connect from WAN. The Linux firewall is turned off.
Has anyone any idea?
Old 01-08-2007, 11:15 AM   #2
Registered: Mar 2003
Location: North Carolina
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
Is there some type of firewall on your router? Or anything that might be cathing it at the router.

You might try tcpdump to see if the traffic is coming through. Another thing (if you're able to) would be to place your box in front of the router temporarily and see if you can connect.
Old 01-08-2007, 11:18 AM   #3
Registered: Apr 2006
Location: Washington
Distribution: Suse, CentOS, Ubuntu
Posts: 124

Rep: Reputation: 15
ya, you might need a port forward on your router. I like the idea of putting it before your router and testing it.
Old 01-08-2007, 02:33 PM   #4
Registered: Jun 2003
Distribution: Fedora 9 64bit, RHEL 4.6
Posts: 96

Rep: Reputation: 15
How are you testing WAN connectivity? If your router doesn't support loop back you won't be able to test by using the routable IP on a LAN computer.

The best way to test, like the others have stated, would be to simulate a WAN computer or try from an actual remote computer.

Does a port scan show that the ssh port is open?
Old 01-10-2007, 03:03 PM   #5
LQ Newbie
Registered: Jan 2007
Posts: 2

Original Poster
Rep: Reputation: 0
OK, this is the problem - My router is Sagem LiveBox. I think it does not support loopback. The connection from real remote computer works good. Thanks ...


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
10.2 upgrade; lan works, wan doesn't Nd4Spd Slackware - Installation 18 11-20-2005 10:00 AM
SSH WAN/LAN problem Hangdog42 Linux - Security 6 10-18-2005 10:51 PM
SSL works on LAN, not WAN? belorion Linux - Software 2 08-08-2004 05:33 PM
(Debian) LAN Connectin Good, WAN Bad Krikee Linux - Networking 1 05-08-2004 11:05 AM
LAN works, WAN doesn't ? BrianK Linux - Networking 2 06-16-2003 08:11 PM > Forums > Linux Forums > Linux - Security

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

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