Question Locked

ASA 5505 multiple ports forwarded to same destination port

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi!

I tried to configure port forwarding on ASA5505 software version 8.2(5) from the outside interface to one inside ip.

I made a static statement like this:
static (inside,outside) tcp interface www x.x.x.1 www netmask 255.255.255.255

(x.x.x.1 is the internal ip)
This works like a charm.

Then i tried to add the second translation:
static (inside,outside) tcp interface 8080 x.x.x.1 www netmask 255.255.255.255

I got an error message:

[ERROR] static (inside,outside) tcp interface 8080 x.x.x.1 www netmask 255.255.255.255 tcp 0 0 udp 0
duplicate of existing static
TCP inside:x.x.x.1/www to outside:0.0.0.0/www netmask 255.255.255.255

Is it possible to forward from different outside ports to the same? If yes, then how?

Thanks in advance!
kraszi

4 replies

by cg it

Create an ACL that allows any inbound [external interface] traffic on port 8080 to your internal server/PC/whathaveyou. also remember the explicit deny statement at the end of any ACL on Cisco routers.

by charles bundy

On x.x.x.1 as the former rule already has www (port 80) mapped to port 80. Try

[i]static (inside,outside) tcp interface 8080 x.x.x.1 [b]8080[/b] netmask 255.255.255.255[/i]

NOTE: I'm assuming www is an alias to the well known service ports, otherwise YMMV. Also make sure httpd is listening on 8080 and that the firewall on x.x.x.1 passes traffic.

by kraszilaci

Hi!

Thanks for your help. The solution was to enable the same server to listen on other port and create another static route.

Regards,
kraszi

This discussion is closed to new replies.