Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-11-2006, 12:49 AM
|
#1
|
Senior Member
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006
Rep:
|
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?
|
|
|
04-11-2006, 04:24 PM
|
#2
|
LQ 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:
|
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
|
|
|
04-11-2006, 04:36 PM
|
#3
|
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:
|
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.
|
|
|
04-11-2006, 07:22 PM
|
#4
|
Member
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363
Rep:
|
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.
|
|
|
04-12-2006, 12:19 AM
|
#5
|
Senior Member
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 08:10 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|