|
MULTI NETWORK FIREWALLS MADE EASY Mandrake leaves the crackers at the gates |
|
|||
![]() by Jack Fegreus February 7, 2003; updated February 10, 2003 |
|
|
|
|
|
|
From SQL Slammer to W32.Klez new computer threats pop up daily. Every new virus, worm, and network denial of service attack puts every business at risk. With the growing acceptance that global computing is inherently insecure, the issue is how to construct enough hurdles to avert crackers and divert them to easier targets of opportunity. As even the CIA and DoD have learned, it's impossible to insure that a very good and very determined cracker can’t break into a network and cause havoc. These sophisticated crackers can get into your systems, steal information, learn to impersonate workers or—worse yet—clients, and even deny a company access to its own resources. For high-profile companies such as banks, telecommunications, credit card, and insurance firms, this is a serious concern. Nonetheless, the bell-shaped curve tolls even for crackers and most corporations need only deal with the not-so-good and the not-so-determined spammer who is trying to vacuum e-mail names off of public web sites. With the blessing of less worry, however, also comes the curse of more security issues to balance. The more secure your system becomes, the more intrusive your security becomes. Making this all the more poignant is the first rule of computer network security: That which is not permitted is prohibited.
|
|
|
Nonetheless, writing scripts for rules in Iptables is an arcane art that is definitely not for amateurs. Even when equipped with the most user-friendly tool available, anyone charged with building a firewall needs to know how packet filtering works and what the potential security holes are. To jumpstart the process, an excellent place to start is the Linux Firewalls book by Robert L. Ziegler, published by New Riders. Moreover, all of the potential security holes are not restricted to networking issues alone. When building a firewall on a distribution designed to function as a general desktop system, a good understanding of Linux system management principles is a must, in order to lock all of the potential back doors that a knowledgeable cracker could exploit. |
|
|
|
|
|---|---|---|
|
MandrakeSoft’s MandrakeSecurity Multi Network Firewall (MNF), which is geared for small-to-medium-sized businesses, goes a long way to filling the void in firewalls that are easy to configure and manage. A secure web interface and a very minimalist configuration built on the Linux 2.14.18 secure kernel provide the foundation platform that installs in all of 5 minutes, boots in a flash, supports multiple Virtual Private Networks with an unlimited number of clients, and provides high-throughput IPSec encryption. Like the OpenExchange groupware server from SuSE, the MNF server from MandrakeSoft integrates a number of Open Source software packages under a common GUI. The software packages integrated into MandrakeSecure MNF include the Shorewall firewall, the Free/SWAN IPSec tunnel patches to the Linux kernel to support virtual private networks, the Snort and Prelude intrusion detection systems and the Squid proxy server for caching web objects and filtering based on either URLs or content. Two key advantages are provided by the MandrakeSoft server package: First, there is a single install for all of the software packages without the need to patch the kernel and second, all of the packages, which on their own require considerable configuration scripting, can now be configured and monitored through a single GUI. Once installed, all configuration, monitoring, and control of MandrakeSecure MNF is done through a web browser on a system resident on the trusted internal LAN, which by default belongs to eth0. At least, that’s the way the theory goes. There is a certain Gallic insouciance toward the creation of Iptable rules, however, which can get you into trouble when formulating complex routing scenarios. Fortunately, when the firewall’s web interface crumbles, the shorewall restart command is superb at pointing to the precise cause of why any rule fails to start. And there are always the trusty su and vi commands to rapidly repair the damage the old-fashioned way. It's also worth noting that whether executed at the MNF GUI or the console, the shorewall restart command maintains the existing state tables as it reloads Iptables so as not to disturb existing IPSec/PPTP tunnel connections. Initial configuration of MandrakeSecurity MNF begins with a lot of standard housekeeping: defining Internet addresses for a time server, a secondary DNS, and a system to ping on the Internet to verify the health of a WAN connection. The next step is to associate a type of zone (LAN, WAN, or DMZ ) with each physical network device. Here we ran up against some curious limitations of the Mandrakesoft GUI to Shorewall for sites hosting a number of virtual low-traffic domains. |
|
Naturally, the Mandrake distribution will recognize any number of Ethernet adapters plugged into the system’s backplane. If an “expert” installation is chosen, all of the devices will be shown available to the Linux kernel. The Mandrakesoft GUI interface to Shorewall, however, appears to be set to a hard limit of 4 devices and will not configure multiple virtual Ethernet addresses on a single device. All of these capabilities are standard features of the standard Shorewall package. Worse yet, when we manually created virtual device addresses at the consol using the ifconfig command, the Shorewall web interface was swept asunder. For our tests, having just 4 Ethernet connections with the integrated Mandrake MNF package presented no stumbling block. We set up an internal trusted LAN on eth0, a DMZ supporting a web server sporting 2 domains and two distinct e-mail servers on eth1, and 2 WANs on eth2 and eth3. Typically we would have preferred to configure our two public web addresses as eth2:0 and eth2:1 on a single Ethernet card. This is expeditiously handled by the zone configuration wizard on the web interface. What’s more, the simple act of associating zone type with each interface immediately sets into play the base configuration of rules and policies that have been predefined within MandrakeSecurity MNF. This default configuration includes the correct Iptable rules for web and e-mail access from within the secure LAN and restriction of network response from the firewall to the one default secure port on the internal administration LAN (eth0). |
|
|
This makes the email and web server in the DMZ all accessible from the web. This scheme, however, leaves clients inside the firewall on the secure LAN going out to the web in order to get back into the DMZ and access the e-mail and web servers. To avoid this unnecessary round trip out to the web and back, Shorewall supports simple Proxy ARP rules and a MandrakeSecure MNF wizard takes distinct advantage of this fact. Proxy ARP is readily enabled, which makes the servers in the DMZ subnet directly addressable by the client systems in the secure LAN. At any time in creating these rules, the network administrator can enhance security by hiding services using obscure port numbers. For example, web traffic by default is handled at port 80. Suppose there are separate web and e-mail servers behind the firewall that are both servicing the same Internet domain and the e-mail server provides clients with web access. It is likely that both servers will default to listening on port 80 for incoming web traffic. Nonetheless, odds are that you want the web server to be very public and the e-mail server very private. Just give users an obscure port number—say 7070—to use for web traffic on the e-mail server. Then with MNF, it is simply a matter of creating two modified web rules that use port 7070 on the firewall and route that traffic to port 80 on the e-mail server. |
|
The MandrakeSecurity MNF rules wizard can also be used to filter content of URLs. In particular, a blacklist of IP addresses can be created and all packets from these addresses will be dropped. This ability to filter URLs can be used to block annoying pop-up ad windows. For the most part, these bothersome advertisements are generated by specialized servers at URLs such as doubleclick.com and unicast.com. Using Squid, however, simplifies the blocking of these URLs. That’s because Squid provides for blocking by domain name rather than IP address, which is much easier than manually looking up all of the IP addresses associated with a domain name. If simplified rule development were not enough to gain attention, MandrakeSecurity MNF offers two additional bonuses that are sure to warm the heart of any network security manager. The firewall package includes two Open Source network intrusion detection systems: SnortSnarf and Prelude. SnortSnarf from Silicon Defense is a front-end analysis tool written in Perl that takes the alerts logged by the Snort Intrusion Detection System and produces a detailed analysis in HTML format. These network intrusion detection systems can detect probes, scans, and other anomalous network activity from any of the network interfaces. Equally important for many sites, these intrusion detection systems can also serve to identify general network traffic patterns when troubleshooting network problems. Using MandrakeSecurity MNF, system administrators are also able to monitor the amount of bandwidth used by various types of network traffic to ensure that business-critical applications are not impacted by web surfing or other non-critical applications. |
|
|
|
MandrakeSecurity MNF is available through two different licenses.
There is the standard "Download" End-User License Agreement. Based on the GPL license, this license enables users to
freely copy and adapt the code. In addition, there is a "Commercial" End-User License Agreement for companies
wishing to build and commercially redistribute a derivative product. The Commercial License Agreement provides
extended guaranties, extra levels of support, security updates (through subscription), rights to change the code,
and access to use of MandrakeSoft's brand. |
|