Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


modem and router port forwarding

Posted on 2012-04-05
Medium Priority
Last Modified: 2012-04-17
I am having some router networking issues...here is my configuration:

I have a DSL modem at I configured port forwarding for ports 22 and 1521 to route to

I have a router at  I have port forwarding configured to forwarding ports 22 and 1521 to

I have a linux server at

When I use PuTTY to SSH on port 22 to the linux server I get a prompt to login to the linux server but it does not allow me to login.  I get an error message that access is denied.

So it looks like traffic is getting to the linux server but the linux server is not allowing me to login.

Note that I am able to login if I am on the local network and use SSH to connect to  I only have a problem if I try to connect to the linux server using the public IP address.

Do you know what I can change to allow access to the linux server?

Note that I am confused about how traffic gets from to  The default gateway is  I am not able to set the port forwarding in the DSL modem to  If I try I get the error message "NAPT server IP address is not a valid host LAN address."

Can you point me to a log file on the linux server that explains why it's rejecting the login from the public IP address?

Can you tell me how to either configure the linux server or the network to allow logins from the public IP address?  Note that this was working at one point.  I believe a tech support person from the router company had me change my network IP address and after that I was not able to connect to the linux server through the public IP address.
Question by:david_m_jacobson
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 26

Accepted Solution

Fred Marshall earned 2000 total points
ID: 37814447
Let's review those port forwards:

"I have a DSL modem at I configured port forwarding for ports 22 and 1521 to route to"

Presumably is the router WAN/Internet side, yes?  If so then understood.

"I have a router at  I have port forwarding configured to forwarding ports 22 and 1521 to"

Presumably this is the router with WAN address, yes?  If so, OK.

It sounds like it may work:
Packets arriving at the modem router, destined for port 22 will go to  But, to which port there?  That has to be part of the setup.
I'm going to suggest something different just to make the point:

When packets arrive for port 22 then we will forward then to that is, port 999.

When packets arrive for port 999 at then we will forward them to  that is port 22.  

I believe that's what you want.
So it could be:
port 111 from the outside world
port 222 between the routers
port 22 behind the last router.

That should be all there is to it.

Author Comment

ID: 37814501
I don't follow everything stated above. In the SpeedStream 4300 DSL Modem configuration in the Host Configuration I see the Default Gateway set to an empty field and I see a checkbox that is checked to indicate "Use WAN."

In the DHCP Configuration of the DSL modem I see DHCP enabled, "Start IP Range" set to and the "End IP Range" set to  Then I see the Default Gateway set o

Note that I have two physical devices: a SpeedStream 4300 DSL modem and an Encore router.  The DSL modem is plugged into the Encore router.  The linux box is plugged into the Encore router.

I don't understand how to configure

Separately, I have a Windows PC connected to the Encore router.  When I enter "ipconfig /all" from a DOS prompt on the Windows PC I see the DNS server, Default Gateway, and DHCP Server all set to

When I log into the admin tool for the Encore router I see the WAN Settings section with the IP address set to and the Default Gateway set to In the LAN Settings section of the Encore Router I see the IP address set to and DHCP enabled.

Does any of this information help? I'm not sure I followed your suggestion.  I think you are suggesting setting the DSL Modem to forward incoming requests on port 22 to port 999 on the Encore router.  Then I should configure the Encore router to forward incoming requests on port 999 to port 22 on my linux server at  Is that correct?
LVL 26

Expert Comment

by:Fred Marshall
ID: 37857905
Sorry I didn't respond sooner.  Thanks for the points!

Yes that's the idea and it sounds like it worked!  Good.

I wasn't trying to suggest any particular port numbers .. those were just examples.  You'd want to avoid "well known" port numbers.

Featured Post

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as the high-speed power of the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
New style of hardware planning for Microsoft Exchange server.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question