11-08-2006 10:52 AM - edited 03-09-2019 04:49 PM
How do I do this?
Currently I have a Static Nat policy that translates Internal IP 192.168.1.10 -> 144.10.10.15 (external)
I have ACLs permitting users from the outside to allow Port 80 for anyone on this 144.10.10.15
How do I set it up so 144.10.10.15 Port 8080 is translated to 192.168.1.10 Port 80
External ( 144.10.10.15:8080 <-> 192.168.1.10:80 )
Is this possible and how woyuld I do this on ASA5500.
11-08-2006 01:04 PM
static (inside,outside) tcp 144.10.10.15 8080 192.168.1.10 www netmask 255.255.255.255
or
static (inside,outside) tcp interface 8080 192.168.1.10 www netmask 255.255.255.255
if 144.10.10.15 is outside interface
11-08-2006 03:15 PM
Thanks for the response but I get an error
ERROR: duplicate of existing static
inside:192.168.1.10 to outside:144.10.10.15 netmask 255.255.255.255
Usage: [no] static [(real_ifc, mapped_ifc)]
{
{
[dns]
[[tcp]
[udp
[no] static [(real_ifc, mapped_ifc)] {tcp|udp}
{
{
{access-list
[dns]
[[tcp]
[udp
show running-config [all] static [
clear configure static
I already have regular static NAT for these addresses and ACLs to allow port 80, smtp, and other ports to this internal IP.
I want to make sure only Port 8080 to changed to Port 80, not the others like smtp, etc.
Any Idea ?
11-08-2006 03:43 PM
Could you post config?
11-08-2006 04:07 PM
You can't translate the entire IP and then do a port ranslation with the same address. You'll have to remove the full NAT and add them as port translations even thought they don't really translate. Outside users will lose conenctivity and you might have to 'clear xlate'!
Remove
static (inside,outside) 144.10.10.15 192.168.1.10 netmask 255.255.255.255 0 0
Add
static (inside,outside) tcp 144.10.10.15 www 192.168.1.10 www netmask 255.255.255.255 0 0
11-08-2006 07:52 PM
Hi .. you need to remove the one to one static and add a series of port translations if you want to use the same public IP address
no static (inside,outside) x.x.x.x y.y.y.y netmask 255.255.255.255
clear xlate
static (inside,outside) tcp x.x.x.x 80 y.y.y.y 80 netmask 255.255.255.255
static (inside,outside) tcp x.x.x.x 25 y.y.y.y 25 netmask 255.255.255.255
.
.
.
.
.
static (inside,outside) tcp x.x.x.x 8080 y.y.y.y 80 netmask 255.255.255.255
Note: clear xlate will kill and established connections and will forze then to reconnect.
I hope it helsp .. please rate it if it does !!!
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