12-28-2015 08:30 AM - edited 03-12-2019 12:04 AM
We need to configure the Firewall according to attached diagram.
ISP have provided us the Public Static IP with DNS. (Primary DNS 194.168.1.1, Secondary DNS 194.168.2.1)
We are successfully able to connect devices to internet. But we have to assign DNS in to every host's IPV4 settings (PC1, Web Server). Which is not a good idea. Is it possible that firewall can do DNS.
We only have one Public IP, which means we cannot add Public Server using ASDM. We want firewall's outside IP to use to access Web Server ports from Public Internet.
12-28-2015 09:35 AM
Hello;
Ok so, your issue is that you need to manually assign DNS servers on the machines? Where are these machines obtaining the IP information?
Have you test the DNS servers that the ISP gave you outside the firewall? I.e if they are public you can assign them to your phone and test it.
Something you can do is to assign a public DNS server, using the DHCP server on your network.
Mike.
12-28-2015 11:11 AM
!
dhcpd address 192.168.1.5-192.168.1.254 inside
dhcpd dns 194.1.X.1 194.1.Y.1 interface inside
dhcpd enable inside
!
dhcpd address 192.168.0.5-192.168.0.254 dmz
dhcpd dns 194.1.X.1 194.1.Y.1 interface dmz
dhcpd enable dmz
DHCP is already configured. But DHCP assign these DNS entries with IP lease to hosts.
What i think is that it should get DNS from firewall. Means for inside hosts Primary DNS should be 192.168.1.1
12-28-2015 11:34 AM
Hi;
The DNS servers you should get assigned are the ones you configured (194.1.x.1 and 194.1.y.1).
You say that when this is configured it does not work and you have to manually put those same servers on the hosts and then it works?
Mike.
12-29-2015 02:37 AM
Hi Maykol,
They work perfectly fine. As i have already stated in my Discussion that internet is working on both (inside, dmz) hosts. Means name resolving is working.
But what i want is that DNS in hosts should be the inside interface ip (192.168.1.1) for inside hosts and dmz interface ip (192.168.0.1) for dmz connected hosts. Similarly like hosts connected to ADSL or WAN routers. Same i have done with Cisco ASA 500 series firewall.
12-29-2015 07:35 AM
Hello;
I think I understand it now. You want to be able to put the firewall IP as the DNS server and then the firewall to forward the request to the DNS server? Is this correct?
If so, this is a proxy capability the firewall does not have, but there is NAT config that can be put in place so it can work.
Let me know.
Mike.
12-29-2015 08:33 AM
OK what nat configurations i need to do to achieve this.
Also i want to connect a web server to dmz as you can see in attached Network Diagram (network_diagram.jpg). Webserver will serve Public coming from internet. I want to port forward port 80 from ouside to dmz. (Means outside interface ip to be mapped to Webserver's local IP 192.168.0.100).
Waiting for your swift reply.
12-30-2015 07:07 AM
If you have any questions, let me know.
Mike.
12-30-2015 08:40 AM
Hi Maykol,
Thanks for the help. I will try this.
But main issue is that how i can publicize my Webserver when i have only one ip from ISP. I want public and inside hosts to access Webserver for http and ftp.
I got one IP from ISP and it is assigned to outside interface. How i can map this IP to Webserver on different ports.
12-30-2015 09:17 AM
Hi;
The lines in the previous post where it says "Access to Web server" that would allow you to access the server using the ASA interface IP (the port forward you were looking for) for outside users on port 80 (mirror the configuration for ftp 21).
If you want to access the WebServer with the Public from the inside as well you can go ahead and to the following:
That should do the trick.
Mike
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