Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

ip nat inside source

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        ?

1 ACCEPTED SOLUTION

Accepted Solutions
Purple

ip nat inside source

Hi,

yes everything that uses IP: icmp, udp, tcp

Regards.

Alain.

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.
3 REPLIES

Re: ip nat inside source

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

HTH, John *** Please rate all useful posts ***
New Member

Re: ip nat inside source

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?

Purple

ip nat inside source

Hi,

yes everything that uses IP: icmp, udp, tcp

Regards.

Alain.

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.
323
Views
0
Helpful
3
Replies
CreatePlease to create content