02-10-2020 11:41 AM
Hello,
We have on our internal network a CalDav server which is accessible from outside using NAT rules on our ASA 5506 firewall.
However, this CalDav server should be accessible from outside (working) and also from our internal network. The smartphones having the CalDav client application installed are always configured to point on the public IP of this server, but once the smartphones are connected to the internal network, they do not have access to the "public" server anymore. Then, I'm trying to figure out what would be the best practice (with the ASDM) to NAT the external IP to an internal IP when trying to access this server from the internal network.
Thanks in advance for you support,
Florian
02-10-2020 07:05 PM
02-24-2020 01:56 AM
02-11-2020 02:55 AM
Hello,
something like the below should work as well (IP addressing is arbitrary obviously):
same-security-traffic permit intra-interface
!
interface GigabitEthernet0/1
nameif inside
security level 100
ip address 192.168.1.1 255.255.255.0
!
interface GigabitEthernet0/0
nameif outside
security level 0
ip address 100.100.100.1 255.255.255.252
!
object network WEBSERVER_PUBLIC
host 100.100.100.1
!
object network WEBSERVER_LOCAL
host 192.168.1.100
!
object service HTTP
service tcp destination eq www
!
object-group network LOCAL_HOSTS
network-object 192.168.1.0 255.255.255.0
!
nat (inside,inside) source dynamic LOCAL_HOSTS interface destination static WEBSERVER_PUBLIC WEBSERVER_LOCAL service HTTP HTTP
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