LinuxQuestions.org
Help answer threads with 0 replies.
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 01-08-2007, 09:58 AM   #1
akrawiec
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, 10:15 AM   #2
asommer
Member
 
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, 10:18 AM   #3
hockeyman_102
Member
 
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, 01:33 PM   #4
mi6
Member
 
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, 02:03 PM   #5
akrawiec
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 ...
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:57 AM.

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