Cisco – Remote Port Forwarding Cisco

ciscoipv4nat;

I have a Cisco3900 called router A (192.168.100.1), which is interconnected to another router B (192.168.100.2). I want to access my server C 220.221.x.x (which is on internet).

Router A (192.168.100.1) is configured with:

ip route 220.221.x.x 255.255.255.255 192.168.100.2

Pinging 220.221.x.x from router A 192.168.100.1 works, all ssh,telnet, works.

I want to open a port at 192.168.100.1 like 192.168.100.1:8080
forwarding traffic to 220.221.x.x:80

For example, when I visit 192.168.100.1:8080, it should show 220.221.x.x:80 data.

How can I configure Router A to forward port 8080 requests to 220.221.x.x:80?

I tried: ip nat inside source static tcp 220.221.x.x 80 192.168.100.1 8080
but when i try to load 192.168.100.1:8080, it hangs up and nothing like 220.221.x.x:80 opens. I want it to load 220.221.x.x:80 website.

Diagram
diagram

Best Answer

i belief you have made 1 mistake in your mind. The Router is for routing.

set up an Proxy Server with your 8080-Port open. In the Proxy configuration you can create a rule whitch pipe's the requests from PROXYIP:8080 to 220.221.x.x:80.

Your main Problem was " I want it to load 220.221.x.x:80 website" why not just use one of your clients and out of RouterA-Network you dont must create an Port-forwarding.

if you like to hide the ServerC-Address from your users use the proxy-configuration discribed above.

.

just in addition

You just need a Port forwarding for the opposite case. If you try to connect ServerC (Internet) with one Client in RouterA-(local)Network. Than configure a Static Ip for the Client and than configure your NAT as you done but with the Client-Adress