06-29-2012 04:49 AM - edited 03-04-2019 04:50 PM
I am forwarding my web traffic from out side to inside web server by this command.
ip nat inside source static tcp x.x.x.x y.y.y.y
Is it possible to do the same with
ip nat inside source static ip x.x.x.x y.y.y.y ?
Solved! Go to Solution.
06-29-2012 05:39 AM
Hi,
yes everything that uses IP: icmp, udp, tcp
Regards.
Alain.
Don't forget to rate helpful posts.
06-29-2012 05:00 AM
You can do a 1 - 1 mapping with
ip nat inside source static x.x.x.x y.y.y.y
Then you'll control what comes through with an acl. You can have both entries in at the same time, but it's not necessary. What doesn't match on your port translations will get caught by your static mapping, so you might as well just have the static mapping if you're going to go that route.
If you're just wanting to allow udp ports in (because you asked about "ip"), you can do the same as you're now doing with tcp:
ip nat inside sourc static udp x.x.x.x port y.y.y.y port
HTH,
John
06-29-2012 05:34 AM
thats means
ip nat inside source static ip x.x.x.x y.y.y.y traslates TCP traffic as well? not just IP only trafic such as ICMP?
06-29-2012 05:39 AM
Hi,
yes everything that uses IP: icmp, udp, tcp
Regards.
Alain.
Don't forget to rate helpful posts.
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