06-21-2013 04:50 AM - edited 03-11-2019 07:01 PM
Hello,
As shown in the diagram attached , i have 2 firewalls one to be used as internal and the other as external , but i have only one public IP which will be on the outside interface of external firewall.
So as shown in the diagram can i nat 192.168.1.2 which is behind internal firewall to the outside interface of the external firewall. ??
When i try to apply static NAT rules i asks me to to translate it on to an interface but in this case my direct outside interface is of Internal Firewall.
How can i access internat on my desktops and how can i xpose servers onto public ip , the servers are located in DMZ of internal firewall
06-21-2013 04:59 AM
Hi,
Well since we are talking about an internal firewall behind which some of the servers are located then you could possibly configure the internal firewall so that it DOESNT DO any NAT. And since you have only one public IP address on the external firewall then you will need to configure Static PAT (Port Forward) and forward the services you need to that server.
Also you should configure Dynamic PAT on the external firewall for all the local networks behind it so they can use the single public IP address you have. In this case you naturally have to make sure that the external firewall has a route towards every network behind it, even the ones behind internal firewall.
Naturally if you have multiple servers that need to be accessed with the same services then that is not possible without changing the port visible to the external public network. For example you cant Static PAT public port TCP/80 twice.
- Jouni
06-21-2013 06:00 AM
Thanks for the reply Jouni , i m planning to access internal services publically using different ports.
but what i dont understand is that if i do not use NAT for internal users behind internet firewall , then how can i access internet from internal hosts ??
On a single firewall we can NAT the internal ips on to the outside interface, but this cant be done here because for internal firewall outside interface is also public so how can i access internet on the internal desktops ??
06-21-2013 06:14 AM
Hi,
From what I understood from your picture it seems
With the above in mind, I was suggesting that since you only have private networks behind the External/Internal firewalls you could leave out all NAT configurations from the Internal firewall as there is no real reason to NAT IP addresses in your local LAN if there is no overlapping.
Your External firewall would naturally be forwarding some ports to the Internal servers by using its single public IP address and some public TCP/UDP port.
You do say that your Internal firewalls "outside" interface also has a public IP address but it doesnt mention anything about it in the picture. If you refer to the fact that you have configured Static NAT for the Internal firewalls "outside" on the External firewall then you should NOT do that since you would be essientially dedicating that single public IP address you have for the Internal firewall.
- Jouni
06-23-2013 06:41 AM
Thanks Jouni , but i think i have not been clearer with the requirement so i will xplain once again
I do not intend to use NAT on Internal firewall (except for Internet access for internal users) nor will i b using any public IP on the internal firewall , now i have one WAN ip configured on the outside interface of my External Firewall , from internet cloud i think i can redirect the same ip using different ports to the services behind my internal firewall , but what my problem is that i have users in the inside zone of Internal firwall who i have to give access to the Internet so how can i use NAT for those users , how can i NAT those users to an interface such that they can access internet??? in simple words how the users or the develpment team in the inside zone behind the internal firwall can be given access to the Internet ????
06-23-2013 06:51 AM
Hi,
That is howI've understood it too.
Naturally I dont know yet what your software level on those ASAs as it affects the NAT configuration format used. The change in the NAT configuration happened between software levels 8.2 -> 8.3
But as I have said before.
From your picture and explanation I gather that the Internal firewall doesnt really require NAT configurations BECAUSE its not on the edge of the LAN and WAN and doesnt hold a public IP address itself. Also there is no point configuration any other NAT either since it should be ok for all hosts behind the External and Internal firewall to communicate with their original IP addresses.
On the External firewall we will want to configure Dynamic PAT for all the users behind the firewall so they can access Internet.
The below configurations can naturally be different depending what your interfaces names are and what the actual networks are. And as I said the software level might mean that the NAT configuration format is totally different.
On the External Firewall you will simply configure
global (outside) 1 interface
nat (inside) 1 192.168.2.0 255.255.255.0
nat (inside) 1 192.168.1.0 255.255.255.0
The above would do Dynamic PAT towards the Internet for both of your LAN networks shown in the picture you have attached to the original post.
Naturally you will also have to make sure that routing is correct
External ASA will have to have a route towards both the WAN and the LAN
route outside 0.0.0.0 0.0.0.0
route inside 192.168.1.0 255.255.255.0 192.168.2.1
Internal ASA will have to have a route towards the External ASA so it knows where to forward traffic bound for Internet
route outside 0.0.0.0 0.0.0.0 192.168.2.2
And as I said before, you shouldnt really need ANY NAT configurations on the Internal firewall as the External firewall ONLY is going to do the NAT towards WAN as it holds the public IP address.
- Jouni
06-23-2013 06:55 AM
And naturally the Static PAT (Port Forward) configurations on the External firewall for the Internal hosts could look something like this
static (inside,outside) tcp interface
static (inside,outside) udp interface
And again, depending on your software level the NAT configuration might look completely different.
- Jouni
06-23-2013 09:56 PM
Thanks a lot jouni..i think my doubt is now cleared..will test it out and let u know the outcome.
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