- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
NAT on controller.
NAT on controller.
02-04-2018 07:54 AM
Hi to all,
This is my requirement, I want to NAT traffic hitting the public-ip on port 8010 be NATed to PC IP 192.168.1.100 port 80. The return traffic should also be NATED. lets say the public-ip interface 20.0.0.1 is port 0/0/1 and private ip 192.168.1.1 port 0/0/2.
How can i configure this?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Alert a Moderator
Re: NAT on controller.
Re: NAT on controller.
02-04-2018 09:31 PM
for outgoing NAT, use ip nat-inside on the vlan interface that the 192.168.1.100 address lives in
for incoming port nat on the trunk port, create an access-list with the desired rule, something like the below.
* note * do your own testing on this, the below is untested
ip access-list session nat_thing any host 20.0.0.1 tcp 80 dst-nat 8010 ip 192.168.1.100 user any any permit !
now go to the interface and apply the ACL
interface gigabitethernet 0/0/1 ip access-group nat_thing session !
CLI commands to verify the behavior:
show datapath session | include 20.0.0.1,192.168.1.100 show acl hits
hth.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Alert a Moderator