Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-06-2017, 07:27 PM   #1
Registered: Nov 2005
Posts: 288

Rep: Reputation: 30
Port Forwarding - Virtual Server

I have a doubt about port forwarding passing through 2 different routers.

The company I work used to have a modem connected to a tp-link router. The router was responsible for authenticating in the internet and the wireless network (that means the modem was configured in bridge and the router in PPPOE). To be able to use a special VNC application, I had to configure a port forwarding in this router, where any connection from the internet that came to port 1101 would be redirected to the internal ip address. That worked just fine.

We moved to a new place and changed the internet provider. The new Internet provider supplies a router that authenticates the internet, sets a fixed ip address for the company, etc.
So, I still use my tp-link wireless router, but instead of setting it to PPPOE, now it's set to DHCP (with reserved ip address for the tp-link router
Everything is working perfectly, except the port forwarding. That is what I need your help to fix.

What I did:
- Reserved the ip address for the tp-link wireless router in the settings of the Internet provider's router. Both of them connected through a ethernet cable.
- In the settings of the Internet provider's router I configured a port forwarding in its settings saying that any connection from the Internet in the port 1101 should be redirected to the tp-link router in the ip address, with both inbound and outbound ports as 1101.
- In the TP-link router, I maintained the previous port forwarding that established that any connection that the router receives in the port 1101 should be redirected to the machine (the same setting that was configured before and that worked).

The problem is that it didn't work. Something is wrong and I don't know what it is. I suspect that the Internet Provider's router, when it redirects the connection that it receives in the port 1101, it just redirects it to the tp-link router without the port 1101 information. If that's true, that would explain why the second and last/final port forwarding is not working in the tp-link router.

Just one obvious information, before anyone asks: I can't configure the port forwarding the Internet Provider's Router settings directly to the ip, because it's not a network that the router can "see". It doesn't accept any ip address other that (mask

Can any of you imagine where I am doing things wrong?
Thank you

Last edited by doraimom; 03-06-2017 at 07:36 PM.
Old 03-07-2017, 09:41 AM   #2
Registered: Nov 2005
Posts: 288

Original Poster
Rep: Reputation: 30
This article talks about exactly what I am doing in my network and his logic and way of configuring the routers is exactly the same that I did. The only difference is that mine is not working.
Old 03-07-2017, 01:50 PM   #3
Registered: Aug 2002
Posts: 24,972

Rep: Reputation: 5677Reputation: 5677Reputation: 5677Reputation: 5677Reputation: 5677Reputation: 5677Reputation: 5677Reputation: 5677Reputation: 5677Reputation: 5677Reputation: 5677
The obvious question but I assume you have verified that the ISP MODEM is plugged into the WAN port of the TP-Link router. As far as I know it should work.

You might be able to configure the ISP router in a bridged mode which basically bypasses its router functions and then the TP-Link would work like your old network. In addition you might be able to configure the ISP router LAN IP address and range to match your old network so the TP-Link is not required anymore.

Both would eliminate the need for double NAT.


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
Port number used by server when using dynamic port forwarding in SSH? kreeder Linux - Networking 4 11-21-2011 03:07 PM
port forwarding -and more- how to connect to my virtual machine jbcolmena Linux - Virtualization and Cloud 5 08-10-2010 09:11 AM
Shorewall: port forwarding problem, port is closed even after forwarding Synt4x_3rr0r Linux - Networking 2 12-13-2009 05:36 PM
Virtual server and domain forwarding tiger.woods Linux - Server 4 02-27-2008 02:51 PM
Virtual hosts and port forwarding fr_laz Linux - Networking 0 02-03-2005 03:46 PM > Forums > Linux Forums > Linux - Networking

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration