nat a range of ports to a local IP

Hi,

I need to NAT a range of ports into a local IP. port 2048 -> 3000 to

192.168.1.2.

What is the best way to do this om a ASA5505?

This does not work:

formatting link
My conf (does not work on a ASA): ip nat pool p2p 192.168.1.2 192.168.1.2 netmask 255.255.255.0 type rotary ip nat inside destination list allow_inbound pool p2p access-list allow_inbound permit tcp any any range 2048 3000

Best regards Martin

Reply to
M
Loading thread data ...

If the public IP to be used is the interface IP:

access-list allow_inbound permit tcp any interface outside range 2048 3000 access-list map_inbound permit tcp 192.168.1.2 range 2048 3000 any access-group allow_inbound in interface outside static (inside,outside) interface access-list map_inbound

Reply to
Walter Roberson

Hi Walter,

Thank you for your answer.

I get this error in line two: ASA-xx(config)# access-list map_inbound permit tcp 192.168.1.2 range

2048 3000 any ^ ERROR: % Invalid Hostname

Best Regards Martin

Walter Roberson skrev:

Reply to
M
255.255.255.255 mas missing :-)

M skrev:

Reply to
M

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.