How do I make DNS work with a firewall?
Java Security,Windows code security, Windows Server 2003 Security,Internet Explorer 7 Security and Internet Firewalls questions and answers
(Continued from previous question...)
How do I make DNS work with a firewall?
Some organizations want to hide DNS names from the outside. Many experts don't think hiding DNS names is worthwhile, but if site/corporate policy mandates hiding domain names, this is one approach that is known to work. Another reason you may have to hide domain names is if you have a non-standard addressing scheme on your internal network. In that case, you have no choice but to hide those addresses. Don't fool yourself into thinking that if your DNS names are hidden that it will slow an attacker down much if they break into your firewall. Information about what is on your network is too easily gleaned from the networking layer itself. If you want an interesting demonstration of this, ping the subnet broadcast address on your LAN and then do an ``arp -a.'' Note also that hiding names in the DNS doesn't address the problem of host names ``leaking'' out in mail headers, news articles, etc.
This approach is one of many, and is useful for organizations that wish to hide their host names from the Internet. The success of this approach lies on the fact that DNS clients on a machine don't have to talk to a DNS server on that same machine. In other words, just because there's a DNS server on a machine, there's nothing wrong with (and there are often advantages to) redirecting that machine's DNS client activity to a DNS server on another machine.
First, you set up a DNS server on the bastion host that the outside world can talk to. You set this server up so that it claims to be authoritative for your domains. In fact, all this server knows is what you want the outside world to know; the names and addresses of your gateways, your wildcard MX records, and so forth. This is the ``public'' server.
Then, you set up a DNS server on an internal machine. This server also claims to be authoritative for your domains; unlike the public server, this one is telling the truth. This is your ``normal'' nameserver, into which you put all your ``normal'' DNS stuff. You also set this server up to forward queries that it can't resolve to the public server (using a ``forwarders'' line in /etc/named.boot on a Unix machine, for example).
Finally, you set up all your DNS clients (the /etc/resolv.conf file on a Unix box, for instance), including the ones on the machine with the public server, to use the internal server. This is the key.
An internal client asking about an internal host asks the internal server, and gets an answer; an internal client asking about an external host asks the internal server, which asks the public server, which asks the Internet, and the answer is relayed back. A client on the public server works just the same way. An external client, however, asking about an internal host gets back the ``restricted'' answer from the public server.
This approach assumes that there's a packet filtering firewall between these two servers that will allow them to talk DNS to each other, but otherwise restricts DNS between other hosts.
Another trick that's useful in this scheme is to employ wildcard PTR records in your IN-ADDR.ARPA domains. These cause an an address-to-name lookup for any of your non-public hosts to return something like ``unknown.YOUR.DOMAIN'' rather than an error. This satisfies anonymous FTP sites like ftp.uu.net that insist on having a name for the machines they talk to. This may fail when talking to sites that do a DNS cross-check in which the host name is matched against its address and vice versa.
(Continued on next question...)
Other Interview Questions
- Is Java secure?
- What are the risks?
- How common are security breaches?
- Who is at risk?
- How can I protect myself?
- What about products that claim to detect malicious applets?
- What about products that claim to block Java applets at a firewall?
- Which is more secure: Java or ActiveX?
- Which version of my browser should I use?
- What about ``hostile applets?''
- I run a Web server. Am I at risk?
- What about JavaScript?
- What’s the difference between code-based security and role-based security? Which one is better?
- How can you work with permissions from your .NET application?
- How can C# app request minimum permissions?
- What’s a code group?
- What’s the difference between authentication and authorization?
- What are the authentication modes in ASP.NET?
- Are the actual permissions for the application defined at run-time or compile-time?
- # What’s the difference between local, global and universal groups?
- # I am trying to create a new universal user group. Why can’t I?
- # What is LSDOU?
- # Why doesn’t LSDOU work under Windows NT?
- # Where are group policies stored?
- # What is GPT and GPC?
- # Where is GPT stored?
- # You change the group policies, and now the computer and user settings are in conflict. Which one has the highest priority?
- # You want to set up remote installation procedure, but do not want the user to gain access over it. What do you do? gponame–>
- # What’s contained in administrative template conf.adm?
- # How can you restrict running certain applications on a machine?
- # You need to automatically install an app, but MSI file is not available. What do you do?
- # What’s the difference between Software Installer and Windows Installer?
- # What can be restricted on Windows Server 2003 that wasn’t there in previous products?
- # How frequently is the client policy refreshed?
- # Where is secedit?
- # You want to create a new group policy but do not wish to inherit.
- # What is "tattooing" the Registry?
- # How do you fight tattooing in NT/2000 installations?
- # How do you fight tattooing in 2003 installations?
- # What does IntelliMirror do?
- # What’s the major difference between FAT and NTFS on a local machine?
- # How do FAT and NTFS differ in approach to user shares?
- # Explan the List Folder Contents permission on the folder in NTFS.
- # I have a file to which the user has access, but he has no folder permission to read it. Can he access it?
- # For a user in several groups, are Allow permissions restrictive or permissive?
- # For a user in several groups, are Deny permissions restrictive or permissive?
- # What hidden shares exist on Windows Server 2003 installation?
- # What’s the difference between standalone and fault-tolerant DFS (Distributed File System) installations?
- # We’re using the DFS fault-tolerant installation, but cannot access it from a Win98 box.
- # Where exactly do fault-tolerant DFS shares store information in Active Directory?
- # Can you use Start->Search with DFS shares?
- # What problems can you have with DFS installed?
- # I run Microsoft Cluster Server and cannot install fault-tolerant DFS.
- # Is Kerberos encryption symmetric or asymmetric?
- # How does Windows 2003 Server try to prevent a middle-man attack on encrypted line?
- # What hashing algorithms are used in Windows 2003 Server?
- # What third-party certificate exchange protocols are used by Windows 2003 Server?
- # What’s the number of permitted unsuccessful logons on Administrator account?
- # If hashing is one-way function and Windows Server uses hashing for storing passwords, how is it possible to attack the password lists, specifically the ones using NTLMv1?
- # What’s the difference between guest accounts in Server 2003 and other editions?
- # How many passwords by default are remembered when you check "Enforce Password History Remembered"?
- #1: Default protection from potentially dangerous Active X controls
- #2: Per-zone control of Active X opt-in
- #3: Site and zone locking for Active X controls
- #4: Protection against phishing
- #5: Cross-domain security
- #6: Locked down security zones
- #7: Better SSL/TLS notification and digital certificate info
- #8: Privacy protection features
- #9: Address bars
- #10: International character alert
- What is a network firewall?
- Why would I want a firewall?
- What can a firewall protect against?
- What can't a firewall protect against?
- What about viruses and other malware?
- Will IPSEC make firewalls obsolete?
- Where can I get more information on firewalls on the Internet?
- What are some of the basic design decisions in a firewall?
- What are the basic types of firewalls?
- Network layer firewalls
- Application layer firewalls
- What are proxy servers and how do they work?
- What are some cheap packet screening tools?
- What are some reasonable filtering rules for a kernel-based packet screen?
- What are some reasonable filtering rules for a Cisco?
- What are the critical resources in a firewall?
- What is a DMZ, and why do I want one?
- How might I increase the security and scalability of my DMZ?
- What is a `single point of failure', and how do I avoid having one?
- How can I block all of the bad stuff?
- How can I restrict web access so users can't view sites unrelated to work?
- What is source routed traffic and why is it a threat?
- What are ICMP redirects and redirect bombs?
- What about denial of service?
- What are some common attacks, and how can I protect my system against them?
- Do I really want to allow everything that my users ask for?
- How do I make Web/HTTP work through my firewall?
- How do I make SSL work through the firewall?
- How do I make DNS work with a firewall?
- How do I make FTP work through my firewall?
- How do I make Telnet work through my firewall?
- How do I make Finger and whois work through my firewall?
- How do I make gopher, archie, and other services work through my firewall?
- What are the issues about X11 through a firewall?
- How do I make RealAudio work through my firewall?
- How do I make my web server act as a front-end for a database that lives on my private network?
- But my database has an integrated web server, and I want to use that. Can't I just poke a hole in the firewall and tunnel that port?
- How Do I Make IP Multicast Work With My Firewall?
- What is a port?
- How do I know which application uses what port?
- What are LISTENING ports?
- How do I determine what service the port is for?
- What ports are safe to pass through a firewall?
- The behavior of FTP
- What software uses what FTP mode?
- Is my firewall trying to connect outside?
- The anatomy of a TCP connection
- Glossary of Firewall-Related Terms
|