Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
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.
|
|
11-03-2005, 02:35 PM
|
#1
|
LQ Newbie
Registered: Apr 2003
Posts: 3
Rep:
|
Cannot access Linux server through Linksys WRT54GS router
I have a server running Red Hat Enterprises ES 3.0 and it works great. The problem I'm having is that I cannot logon to the server from a remote site using ssh. I have a Linksys WRT54GS router connected to a cable modem. I have set up port forwarding, etc on the router, disabled dhcp as well as the firewall. I use Anzio terminal emulator at the remote site but I continue to get this error when trying to connect.... "Could not open connection to the host, on port 23 (when using telnet): cannect failed.." The router is set to forward port 23 or 22 to the Linux server that has a static ip of 192.168.1.100). The router is using a static ip address from the ISP.
On the same server I have a second thernet card and a DSL connection to that card. No router and I am able to connect using telnet or ssh. Am I missing something in the setup of the router or something else?
Any help would be appreciated.
William Knowles
Nassau, Bahamas
|
|
|
11-03-2005, 04:38 PM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
You need to open port 22 on the Linux firewall (don't allow remote telnet traffic, it's a security issue).
|
|
|
11-03-2005, 05:27 PM
|
#3
|
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495
Rep:
|
Original post says firewall disabled. Maybe only for one of eth0, eth1 if two interfaces present?
For further diagnosis, running
# tcpdump port 23
and then trying to telnet in will show if the connection is getting forwarded or stopped at the router.
|
|
|
11-04-2005, 08:13 AM
|
#4
|
LQ Newbie
Registered: Apr 2003
Posts: 3
Original Poster
Rep:
|
I get no response from the Linux server when I run tcpdump and try to access the server through the Linksys router. When I try to logon through the DSL modem using a D-Link router everything works fine. Just no access through the cable modem and the Linksys router.
|
|
|
11-04-2005, 08:46 AM
|
#5
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
Then perhaps your cable ISP is blocking port 22. Add a second port in the /etc/ssh/sshd_config, for example:
Port 22
Port 8022
Remember to forward the additional port on the router.
|
|
|
11-04-2005, 05:33 PM
|
#6
|
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495
Rep:
|
Anything is worth a try. I have a wrt54g and the port forwarding configuration looks pretty foolproof, so it is hard to suspect the router. I guess all outgoing connections from the server are working OK. Not just sneaking out through the DSL interface.
I suppose you could also try cutting the router out altogether and connecting the server directly to the cable modem. That would pretty well isolate the problem to the router.
|
|
|
All times are GMT -5. The time now is 05:01 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
|
|