Cannot open any ports to outside - is it router, operating system or ISP?
Linux - NetworkingThis 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.
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.
Cannot open any ports to outside - is it router, operating system or ISP?
Hi
I've installed a Slackware box at work which I can access with SSH from the local network, but need to SSH into it from home.
There is a Thomson TG585v7 ADSL modem/router/wireless all-in-one connected to the phone line. Then there is an SMC-EZ1024DT switch plugged into ethernet port 1 on the Thomson.
I have disabled the Firewall on the Thomson and disabled any software firewalls. But whenever I try (from work) the ShieldsUP port probe at www.grc.com I get a perfect "TruStealth" rating.
I have tried plugging straight into the Thomson, using different workstations on the network, even unplugging the switch completely - still can't get a single port to show as open.
Am I missing something? Is it possible the ISP blocks traffic before it even gets here? What else can I try? (I've done this at home and didn't have any problems...)
Okay, I've made some progress. I have managed to open up port 80 and access the web server on my laptop. But I tried the same thing with SSH and port 22 still shows as 'stealth'.
Is the router a NAT router? You need to forward port 22 to your slackware machine. Otherwise the router will not know which host to forward it to and simply drop the connection. If you try to ssh to the router without port forwarding, you are actually trying to log into an ssh service running on the router itself.
Also make sure that the firewall on the slackware computer has port 22 open. Another thing is to verify that the ssh daemon is running. If you can ssh in on another machine on the lan, you know that it is.
If your router can forward a port to another port, consider using a higher order port, and having it forwarded to your slackware's IP at port 22. E.G. forward port 1025 -> slackware IP:22. Using a non-standard port for ssh will reduce the number of script kiddie brute force attacks against ssh. Also be sure to read the manpage for sshd_config. There are several options you want to make ssh more secure.
The router does have NAT abilities, but I think it's designed as a home router. In the web interface it has things like "Game and Application Sharing", which is how I got the web server to be visible from outside. I tried setting up SSH the same way, but the port still shows as stealth.
SSH daemon is running, I can log in from a laptop on the LAN.
I'll keep trying things in the router web interface...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.