12-18-2013 07:48 AM - edited 03-11-2019 08:20 PM
Hi all,
can i nat two internal address with same services on one public interface address?
I have an ASA 5515-X and i want to nat two services, tcp\80, on same ip public interface address:
object network Owa-Interno
host 10.0.1.4
object network Sito-Interno
host 10.0.1.8
nat (INSIDE,OUTSIDE) source static Owa-Interno interface service http http
nat (INSIDE,OUTSIDE) source static Sito-Interno interface service http http
!
object network INSIDE-LAN
nat (any,OUTSIDE) dynamic interface
Thanks in advance.
M
Solved! Go to Solution.
12-18-2013 08:44 AM
yes, that looks (nearly) fine. An improvement is to change your two HTTP and HTTPS-rules to object-NAT instead of twice-NAT:
object network Owa-Interno
host 10.0.1.4
nat (INSIDE,OUTSIDE) static interface service tcp https https
object network Sito-Interno
host 10.0.1.8
nat (INSIDE,OUTSIDE) static interface service tcp http http
--
Don't stop after you've improved your network! Improve the world by lending money to the working poor:
http://www.kiva.org/invitedby/karsteni
12-18-2013 08:05 AM
No, that can't work. On the public side, both services have to be accessed by different ports. For example TCP/80 for server1 and TCP/81 for server2. Internally, both servers can run on TCP/80.
If it is important that both servers are reachable with TCP/80 and you only have one public IP, then an internal reverse-proxy could be the solution. This proxy takes all incoming HTTP-traffic and distributes the traffic to the internal servers based on the requested FQDN.
--
Don't stop after you've improved your network! Improve the world by lending money to the working poor:
http://www.kiva.org/invitedby/karsteni
12-18-2013 08:32 AM
Hi Karsten,
thanks for reply, you confirmed that can not use.
Another question, with this configuration static nat and vpn should work correctly right:
interface GigabitEthernet0/1
nameif OUTSIDE
security-level 0
ip address 217.51.xxx.xxx 255.255.255.240
object network INSIDE-LAN
subnet 10.0.0.0 255.0.0.0
object network Owa-Interno
host 10.0.1.4
object network Sito-Interno
host 10.0.1.8
object network Rete_VpnAnyconnect
subnet 172.16.1.0 255.255.255.0
nat (INSIDE,OUTSIDE) source static Owa-Interno interface service https https
nat (INSIDE,OUTSIDE) source static Sito-Interno interface service http http
nat (INSIDE,OUTSIDE) source static INSIDE-LAN INSIDE-LAN destination static Rete_VpnAnyconnect Rete_VpnAnyconnect no-proxy-arp route-lookup
!
object network INSIDE-LAN
nat (any,OUTSIDE) dynamic interface
Thanks.
M
12-18-2013 08:44 AM
yes, that looks (nearly) fine. An improvement is to change your two HTTP and HTTPS-rules to object-NAT instead of twice-NAT:
object network Owa-Interno
host 10.0.1.4
nat (INSIDE,OUTSIDE) static interface service tcp https https
object network Sito-Interno
host 10.0.1.8
nat (INSIDE,OUTSIDE) static interface service tcp http http
--
Don't stop after you've improved your network! Improve the world by lending money to the working poor:
http://www.kiva.org/invitedby/karsteni
12-18-2013 10:40 PM
Thanks Karsten.
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