LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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

Reply
 
Search this Thread
Old 11-03-2005, 02:35 PM   #1
William1955
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Rep: Reputation: 0
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
 
Old 11-03-2005, 04:38 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
You need to open port 22 on the Linux firewall (don't allow remote telnet traffic, it's a security issue).
 
Old 11-03-2005, 05:27 PM   #3
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
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.
 
Old 11-04-2005, 08:13 AM   #4
William1955
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 11-04-2005, 08:46 AM   #5
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
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.
 
Old 11-04-2005, 05:33 PM   #6
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
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.
 
  


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
Linksys router,access point & networking ronraj Linux - Networking 4 06-13-2005 10:38 AM
Quick Question Regarding Linksys wrt54gs W0bbles Linux - Hardware 1 03-09-2005 01:55 PM
linksys wrt54gs problem kpachopoulos General 2 12-02-2004 10:47 AM
Linksys cable router setup Linux box no net access Phebes Linux - Networking 19 09-17-2004 11:53 PM
Linksys router outside access problems again jrw3179 Linux - Networking 0 03-21-2003 10:33 PM


All times are GMT -5. The time now is 10:05 AM.

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