08-21-2011 09:01 PM - edited 03-07-2019 01:48 AM
Hello, I need help with natting traffic and redirecting based on ports to another machine. In attached diagram I am trying to get traffic from source of R1 L0=1.1.1.1 destined to R2 E0 =10.1.1.2 port 80 to redirect to destination R3 E0=10.1.2.2 port 80 however also the source ip needs to be changed from 1.1.1.1 to R2 's E1 interface ip of 10.2.1.1. Pls help. thx
The command I used to translate 1.1.1.1 to R2's Eth1 interface is
- ip nat inside source static 1.1.1.1 int e1
However I cannot seem to figure out how to make traffic that is destined to 10.1.1.2 redirect to 10.1.2.2. It seems that since traffic is getting routed first since it is coming from inside to outside and gets dropped but never makes it to nat. Tx
08-22-2011 01:06 AM
Hello there,
U need configure you nat as ip nat inside source static 1.1.1.1 80 interface E1 80
Hope it helps.
Sincerely,
GRinch
08-22-2011 04:41 AM
Tx. Is there any way to specify the destination ip address individually in the NAT statement if there are multiple hosts behind R3 that I want to redirect to based on port number.
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