01-18-2018 03:22 AM - edited 02-21-2020 07:09 AM
ASA5515
ASA version 9.2(2)4
I am a newbie and this is my first post.
We currently run out of Public IPs and we need to publish another service.
Here is the current access list and nat.
access-list out-in extended permit tcp any host Internal_Host_A
access-list out-in extended permit tcp any host Internal_Host_B
access-list out-in extended permit tcp any host Internal_Host_C
access-list out-in extended permit tcp any host Internal_Host_D
access-list out-in extended permit tcp any host Internal_Host_E (newly added host)
nat (inside,Outside) source static OBJ-Internal_Host_A OBJ-External_IP_A
nat (inside,Outside) source static OBJ-Internal_Host_B OBJ-External_IP_B
nat (inside,Outside) source static OBJ-Internal_Host_C OBJ-External_IP_C
nat (inside,Outside) source static obj-Internal_Host_D obj-External_IP_D
nat (inside,Outside) source dynamic obj-Internal_Host_E OBJ-External_IP_C 1433 (i added this but not working obviously)
We need to Publish both Internal_Host_C and Internal_Host_E to External_IP_C with different ports
Internal_Host_C need to be mapped to the following ports 80, 443, 8443, 2202 and 3306
Internal_Host_E only need to be map to port 1433
How do I accomplish this in step by step.
I prefer to do it by cli if possible.
By the way from Host A - D, all is published and working currently.
Thank you
Arthur
Solved! Go to Solution.
01-18-2018 06:05 PM
Hi
Here a sample config
no nat (inside,Outside) source static OBJ-Internal_Host_C OBJ-External_IP_C
--> remove that nat to be able to use this public ip for different devices on different private IP.
!
object network Internal_Host_C-TCP80
nat (Inside,Outside) static OBJ-External_IP_C service tcp 80 80
!
object network Internal_Host_C-TCP443
nat (Inside,Outside) static OBJ-External_IP_C service tcp 443 443
....
You'll need to create 1 object per port and do the nat on the object like the example.
01-23-2018 09:41 AM
01-18-2018 06:05 PM
Hi
Here a sample config
no nat (inside,Outside) source static OBJ-Internal_Host_C OBJ-External_IP_C
--> remove that nat to be able to use this public ip for different devices on different private IP.
!
object network Internal_Host_C-TCP80
nat (Inside,Outside) static OBJ-External_IP_C service tcp 80 80
!
object network Internal_Host_C-TCP443
nat (Inside,Outside) static OBJ-External_IP_C service tcp 443 443
....
You'll need to create 1 object per port and do the nat on the object like the example.
01-20-2018 09:36 PM
Hi Francesco,
Thank you for the sample config, it was very helpful. It is working as it should be now.
Is it possible to lockdown the access to my host at port 1433 to only a known client's IP?
Thanks again.
Arthur
01-21-2018 08:50 AM
01-23-2018 02:53 AM
Hi Francesco,
from our previous config that is working now
object network obj-Internal_Host_E-TCP1433
nat (inside,Outside) static OBJ-External_IP_C service tcp 1433 1433
The access list pointing to Internal_Host_E
access-list out-in extended permit tcp any host Internal_Host_E 1433
access-group out-in in interface Outside
What should i change on this one?
Regards.
Arthur
01-23-2018 09:41 AM
01-23-2018 09:12 PM
Hi Francesco,
I appreciate your help. Yes it is clear to me now.
Regards.
01-24-2018 02:20 PM
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