07-25-2014 12:52 AM - edited 03-04-2019 11:25 PM
friends i am looking for some help on port redirection where a traffic coming on port 80 from internet on one static ip should get redirected to another IP on another port .. on cisco router
public IP 1.1.1.1:80 to go to 10.10.10.10:443
Please advise
07-25-2014 01:11 AM
Hi
Please find the sample config below:
int gig0/0
description LAN interface------>Interface where 10.10.10.10 is connected as per your example
ip address X.X.X.X
ip nat inside ---------------------> Defines NAT inside
int gig0/1
description WAN interface-----> Interface connected to Internet
ip address Y.Y.Y.Y
ip nat outside ----------------------> Defines NAT outside
Above NAT inside and outside configuration would be under the interface config mode. Then you need to configured Static Port redirection in global configuration mode
ip nat inside source static tcp 10.10.10.10 443 1.1.1.1 80
This should work and i would recommend going the NAT configuration guide to understand how exactly NAT works.
http://www.cisco.com/c/en/us/support/docs/ip/network-address-translation-nat/13772-12.html
Regards,
HK
07-25-2014 02:26 AM
do i have to open 80 on my router as on router on 443 is open. and above is not working .. thansk for time. please advise
one more thing to add.. the trafic will be initiated from outside.. moto is to make life easy for end users when they will type http://abc.xyz.com it should go to 443
07-25-2014 10:47 AM
Hi
As the traffic initiated from outside will be coming in on port 80 and will be redirected to port 443 on the inside IP.
Incoming traffic should be allowed on port 80 and similarly port 443 should be allowed in the inside Network.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide