Authentication system deployment throughout protected access (UTM) for the Wireless Network in a hotel chain
Abstract
A Hotel chain distributed over Europe wishes to provide wireless access to Internet for the hosted customers and offer an integral security through a Unified Threat Management ( UTM ) The project will consist; in one hand, based on the customer's needs, on adding a wireless access, with a captive portal authentication centralized at our company being able to manage users as well as the wireless networks remotely. On the other hand, the securization and management of the communication lines will be handled by an extended UTM platform with integrated functions such as Firewall, Virtual Private Network, Web Filter, Traffic Shaping and Application Control amongst others.
Full text
TREBALL DE FI DE CARRERA
TÍTOL DEL TFC: Implementació d’un sistema d’autenticació amb accés protegit (UTM) per la xarxa WLAN d’una cadena d’hotels. TITULACIÓ: Enginyeria Tècnica de Telecomunicació, especialitat Telemàtica AUTOR: Jean Miquel Escolà Henke DIRECTOR: Xavier Mangado Florit SUPERVISOR: Josep Manuel Yúfera Gómez DATA: 10 d’octubre 2011 Resum Una cadena d’ Hotels repartits per Europa desitja proporcionar accés inal.làmbric a Internet per a clientes hostejats i ofereixen una seguretat integral mitjançant una gestió unificada d’amenaces (UTM) El projecte consistirà, per una part, basant-nos en les necessitats del client, en afegir un accés inal.làmbric, amb un sistema d’autenticació a través d’un portal captiu centralitzat en la nostra empresa permetent així administrar els usuaris i les xarxes inal.làmbriques remotament Per altra banda; consistirà també en la gestió i securització de les línies de comunicacions mitjançant una plataforma UTM extessa amb funcions integrades com Firewall, VPN, Gestor de Continguts Web, Administració de Tràfic (Traffic Shaping) i Control d’Aplicacions entre altres.
TÍTULO DEL TFC: Implementación de un sistema de autenticación con acceso protegido (UTM) para una red WLAN de una cadena de hoteles. TITULACIÓN: Ingeniería Técnica de Telecomunicación, especialidad Telemática AUTOR: Jean Miquel Escolà Henke DIRECTOR: Xavier Mangado Florit SUPERVISOR: José Manuel Yúfera Gómez FECHA: 10 de octubre de 2011 Resumen Una cadena de Hoteles repartidos por Europa desea proporcionar acceso inalámbrico a Internet para los clientes hospedados y ofrecer una seguridad integral mediante una gestión unificada de amenazas (UTM) El proyecto consistirá por una parte, basándose en las necesidades del cliente, en añadir un acceso inalámbrico, con un sistema de autenticación mediante un portal cautivo centralizado en nuestra empresa permitiendo así administrar los usuarios y las redes inalámbricas remotamente. Por otro lado; consistirá también en la gestión y securización de las líneas de comunicaciones mediante una plataforma UTM extendida con funciones integradas como Firewall, VPN, Gestor de Contenidos Web, Administración de Tráfico (Traffic Shaping) y Control de Aplicaciones entre otros.
TFC TITLE: Authentication system deployment throughout protected access (UTM) for the Wireless Network in a hotel chain. QUALIFICATION: Communication engineer AUTHOR: Jean Miquel Escolà DIRECTOR: Xavier Mangado SUPERVISOR: José Manuel Yúfera Gómez DATE: October 10th 2011 Overview A Hotel chain distributed over Europe wishes to provide wireless access to Internet for the hosted customers and offer an integral security through a Unified Threat Management ( UTM ) The project will consist; in one hand, based on the customer's needs, on adding a wireless access, with a captive portal authentication centralized at our company being able to manage users as well as the wireless networks remotely. On the other hand, the securization and management of the communication lines will be handled by an extended UTM platform with integrated functions such as Firewall, Virtual Private Network, Web Filter, Traffic Shaping and Application Control amongst others.
ACRONYMS ADSL: Asymmetrical Digital Subscriber Line. AH: Authentication Header AV: Antivirus. Cloud Services: Online services over Internet. DGD: Dead Gateway Detection DMZ: Demilitarized Zone. ECMP: Equal Cost Multi-Path ESP: Encrypted Security Payload IKE: Internet Key exchanger IPS: Intrusion Prevention System IPsec: Internet Protocol Security ISP: Internet Service Provider Kbps: Kilobits per second. Mbps: Megabits per second. NAT: Network Address Translation Pearl Expressions: Regular expression is a string of characters that define the pattern SA: Security association SSID: Wi-Fi network’s name SSL: Secure Socket Layer UTM: Unified Threat Management USB: Universal Serial Bus VPN: Virtual Private Network
INTRODUCTION .................................................................................................... 1 CHAPTER 1. COSTUMER’S SITUATION .............................................................. 2 1.1. Initial infrastructure ....................................................................................... 2 1.2. Customer needs. .......................................................................................... 3 CHAPTER 2. PROPOSAL...................................................................................... 4 2.1. First Proposal ............................................................................................... 4 2.1.1. Hardware ............................................................................................... 5 2.1.1.1. UTMs ............................................................................................... 5 2.1.1.2. Sputnik-powered devices ................................................................ 6 2.1.2. Connectivity ........................................................................................... 6 2.1.2.1. Datacenter’s Internet access. .......................................................... 6 2.1.2.2. Hotels Internet access. .................................................................... 7 2.1.2.3. Connection between clients and authentication system. ................. 7 2.2. Final Proposal. ............................................................................................. 8 2.2.1. Hardware. .............................................................................................. 8 2.2.2. Connectivity. .......................................................................................... 9 2.2.3. Deployment ............................................................................................ 9 2.2.4. Conclusion. ............................................................................................ 9 CHAPTER 3. AUTHENTICATION SOLUTION. ................................................... 10 3.1. SPUTNIK Control Center ............................................................................ 10 3.1.1. Easy installation ................................................................................... 10 3.1.2. Easy Management ............................................................................... 11 3.1.3. Easy authentication .............................................................................. 11 3.1.4. Monitorization ...................................................................................... 12 3.2. Captive portal. ............................................................................................ 12
CHAPTER 4. ROUTING SOLUTION .................................................................... 13 4.1. What is Routing? ........................................................................................ 13 4.2. Routing tables. ........................................................................................... 15 4.2.1. Routing Tables Entries ......................................................................... 15 4.3. Internet Access balancing. ......................................................................... 17 4.3.1. Source based ....................................................................................... 18 4.3.2. Weighted .............................................................................................. 19 4.3.3. Spill-over .............................................................................................. 19 CHAPTER 5. VPN SOLUTION ............................................................................. 20 5.1. IPSEC VPN. ............................................................................................... 20 5.1.1. IPSEC Mechanism ............................................................................... 21 5.2. IPSEC VPN Dialup ..................................................................................... 23 5.3. IPSEC VPN Site-to-Site .............................................................................. 23 5.4. IPSEC Site to Site Establishment ............................................................... 24 5.4.1. Phase1 Settings ................................................................................... 24 5.4.2. Phase2 Settings ................................................................................... 26 5.5. SSL_VPN ................................................................................................... 29 CHAPTER 6. SECURITY SOLUTION .................................................................. 29 6.1. Firewall Policies .......................................................................................... 29 6.1.1. Policy Settings ..................................................................................... 30 6.2. Firewall Protection Profiles. ........................................................................ 31 6.2.1. Antivirus ............................................................................................... 32 6.2.1.1. Antivirus techniques ...................................................................... 33 6.2.1.2. Antivirus Scanning ......................................................................... 34 6.2.1.2.1. Proxy-Based Antivirus Scanning ................................................ 34
6.2.2. Intrusion Prevention System (IPS) ....................................................... 36 6.2.3. Web Filter ............................................................................................ 37 6.2.3.1. URL Filtering ................................................................................. 37 6.2.3.2. FortiGuard Web Filtering ............................................................... 38 6.2.3.3. Web Content Filtering .................................................................... 39 6.2.4. Antispam Filtering ................................................................................ 40 6.2.4.1. - Email filter techniques ................................................................. 40 6.2.4.2. - Spam action ................................................................................ 42 6.2.5. Data Leak Prevention Sensor .............................................................. 42 6.2.6. Application Control ............................................................................... 43 6.3. Hotels’ Firewall Policies. ............................................................................. 44 6.4. Datacenter’s Firewall Policies. .................................................................... 45 CHAPTER 7. DEPLOYMENT AND MANAGEMENT. .......................................... 46 7.1. First Approach. ........................................................................................... 46 7.1.1. Scenario. .............................................................................................. 46 7.1.2. Results. ................................................................................................ 46 7.2. Final deployment. ....................................................................................... 47 7.3. Management. ............................................................................................. 47 CONCLUSIONS ................................................................................................... 48 REFERENCES. .................................................................................................... 49 ANNEX I: Interoperability with IPSec VPN products ........................................ 50 ANNEX II: Potential Web Threats ....................................................................... 51 ANNEX III: FortiGuard Web Filtering Categories .............................................. 52 ANNEX IV: Hotel 1 Firewall Policies .................................................................. 53
CHAPTER 2. PROPOSAL ____________________________________________________________________________ 7 Another requirement is that these two symmetric lines have to be from different ISP providers and have static IP address so we can build the VPN connections explained in the following chapters. 2.1.2.2. Hotels Internet access. Depending on their location, hotels Internet access availability and speed may vary. Since all of them have the possibility of a basic ADSL we are going to design the entire project using this type of Internet access for each and every one of the hotels. We recommend purchasing the highest speed available and require a static public IP address in order to establish the VPN connections against our Datacenter. We believe that having only one ADSL connection will not accomplish the wanted availability we are looking for, so we advise to use a balanced Internet connection with two different ISP. This will grant access to our authentication system avoiding complications such as an ISP service going down or dead routers. On top of it, if everything fails, the 3G connection would kick in. 2.1.2.3. Connection between clients and authentication system. Once the Internet access is setup in our Datacenter and in the Hotels, we have to explain how these two will connect between them. The UTM in each hotel will grant the redundancy needed to provide a balanced and stable authentication and the best of all, making it transparent for the end customer. Limiting access to our Authentication Server only through the required ports and from a list of allowed public IPs makes the connection safer but the best solution is to using a VPN tunnel with the same restrictions as before. A VPN will grant a secure connection against our authentication server encrypting all authentication traffic through it. This aspect will be further explained in chapter 5.
8 Authentication system deployment throughout protected access for a Wireless Network 2.2. Final Proposal. Figure 3: Final Proposal Diagram. 2.2.1. Hardware. Choosing Fortinet as for our UTM has been approved but due to the increase in the budget that implies having two appliances, our hardware proposal has been modified. After meeting with the Hotel’s chain manager we decided to deploy only one stand-alone firewall for each Hotel. In case something happened to it, the customer will have a spare appliance that if needed, will be used to replace any of the UTMs in less than 24 hours. As for using the Linksys as the Sputnik-powered device, the customer had no objection whatsoever. Most likely because this brand is on one of the few routers that allows Sputnik's network management software with an acceptable cost. Note: I am no sales representative so I have no knowledge of prices or costs. This information was given to me and I had to work from there.
CHAPTER 2. PROPOSAL ____________________________________________________________________________ 9 2.2.2. Connectivity. Our connectivity proposal has not been completely accepted neither. After discussing it with the customer we decided that the 3G solution is not worth it, considering the low bandwidth it provides and bearing in mind that we already have a backup up line. Authentication traffic is quite inconsiderable so no upstream traffic is needed; therefore the customer discarded using two symmetric lines and went for the two asymmetric lines making sure they had a static IP address and were from different ISP providers. 2.2.3. Deployment As seen in chapter 1, we are only concerned with the hotels located in our territory so that involves installing 7 UTMs (one for each hotel). Once a wireless network is setup in a hotel, we will proceed to deploy our authentication system. We will configure the firewalls remotely from our office so all we need to do is configuring the UTMs to guarantee the remote access through the ISP. Since it will be a basic configuration, we can expect one day in each location plus one or two days for any setback we might experience, and one more day to document everything. Altogether, considering we are not responsible of the ADSL setup, in two weeks (ten business days) all hotels should have their UTM deployed and remotely accessible. 2.2.4. Conclusion. Our deployed project will not defer much from the one that initially proposed. The only change has been ruling out the redundancy we advised in each of the hotels. Since each UTM, besides its price, has the FortiGuard license
10 Authentication system deployment throughout protected access for a Wireless Network renewal cost; having one UTM instead of two, lowers quite a bit the total budget for this project. As a workaround, in case something happened to a UTM, we will make sure that a new unit with the same configuration reaches a hotel in less than 24h. To do so, we’ll need to always have some spare UTMs in our office and the latest configuration of each hotel from our programmed backups, ready to be uploaded. As for the connectivity issue goes, even though the 3G connection will not be used for now, the USB port in the UTMs will make it available in case it is ever wanted in the future. CHAPTER 3. AUTHENTICATION SOLUTION. 3.1. SPUTNIK Control Center After researching through many different wireless authentication options with captive portals such as “Cisco NAC Guest Server”, “Air Marshal” or “iSpot” (being these last two less known worldwide), we chose Sputnik platform because its facility to implement, its flexibility and its cost-effectiveness. Other solutions, besides being harder to manage and more expensive, were difficult to scale. Sputnik 4 grants guests with a wireless access via username/password, and provides centralized management in real-time. This ensures customer’s security and gives us the chance to take immediate action if there is a network problem. 3.1.1. Easy installation The Sputnik device will connect to the Sputnik Control Server located in our Datacenter. This Control Server will be installed on two Virtual Machines configured in cluster both working under a Linux White Box platform. On this 4 http://www.sputnik.com/products/getting_started/
CHAPTER 3. AUTHENTICATION SOLUTION. ___________________________________________________________ 11 platform, besides having the Sputnik software installed, there will be an apache web server installed which will store the captive portal web login page. Sputnik-powered devices can be behind firewalls with no complications since they are the ones that connect to their Sputnik Control Center and not the other way around thanks to the Sputnik Agent 5 . Using a domain name instead of a public IP address, the devices subscribe to an account to which they were linked. In our case, the devices are subscribed to [email protected] which means that they connect to the IP that the name sputnik.memicsys.com resolves. This turns out to be really handy since if the Datacenters access ever changes its Public IP address, all we’ll need to do is modify the DNS translation; thus avoiding any changed on the devices. 3.1.2. Easy Management All Sputnik-devices can be managed remotely through a single secure Web interface. This authentication system has many configuration and diagnostic features, such as changing the SSID, viewing the active wireless sessions, rebooting the appliances or even terminating a connected user. 3.1.3. Easy authentication Sputnik Control Center enables users to authenticate through a simple user/password login. It can generate random access codes or one can easily upload them its own. Sputnik also makes it easy to set time limits; and since most guests won’t exceed a one week stay, we will create all access codes alike. Seven days access codes (10080 minutes, as one continuous time block) with the username will be created with the hotel’s location as prefix and followed by an ID number. This way we’ll know how many tickets are used in a period of time and which hotel they 5 http://docs.sputnik.com/m/agent/l/4049
12 Authentication system deployment throughout protected access for a Wireless Network belong to. These codes will be created in the Sputnik Control Center and will be sent to each hotel based on demand. The authentication can either be applied individually to each Sputnik-powered device (Linksys router) or to a captive portal in particular. We recommend the authentication by captive portal because this way, all Sputnik-powered devices that belong to that portal will share the same authentication method allows us to manage the users in different hotels more efficiently. We will talk further about Captive Portal in chapter 3.2 3.1.4. Monitorization Sputnik Control Center comes with a variety of powerful tools that allow us to monitor the status of the network in real time. One can have reports regularly emailed to him, or download them at any time they are required. In our case, since we are authenticating different wireless networks, we will receive a weekly report from each hotel in the chain and will be automatically informed if an AP goes down for any reason. 3.2. Captive portal. A captive portal consists of a web page that the client is forced to see before accessing the internet. Since HTTP and HTTPS are the only two authentication protocols possible, the web browser turns into an authentication device, intercepting all packets, and redirecting the user to a web page that depending on the portal settings may require authentication or may allow users to bypass it anonymously. Sputnik Control Center grants us the possibility to configure the html web page with any design, personalizing it to the Hotel’s chain logo. This login page, as mentioned earlier, is stored remotely in our Database and once the user logs in successfully, he is redirected to the hotel’s chain homepage.
CHAPTER 4. ROUTING SOLUTION ___________________________________________________________________ 13 Figure 4: Global Authentication System CHAPTER 4. ROUTING SOLUTION 4.1. What is Routing? We may define routing as the process to forward a packet based on its destination address. The routing is a very important aspect of our project, not only because it grants us an internet access, and consequently authentication, but also because it provides the following features. Broadcast filtering: The more intelligent forwarding algorithms used by Layer 3 prevent broadcast propagation and allow a much more efficient use of the bandwidth. Load balancing: Routing protocols have load balancing mechanisms which makes load balancing flexible and easy to configure since it supports many simultaneous paths. Routing is accomplished by manually entering the necessary information for packets to reach anywhere in the network. This is called static routing. When using static routing, the routing tables play an important role, and need to be updated every time the network topology changes (such as when a network link fails. Dynamic routing, on the other hand, uses routing protocols to create and maintain the routing tables automatically. Keeping in mind that all hotels consist of small networks that do not require many static routes, and considering the only topology change is when a network link fails. For our project we will choose Static Routing over Dynamic Static
14 Authentication system deployment throughout protected access for a Wireless Network Routing has many advantages over dynamic routing, but the main one is predictability. Unlike dynamic routing, the routing table is configured in advance and therefore the path that a packet will take between two destinations is always known precisely. This is an enormous advantage because it avoids increasing the complexity of the routing solution and makes it easier to manage and to focus on our main concern; having a well-balanced routing table which will grant internet access in case a network link fails. As for authentication goes, in each hotel there will be a UTM “stand alone” responsible of achieving connectivity with the authentication server located in our Datacenter. Subsequently, in our Datacenter there will be a UTM cluster, which will be responsible of routing back the authentication traffic to each hotel. We will refer to our Datacenter UTM cluster as our “central router” and it will be the network 10.0.0.0 mask 255.255.255.0. As for the hotels goes, for the wireless network we will use the network 172.32.X.0 mask 255.255.255.0. To connect the wireless network with the UTM, the networks between FW and Sputnik agent will be 192.168.X.0 mask 255.255.255.0. “X” will be used to identify each hotel in the chain, therefore these addresses are valid for 256 different hotels (which it surpasses our needs by far). As far as the two ISP routers go, to keep things simple, we will use the 192.168.1.0/24 and 192.168.2.0/24 in all hotel chains. Figure 5: Hotel 1 & Hotel 2 Example Diagram.
CHAPTER 4. ROUTING SOLUTION ___________________________________________________________________ 15 4.2. Routing tables. As said before, routing tables are crucially important for the routing process and since we are using static routing they will be manually maintained by us; the network administrators. All we will have to do is tell each UTM how to reach every network segment to which it is not directly attached. The routing tables contain entries of each of the networks and how they can be reached (either directly or indirectly). With this information, these tables point out how is the traffic going to be dispatched using a forwarding IP address and announcing trough which interface is going to be sent. For a direct delivery, the forwarding IP address is the destination IP address itself while for an indirect delivery, the forwarding IP address is the IP address of an adjacent router. Furthermore, in all routing tables there is a default route which is to be used when no other known route exists for a given destination. The default route is shown as a 0.0.0.0 network with a 0.0.0.0 network mask. It is possible for the routing table to have different routes to reach the same destination. When this happens, the UTM only considers the one with the shortest distance and therefore the other one becomes useless, unless we use Dead Gateway Mechanism, which we’ll talk later on in chapter 4.3. 4.2.1. Routing Tables Entries 6 Here we will describe the different elements that come into play when creating a route with a brief description of them: Type: If it is either a static route or dynamic one. Interface: Indicates through which network interface the IP packet is going to be forwarded. Destination: Indicates the destination to reach. Thanks to the network mask, the destination network can be class-based or a specific IP address. 6 http://kc.forticare.com/default.asp?id=0&Lang=1&SID
16 Authentication system deployment throughout protected access for a Wireless Network Gateway: It states the forwarding IP address for the next hop. If the Network is directly attached to it, there is no Gateway, the traffic is sent directly to its destination. Distance: Number used to indicate the cost of the route. Route with the lower cost amongst other routes to the same destination is selected. The administrative distance can go from 1 to 255. By default, the direct physical connections are 1 and the static ones 10. Priority: The route with the lowest value in the priority field is considered the best route. Priority values can range from 0 to 4294967295. Weight: The probability of selecting that route over another. Default value 0. Each configuration for the routing tables starts by giving the UTM an IP address and subnet mask for each of its connected interfaces. If the configurations stopped here, the only entries in its routing table would be the networks attached directly to its own interfaces, and no others. The configuration goes on to define static routes showing how to reach networks attached to the other routers. The static routes, together with the local interfaces, create the routing table with information about how to reach each destination and the next hop to reach it. In the figure below we can see an example hotel’s routing table. All hotels will have the same routing table since they all have to reach the same networks in order to authenticate its guests. Figure 6: RoutingTable from one of the Hotels with its default values.
CHAPTER 5. VPN SOLUTION________________________________________________________________________ 23 5.2. IPSEC VPN Dialup VPN that allow users to access local networks from anywhere on the net. This is done thanks to the FortiClient Endpoint Security application which consists of an IPsec VPN client with antivirus, antispam and firewall capabilities. The tunnel is always initiated from the dialup client side and once the user authenticates against the dialup server (VPN gateway); the tunnel is brought up. All traffic originated from the client is encapsulated and encrypted by the VPN client software and sent over the Internet through the VPN tunnel. This traffic, when it reaches the VPN gateway is decrypted and decapsulated so it is can reach its final destination in the internal network. The return traffic is the reverse process where the VPN Gateway encrypts and the VPN Client decrypts. I will not give more information about this type of connection since the one that we are going to be using is SSL_VPN to connect remotely to the Hotels 5.3. IPSEC VPN Site-to-Site Site-to-site VPNs connects entire networks between them as if the different networks were directly connected, always keeping in mind that they are actually connected through internet. This is achieved thanks to the VPN Gateways which encrypts and decrypts as mentioned earlier. This type of VPN is the one we will use for this project since they grant us the security and availability we need and allows us to establishing redundant VPNs between Hotel and Datacenter using the routing tables we have seen in Chapter 4. We will create site to site IPSEC VPNs between the two UTMs in our Datacenter and the UTM in each hotel. Each VPN tunnel will interconnect two separate private networks, one being our Datacenters Network and the other the hotels chain network. Since the two VPN Gateways are the ones responsible of routing the traffic through the tunnel, encapsulating it and encrypting it, there is no need for a VPN Client software. The only requirement is that the UTMs at both ends of the tunnel operate in NAT/Route mode and have a static public IP address.
24 Authentication system deployment throughout protected access for a Wireless Network 5.4. IPSEC Site to Site Establishment When establishing a VPN, a FortiGate UTM receives a connection request from a remote VPN peer and using the IPSec phase 1 parameters, the peer is authenticated and a secure connection is established. Once the firewall policies (which we will talk about in the following chapter) allow this connection, the UTM creates the VPN tunnel using the IPSec phase 2 parameters All tunnel establishment communication goes through the IKE protocol and depending on the phase different parameters will be negotiated. 5.4.1. Phase1 Settings Phase 1 of the tunnel negotiation establishes a secure connection and authenticates both peers. Figure 12: IPSEC VPN Phase1 Parameters.
CHAPTER 5. VPN SOLUTION________________________________________________________________________ 25 Once we assign a name to phase 1 the first thing to do is choose the remote gateway to which we will be establishing the VPN tunnel and choose through which interface will the connection take place. Since the tunnel is linked to a physical interface, dead peer detection also applies to the IPSEC tunnels. The next step is to choose how we are going to establish a secure channel. There are two possible modes, AGRESSIVE & MAIN. Although Main Mode requires more messages to be exchanged, we will choose it over Aggressive mode because it is safer. For the negotiation to be successful, both ends of the VPN tunnel need to have the same exact preshared key. The Preshared key can contain up to 18 capital and non-capital letters as well as numbers. In order to improve security and make it more flexible, we can use the advanced options to configure the encryption parameters. We will choose Advanced Encryption Standard (AES) since it is a standard that provides a strong encryption at high speed. We will choose AES 128 to cipher the message and SHA1 function to authenticate since there will be a great amount of simultaneous VPN coexisting and this will offer the best overall performance and security. The next step is to propose a shared secret key. To do so we will use Diffie- Hellman groups. We will choose the highest protocol group; which is the safest. DH group 5 means that a 1536 bits secret key is created. Its keylife will be set to 28800 seconds: which means that if an attack occurred, it would only be successful if it took the attacker less than 8 hours to retrieve the key. Since ESP is a portless protocol, IPSec packets do not have a source port, which causes Natting to be unviable. The NAT traversal feature solves this issue by encapsulating the ESP packets within UDP parquets which do have a source port and support nating. Both ends need to know about it in order to obviate the UDP header and stick with the original IPSEC packet. When using NAT traversal, IPSec peers need to send periodic keepalive packets through the NAT device in order to ensure that NAT mapping does not change until the SAs expire. Sometimes communication between peers may be lost. In such cases, the SAs remain open until their lifetimes naturally expire. To prevent packets from being sent and consequently lost; exists the Dead Peer Detection Protocol (DPD). Unlike regular keepalive mechanisms, DPD only sends probe messages when an SA has been idle for a long period of time, not on a regular basis
26 Authentication system deployment throughout protected access for a Wireless Network Figure 13: IPSEC VPN Phase 1 Establishment. 5.4.2. Phase2 Settings Once the channel is established, the negotiation process continues in phase 2. Figure 14: IPSEC VPN Phase 2 Parameters.
CHAPTER 5. VPN SOLUTION________________________________________________________________________ 27 Using different keys from the ones in phase 1, Perfect Forward Secrecy (PFS) forces a new Diffie-Hellman exchange, every time Phase 2 starts and/or whenever the keylife expires. If PFS is not selected, the keys used will be the same ones as Phase 1 but this can result in a security risk so in order to increase security we will be sure to use PFS in our VPN tunnels. Phase 2 requires less messages to be established which results in lower resource consumption. For this reason, its keylife will be a lot lower than the one in Phase1, 1800 seconds (30 minutes) and the encryption algorithm will be increased to AES192. All other common parameters will remain the same. Replay Detection is a mechanism that protects against replay attacks. Such attacks happen when an IPSEC packet is intercepted by an unauthorized member and replayed back into the tunnel hoping the destination doesn’t notice. Replay detection checks all the IPSec packets to see if they arrive at a specified sequence.If not, it means that they have been received beforehand and therefore the packets are discarded. The most common replay attack is the Denial of Service (DoS), flooding the tunnel with packets. Figure 15: IPSEC VPN Phase 2 Establishment. As a final step, to increase security the UTM gives us the option to predefine the source and destination address. Hotel Network and Datacenter respectively
28 Authentication system deployment throughout protected access for a Wireless Network Optionally, we can choose to have the tunnel always running or turn it up every time we send traffic through it. To make it easier to monitor, we will choose to have the tunnel always up by setting the parameter auto-negotiate enable. Figure 16: IPSEC VPN Monitor. Hotel Datacenter Gateway Name VPN IPS1 VPN IPS1 Remote Gateway Static IP Address Static IP Address IP Address X.X.X.X/X.X.X.X Y.Y.Y.Y/Y.Y.Y.Y Local Interface Wan1 Wan2 Mode Main (ID Protection) Main (ID Protection) Authentication Method Preshared Key Preshared Key Pre-shared Key xxxxxxxx xxxxxxxx Peer Options Accept any peer ID Accept any peer ID Phase1 Proposal 1-Encrytion AES128 AES128 1- Authentication SHA1 SHA1 DH Group 5 5 Keylife 28000 seconds 28000 seconds Local ID Blank Blank Nat-traversal Enable Enable Keepalive Frequency 10 10 Dead Peer Detection Enable Enable Phase2 Proposal 1-Encrytion AES192 AES192 1- Authentication SHA1 SHA1 Replay Detection Enabled Enabled Perfect Forward Secrecy Enabled Enabled DH Group 5 5 Keylife 1800 seconds 1801 seconds Auto Keep Alive Enable Enable Source Address 172.32.10.0/24 10.0.0.0/24 Destination Address 10 10 Figure 17: IPSEC Configuration summary between Hotel1 and Datacenter.
CHAPTER 6. SECURITY SOLUTION __________________________________________________________________ 29 5.5. SSL_VPN A SSL_VPN (Secure Sockets Layer virtual private network) is a type of Dialup VPN that can be used with any Web browser as well as with a software client. This software client is not a requirement as it happens in Dialup IPSEC which gives us the possibility to connect from any computer that has Internet access. The main advantage of VPN SSL is its simplicity and versatility; it can authenticate a wide range of users without requiring any encryption parameters whatsoever; only username and password. This doesn’t mean that this method isn’t safe; on the contrary, it ensures confidentiality and integrity. A secure web connection is established between the remote client and the FortiGate unit and the traffic over the internet is encrypted. This is the Dialup VPN Connection we will use to manage remotely the ADSL Router. More details in chapter 6.3 Hotels’ Firewall Policies. CHAPTER 6. SECURITY SOLUTION 6.1. Firewall Policies The security will mostly fall within the UTM Network-level services and these will be applied at a firewall policy level. At this point all hotels in the chain have a physical connection to the Authentication server but the communication cannot be established until a policy in the UTM has been created enabling access from one network to another. Policies control whether the traffic that flows through the UTM interfaces is allowed or not. Implicitly, if a policy doesn’t specifically allow a certain type of traffic, by default that traffic is dropped and can never reach its destination. The UTM evaluates a connection based on packet features such as source address, destination address, source port, destination port and type of service and when all these factors are matched, those packets fall into a specific policy rule.
30 Authentication system deployment throughout protected access for a Wireless Network Each connection is checked against the policy list from the top to bottom, looking for the first policy rule that matches the just mentioned packet parameters. This means that if the policy rules are not placed in the correct order, they may not be effective at all; therefore more specific rules must be placed above more general ones. 6.1.1. Policy Settings Figure 18: Policy Configuration Source Interface/Zone: Local interface in the UTM. Source Address: Local network, or host(s) where IP packets originate. Destination Interface/Zone: Local interface to the external (public) network. Destination Address: Remote network, or host(s) where IP packets are sent. Schedule: When the policy will be active. Service: Port used to meet the specific requirements for a type of service. Action: What will happen with the matching traffic (ACCEPT, DENY or IPSEC).
CHAPTER 6. SECURITY SOLUTION __________________________________________________________________ 31 As one can see, in source Interface and destination interface, there is a “Zone” option. This means that interfaces can be put into group allowing us to manage policies better, thus avoiding the effort of having to create two policies with the same exact behavior. NAT (Network Address Translation is a feature is used to map one IP address and its port to another. This is usually done by translating private addresses to a public one, hiding the internal IP address. But it can also be the done the other way around, allowing servers from an internal network to provide services over the Internet. This translation by default is done over the network IP that is configured on the UTM interface itself but there is the option to force a range of addresses, previously defined as an IP pool, as well as the option to select a fixed port to prevent source port translation. The outbound NAT, besides hiding the internal IP also plays an important role in routing. NATs main intention is to let the next hop know where to return the traffic packets since usually the next hop doesn’t have the source address in its routing table. In other words, natting an address converts the source address into an address directly connected, thus avoiding the need to have a route for the next hop and therefore, traffic can be routed without problems. Before finishing up the policy, we will define a protection profile configured specifically for the hotel guests. This protection profile will contain most of the UTM safety measures, which we will talk in the next chapter. 6.2. Firewall Protection Profiles. Protection profiles define how traffic is examined and consequently what action will be taken afterwards. Since the same protection profile can be applied to any number of firewall policies, the set of firewall policies that require identical protection levels and types may use the same protection profile.
32 Authentication system deployment throughout protected access for a Wireless Network As mentioned earlier, a protection profile includes most of the UTM features 7 , such as virus scanning, IPS, Web Filtering, Email filtering, DLP Sensor and Application Control. Thanks to this features, which can be combined any way we like, we will be able to protect the internal network of all the hotels in the chain. Figure 19: Protection Profile Features. 6.2.1. Antivirus Figure 20: Antivirus Profile. The word “antivirus” tends to refer the group of features designed to prevent unwanted and potentially malicious files from entering your network. These configurable features grant us the flexibility we desire. The Antivirus feature scans the files looking for viruses, worms, Trojans, and malware. This search is done using a virus database updated periodically than contains signatures able to identify more than 15,000 individual viruses. If the scanner finds a matching signature, it considers the file to be infected. 7 http://docs.forticare.com/fgt.html
CHAPTER 6. SECURITY SOLUTION __________________________________________________________________ 39 6.2.3.3. Web Content Filtering This method restricts the access to URLs based on words or patterns. The web content filter feature scans the content of every web page and attaches a value to it. When a banned word is detected, the value is added to that web page score. When the sum of values equals or exceeds the threshold score value, the web page is blocked. The default value for web content filter is 10 and the default threshold is 10, this means that by default a web page is blocked with a single match. The word score can range from 0 to 99999 and the maximum number of banned words in the list is 5000. There are two types of patterns: Wildcard and Regular Expression. Wildcard: Word or phrases up to 80 characters and wildcard symbols, such as “*” to represent one or more characters appearing any number of times (forti*.com fortinet.com or forticare.com). Regular Expression: Perl expressions that use some of the same symbols as wildcard expressions but differently. The “*” represents the character before the symbol (forti*.com fortiii.com) Figure 27: Web Content Filtering.
40 Authentication system deployment throughout protected access for a Wireless Network 6.2.4. Antispam Filtering Figure 28: AntiSpam Filtering. Thanks to the FortiGuard AntiSpam service, our UTM can do email filtering for each and every one of the mail protocols (IMAP, POP3, and SMTP). Such service is updated every time a new spam messages is received, thus leaving out the hassle of maintaining databases to ensure accurate spam detection. The FortiGuard Antispam Service checks if an IP is blacklisted using the sender IP reputation database and checks whether an email address is in the spam signature database. These two databases, which are updated continuously, combined with spam filtering tools, allow us to detect and block a wide range of spam messages. 6.2.4.1. - Email filter techniques 6.2.4.1.1. - IP address/URL check The FortiGuard Antispam Service determines if the IP addresses in the header of SMTP and the URLs in the message body are blacklisted. In case either of them is blacklisted the UTM treats the message as spam. 6.2.4.1.2. - Email checksum check The hash of the email received is compared against the known hash spam messages stored in the FortiGuard Antispam database. If there is a match, the email is marked as spam.
CHAPTER 6. SECURITY SOLUTION __________________________________________________________________ 41 6.2.4.1.3. - Spam submission A recipient can inform FortiGuard service that the message is incorrectly marked as spam thanks to a link that is added to the message marked as spam. 6.2.4.1.4. - IP address black/white list check Based on a previously created black/white list, the UTM compares the IP address of the client delivering the mail. If a match is found in the whitelist the message is allowed and bypasses any further email filtering. If it is in the blacklist, see chapter 6.2.4.2 6.2.4.1.5. - HELO DNS lookup (Only available for SMTP traffic) When an SMTP session is opened against a server, the client sends a HELO command with the client domain name. This domain’s IP is sent to a DNS server to see if it exists. If not, all messages from that client are treated as spam. 6.2.4.1.6. - Email address black/white list check It works the same way as the IP address check but with the senders email address instead if it’s domain IP. The UTM uses the MAIL FROM field to check if the email address belongs in a black/white lists. It can either use wildcards or regular expressions If a match is found in the whitelist the message is allowed and bypasses any further email filtering. If it is in the blacklist, see chapter 6.2.4.2 6.2.4.1.7. - Return email DNS check A DNS lookup is done on the reply-to domain to see if there is an A or MX record. If there is no record, the message is treated as spam. 6.2.4.1.8. - Banned word check Email messages can be blocked based on the content of the message (words or patterns created in the spam filter banned word list). The message body and/or subject is searched looking for a banned word. A banned word score is only added once; no matter how many times it appears. If the total value of the banned word exceeds the threshold, the message is treated as spam. By default, the score for banned word is 10 and the default threshold is 10 which means that a single match will cause the message to be blocked. It can either use wildcards or regular expressions.
42 Authentication system deployment throughout protected access for a Wireless Network 6.2.4.2. - Spam action When a message is considered spam, the UTM can either: Discard: Message is deleted and no notification is sent (Only SMTP) Tagged: Message labeled as spam but delivered (All mail protocols) 6.2.5. Data Leak Prevention Sensor The DLP feature consists of a DLP Sensor that examines the traffic passing through the UTM searching for file patterns or types previously specified. Figure 29: DLP Sensor. Once a file is detected, the actions the DLP Sensor can take are: Block: Files matching a pattern or a type are stopped by the filter. Exempt: Matching files pass the filter and skip the other DLP sensors. Quarantine User: Blocks all traffic from a previously authenticated user. Quarantine IP: Blocks access from an IP address. Quarantine Interface: Blocks the network configured over that interface. None: Same as “Exempt” but other DLP sensors still apply.
CHAPTER 6. SECURITY SOLUTION __________________________________________________________________ 43 Furthermore, if we dispose of a FortiAnalyzer and a FortiGuard Analysis subscription, the traffic can be logged partially (summary only), completely (full), or not logged at all (disable) 6.2.6. Application Control Since many applications do not use standard ports to communicate or use way too common ports (such as TCP 80), most of the time applications cannot be blocked by port. Here is where Applications Control comes into play since it can detect more than 1000 applications based on the network traffic they generate. Application control uses IPS protocol decoders to detect application traffic, and examines the traffic looking for signatures unique to a particular application. This detection is useful because, as mention earlier, it allows us to block applications even if they use very standard ports or protocols. The application control depends on signatures periodically updated through the FortiGuard Application Control Service. One can find a list of these signatures in http://www.fortiguard.com/applicationcontrol/ListOfApplications.html). An Application Sensor must be created in order to use the application control. In this sensor, different rules are created; specifying the applications we want to control either individually or globally depending on the amount of filters we use on a rule Figure 30: Application Sensor. Having the two implicit rules with all other known and unknown applications, an application will for sure always fall into a particular rule. Once an application falls into a rule, it can either be Monitored, Blocked or Allowed.
44 Authentication system deployment throughout protected access for a Wireless Network Furthermore, as one can see in rule ID 2, applications within applications such as Gmail’s chat, can be specified as well. 6.3. Hotels’ Firewall Policies. In the annex IV, one can take a closer look of the Policies that are configured in one of the Hotels as an example. As one might notice, when a VPN IPSEC tunnel is created, a virtual interface is created as well. This is very helpful since one can control the traffic flow through the VPN individually making it very manageable and visual. Configuring a new firewall policy involves specifying an IP source and an IP destination addresses as well as determining which services will be permitted. Once the communication in one way is permitted, the return path is permitted as well. Access against our Datacenter could be limited through port 5222 since it’s the only port used to authenticate users but because the Sputnik devices are the only ones that have access to our Datacenter through the VPN there is no need to do so. This is shown in policies from 3 to 6. The World Wide Web has millions of services and we want to give the hotel guests all it has to offer so we will not limit access to any particular service. To do so, we will use an “ANY” in service type meaning that all types of protocols will be enclosed. The following two rules (ID 1 and 2) allow hotel guests to access the internet once they have been authenticated against our captive portal. The next 6 policies, although they appear to have no relation between them, they work together to grant us, the administrators, a remote access to the ADSL Routers. These policies are merely intended for maintenance purposes therefore no service is limited either. The first two policies (ID 7 and 8) are used to authenticate and when such authentication is successful, a local route to the ADSL routers as well as a virtual IP address are provided. The last four policies (ID 9, 10, 11 and 12) simply grant connection to the ADSL routers filtering the source address to make sure it belongs to the previously acquired virtual IP. To provide high availability, we have 4 policies to access 2 ADSL routers.
CHAPTER 6. SECURITY SOLUTION __________________________________________________________________ 45 As mentioned earlier, if a policy does not t specifically allow a connection, that connection will not be allowed. Well, as you can see; to make it more visual, there is an implicit policy that drops any traffic that doesn’t fall into previous policies. As for the UTM Protection profiles, they are applied in the previously explained policies. Since we will have remote access to all the UTMs in each delegation, we will configure at first the Antivirus, Email filter and IPS to grant us the maximum level of protection and from there we will work our way down, personalizing each delegation depending on their needs. As for the Web Filtering profile, we will only be blocking the web pages that may result in security threats (Security Risk Category), liable issues (Potentially Liable Category) or bandwidth consuming (Peer to Peer File sharing and such). All other categories will be open for the hotels guest leisure and content. Because we cannot foresee what kind of a file a guest will want to download, we will not use the DLP sensor. And last but not least, the application control will be blocking only bandwidth consuming applications such as P2P. All other applications will be allowed since here our concern is going to be the good use of resources. 6.4. Datacenter’s Firewall Policies. For security reasons, we cannot disclosure any information about the policies taking place in our Datacenter but as you might have guest, we can assume that at least 4 VPN IPSEC policies exist for each and every one of the hotels that belong to the chain. Any other policy in our Datacenter is irrelevant for this project.
46 Authentication system deployment throughout protected access for a Wireless Network CHAPTER 7. DEPLOYMENT AND MANAGEMENT. 7.1. First Approach. For the UTM deployment, we will go on site to each hotel and there we will configure the appliance locally. In order ensure a smooth transition to our new System and to keep the Internet downtime to a minimal, we will bring the UTM preconfigured from our offices. This way, all there is to do is set the corresponding IPs to match the existing ADSL routers and ensure a remote access in case further changes need to be made. Besides pre-configuring the UTM in our office, we will also have the Sputnik firmware already uploaded into the Linksys router, subscribed into our account and assigned to the portal where it will belong. 7.1.1. Scenario. Once everything is pre-configured in our offices, we will run the needed test to ensure beforehand that the sputnik authentication against our Datacenter is working properly. Once this test is successful, we will emulate a hotel guests that is connected behind the UTM and test the configured protection profiles to see if they are working as expected. 7.1.2. Results. In our first approach everything seemed to work fine, aside from some some problems subscribing the sputniks to our portal, but when the UTM were deployed, we found out that some of the protection profiles, such as the IP sensor and web filter, were not working as expected because many web pages that should be permitted were not. After doing some exclusions and adjusting some parameters to personalize the web filter everything worked just fine.
CHAPTER 7. DEPLOYMENT AND MANAGEMENT. ______________________________________________________ 47 7.2. Final deployment. Once the first test being successful, to each hotel we brought a preconfigured UTM with the configuration file used in our office. Using this file as a base all we had to do is modify some IP parameters and license the UTM. After the UTM achieved connectivity and the VPN were stablished and running, we proceeded to test the Linksys routers with the Sputnik Agent already loaded to make sure the authentication works. As a last step, we simulated a hotel guests, authenticating with a username and a password and surfing the net just fine. As for time wise, assuming that the Wireless antennas are all setup and working properly; we expect to take no longer that a working day for each hotel. To this time, we have to add the time it will take to travel to each of the 7 locations by car. 7.3. Management. As we said at the begging of this project, the hotels in the chain are spread out in 7 different locations around Spain, with an expected growth of 1 or 2 locations a year. Assuming that the hotel’s staff does not have any knowledge about information technology, and much less about telecommunications and UTMs it is imperative that we are able to manage remotely not only our UTM but the other equipment involved in the internet access as well. Here is where the SSL-VPN policies mentioned earlier come into play. Thanks to the SSL-VPN connection we are able to connect remotely to the ADSL routers, granting us the possibility of diagnose a problem and reconfigure the router in case there is a configuration lost. This not only makes our job easier but also allows us to offer a quick response. And since all support is remote we can offer a cost effective support as well
48 Authentication system deployment throughout protected access for a Wireless Network Now, following the annual revision contracted, we are only expected to visit each hotel one a year but if a major problem occurred, such as the breakdown of a UTM, the customer would receive on site a replacement unit configured exactly the same as the previous one, in less than 24 hours thanks to our daily backups. This backup is done using custom software through a SSH secure channel which guarantees confidentiality and integrity. All in all, besides upgrading the appliances as new firmware releases come out, our maintenance will consist of monitoring each UTM individually to ensure they are all up and running and keep an up to date backup of each configuration. CONCLUSIONS At the beginning of this project we were introduced to an obsolete hotels chain that needed to get up to date with the new technologies since it did not even have a wireless network. We offered what we thought it would be the best Wireless solution keeping a good balance between simplicity and effectiveness, always trying to offer a lower price than our competitors and I think we accomplished that resolution. In this project, I can be proudly say that the Internet needs for guest of all ages and social classes has been covered. Now the whole chain can offer a broadband wireless connection without having to worry about data confidentiality or misuse of a service. All in all, I can safely say that our 4 main objectives have been covered; Availability, security, scalability and stability. To sum it up, I can honestly say that this project was more than I expected since it covered a wide range of telecommunications aspects including vulnerabilities which I would never thought even existed. Personally, I think this project reflects most of my telecommunication knowledge and having to apply it in a real life project gave me a chance to prove myself as a future communications engineer and points me to the professional direction I want to take in the future. Network Security