06-08-2017 10:50 AM - edited 03-05-2019 08:40 AM
Client has moved ISPs and has been provided two public IP blocks, a /29 "WAN block" and a /28 "LAN block". We initially utilized the single WAN IP provided by the ISP /29 "WAN block", but we now need to utilize additional public addresses made available via the ISP's /28 "LAN block". I would like some input on how we would implement the /28 public IP block with our existing configuration, basically chaning the NAT IPs from using the default single WAN ip to the provided /28 public ips for the network objects that have inbound open ports (smtp, webmail, etc.) and some that connect outbound (smtp). Redacted config follows. Any input would be greatly appreciated.
Solved! Go to Solution.
06-08-2017 01:19 PM
Hello,
here is an example (I hope this is what you are trying to do): 192.168.0.1 is the inside host, and 212.12.10.1 the outside IP address from your pool. The static NAT entry is for TCP 80 to 8080.
ASA(config)# object network ISP_STATIC_1
ASA(config-network-object)# host 212.12.10.1
ASA(config-network-object)# object network LAN_HOST_1
ASA(config-network-object)# host 192.168.0.1
ASA(config-network-object)# nat (inside,outside) static ISP_STATIC_1 service tcp 80 8080
06-08-2017 12:09 PM
Hi
Both blocks were provided to the client by the same ISP, they are public IP ranges, is that correct?
:-)
06-08-2017 12:10 PM
Yes.
06-08-2017 12:19 PM
I think your ISP is providing both blocks over the same VLAN (1 block /29 as primary and the second block /28 is configured as secondary under the same vlan), so you dont need big changes, you can use the other block /28 like you do with primary for the NATs. Both blocks will use the same gateway.
06-08-2017 12:34 PM
Exactly. However, I'm unsure how to write the NAT config for the internal server objects to use the new /28 ip addresses, inbound and outbound.
06-08-2017 12:44 PM
I think you should not change the current config, you could create static NAT with range /28.
06-08-2017 01:04 PM
Yes, my thoughts too, but how would I rewrite these existing NATs to use a specific ip of the /28 block?
nat (LAN,WAN) source static RSAport7004_1 interface service 7004 7004
object network sanderling_https_nat
nat (LAN,WAN) static interface service tcp https https
Just replace "interface" with the ip and subnet? Create and address object with the /28 IP address and reference that?
Please forgive my ignorance here.
06-08-2017 01:19 PM
Hello,
here is an example (I hope this is what you are trying to do): 192.168.0.1 is the inside host, and 212.12.10.1 the outside IP address from your pool. The static NAT entry is for TCP 80 to 8080.
ASA(config)# object network ISP_STATIC_1
ASA(config-network-object)# host 212.12.10.1
ASA(config-network-object)# object network LAN_HOST_1
ASA(config-network-object)# host 192.168.0.1
ASA(config-network-object)# nat (inside,outside) static ISP_STATIC_1 service tcp 80 8080
06-08-2017 01:56 PM
That looks right, and I was thinking it could be that easy.
Essentially, the existing /29 public IP on the outside (WAN) interface and its GW are what we need to use. I'm assuming that the ISP routes the separate /29 network IPs to our router (though the /29 subnet is a completely different network from the /28).
I just was concerned the ASA would balk at sending or receiving packets with a previously undefined public IP address (meaning not bound to an interface, etc.).
However, do I need to define the /28 pool anywhere in the ASA before setting a host object with an IP from the /28 public address from which to NAT?
06-08-2017 02:04 PM
Hello,
you only need the pool object if you would use it for dynamic NAT. For just static NAT, you can use the example I gave you earlier.
06-08-2017 02:08 PM
Well, Georg and Julio, you guys are great. I felt it was likely that simple, but I couldn't resolve the "text book" examples I had seen into changes for this config.
A very big thank you for your responses. I'll try it out in the running config, and revert to the startup if it fails to work.
Not sure if I can set two correct answers, but I will try. ;-)
Thanks again!
06-08-2017 04:45 PM
You are welcome, please keep us posted. Always remember get a backup.
:-)
06-11-2017 08:20 AM
Worked perfectly, of course after adding the access permit rule.
Thanks again!
06-08-2017 12:32 PM
Hello,
at the very least, if I understand your setup correctly, you need a network object defining the /28 block of IP addresses:
object network ISP_POOL
range 212.12.10.1 212.12.10.14
Then, add the dynamic NAT entry to your network object defining the LAN:
object network NETWORK_OBJ_192.168.0.0_24
subnet 192.168.0.0 255.255.255.0
nat (INSIDE, OUTSIDE) dynamic ISP_POOL
06-08-2017 12:38 PM
Yes, and dynamic would be fine for clients browsing etc. Just not sure about configuring that for static ips from the /28 block for internal server objects with inbound smtp, webmail, vpn (anyconnect) authing through an rsa, etc. Also outbound smtp needs to be a static address from the /28 block. I understand the examples, just trying to make it work with the existing config.
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