LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-11-2006, 12:49 AM   #1
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 36
Router blocking SSH, HTTP, FTP?


Okay, I configured my ADSL-modem/router to act as a router. Now it works as it should but I can't get to my server using SSH,FTP,HTTP. It works in my LAN without a problem. Well, sometimes I can't connect to the WAN but that's rarely.

Now, when I try to connect from my school to my home server using PuTTY, it get's my IP-address and things in the upperbar but then says "Network error: Connection timeout".

I have blocked all traffic from WAN to LAN from my router and then made exceptions to this rule by allowing my SSH port,20,21,80 and 110 to by-pass the firewall. Then I use NAT to forward these to my server.

In server I've configured /etc/ssh/sshd_config to use my SSH port.
Also I have configured that it allows all services to be accessed from my router.

But, still I can't connect into it. Anything else to check?
 
Old 04-11-2006, 04:24 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
If you have setup portforwarding to an internal statically assigned IP and have the needed server services running and there is no firewall on the server blocking then my guess is your provider is blocking common ports to stop users from setting up servers. Only way to check other than calling provider is set say the ssh port on the wan side to say port 2022. So the portforward will be your external IP plus port 2022 to internel IP port 22.

Brian1
 
Old 04-11-2006, 04:36 PM   #3
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 60
Quote:
...then my guess is your provider is blocking common ports to stop users from setting up servers.
grc.com now has a nice explanation of how to test for that possibility. I know it happens sometimes, but I think the rumor is more pervasive than the fact.
 
Old 04-11-2006, 07:22 PM   #4
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Rep: Reputation: 31
Is it possible that you are running a iptables? If so, try "iptables -L -n" and post it here. You may be blocking all incoming connections to your server w/ the firewall.
 
Old 04-12-2006, 12:19 AM   #5
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 36
The cause might be in the iptables. If I recall, slackware installs iptables on default. I haven't delved into iptables yet at all. I'm only using the hosts.allow and hosts.deny files to control access to my system.

Interresting thing is that the connection to my server has worked. I don't recall where the error was back then. I might have been in the router firewall then.

I'll try to post the iptables info when I got to my server.
 
  


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
http works, ssh too, ftp won't :\ ilhbutshm Linux - Networking 4 11-15-2004 12:08 AM
unstable HTTP/SSH server with Linksys router hamish Linux - Networking 0 07-22-2004 01:45 PM
http+ftp+ssh +quota katmai90210 Linux - Security 2 02-04-2004 04:52 PM
Can't ping/ssh my box, Shorewall seems to block all traffic except http / ftp tiduck Linux - Networking 10 05-22-2003 09:21 PM
Sample Working ipchain that allows http,ftp,ssh for internal and external network munisp Linux - Networking 1 11-09-2001 05:49 PM


All times are GMT -5. The time now is 03:58 PM.

Main Menu
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