Vp ns


Published on

Published in: Education
  • Be the first to comment

  • Be the first to like this

Vp ns

  1. 1. Virtual Private Networks CS-480b Dick Steflik
  2. 2. Virtual Private Networks (VPNs) <ul><li>Used to connect two private networks together via the Internet </li></ul><ul><li>Used to connect remote users to a private network via the Internet </li></ul><ul><li>This could be done by opening your firewall to the LAN networking protocols (NETBIOS, NFS NetWare, AppleTalk)) </li></ul><ul><ul><li>But… it would also make those protocols available to any one on the Internet and they could come into your LAN at will </li></ul></ul><ul><ul><li>Effectively make the whole Internet your LAN </li></ul></ul><ul><ul><ul><li>Exposes all of your data </li></ul></ul></ul><ul><ul><ul><li>Anyone can easily take advantage of vulnerabilities in your internal hosts </li></ul></ul></ul><ul><ul><ul><li>No privacy </li></ul></ul></ul><ul><li>Better solution is to use a VPN in conjunction with your firewall </li></ul>
  3. 3. VPNs <ul><li>Since we all understand that IP is used to transport information between LANs if we add some security stuff to IP then this transport can be made more secure </li></ul><ul><li>Can be done two ways: </li></ul><ul><ul><li>At the network level using IPSec </li></ul></ul><ul><ul><ul><li>Currently the most widely used method </li></ul></ul></ul><ul><ul><ul><ul><li>But requires special client installation on each workstation (more IT $) </li></ul></ul></ul></ul><ul><ul><li>At the Transport level using SSL </li></ul></ul><ul><ul><ul><li>Quickly gaining popularity because there are no special software installation requirements for end user workstations </li></ul></ul></ul><ul><ul><ul><ul><li>All that’s required is a browser with SSL support </li></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>Mozilla </li></ul></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>Internet Explorer </li></ul></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>Netscape </li></ul></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>Opera </li></ul></ul></ul></ul></ul>
  4. 4. IP Based VPNs <ul><li>Fundamental Components </li></ul><ul><ul><li>IP Encapsulation </li></ul></ul><ul><ul><li>Cryptographic based authentication </li></ul></ul><ul><ul><ul><li>Secret Key Encryption </li></ul></ul></ul><ul><ul><ul><ul><li>Single shared secret key for encrypt and decrypt </li></ul></ul></ul></ul><ul><ul><ul><li>Public Key Encryption </li></ul></ul></ul><ul><ul><ul><ul><li>Unidirectional keys </li></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>Encrypt or decrypt (not both) </li></ul></ul></ul></ul></ul><ul><ul><li>Data Payload Encryption </li></ul></ul><ul><ul><ul><li>Encrypt payload but not header (method depends on OEM/Vendor solution) </li></ul></ul></ul><ul><li>IP/IP Encapsulation </li></ul><ul><ul><li>Makes remotely located LANs appear to be adjacent </li></ul></ul><ul><ul><li>Makes non-routable addresses (10.a.b.c a,d 192.168.c.d) routable </li></ul></ul>
  5. 5. VPN Characteristics <ul><li>Cheaper than WANs </li></ul><ul><ul><li>dedicated leased lines are very expensive </li></ul></ul><ul><li>Easier to establish than WANs </li></ul><ul><ul><li>ISPs will usually help make the initial IP connection </li></ul></ul><ul><ul><li>hours for VPNs vs. weeks for WANs </li></ul></ul><ul><li>slower than LANs </li></ul><ul><ul><li>encryption/dectyption takes time </li></ul></ul><ul><ul><li>typical LANS are 10-100 Mbps </li></ul></ul><ul><ul><ul><li>endpoints connected by VPM may go through many router hops </li></ul></ul></ul><ul><ul><ul><ul><li>minimize by using same ISP for everything </li></ul></ul></ul></ul><ul><ul><li>dial in users are going to be typically 56Kbps </li></ul></ul><ul><li>less reliable than WANs </li></ul><ul><ul><li>with WANs routers are under your control and performance is negotiated with provider, not so with VPN you only control initial IP connection </li></ul></ul><ul><li>less secure than isolated LANs or WANs </li></ul><ul><ul><li>because Internet is used hackers can find you </li></ul></ul><ul><ul><li>VPN protocol is one more thing to be attacked </li></ul></ul>
  6. 6. Types of VPNs <ul><li>Server based </li></ul><ul><li>Firewall based </li></ul><ul><li>Router based (including VPN appliances </li></ul>
  7. 7. Server based <ul><li>Windows </li></ul><ul><ul><li>Routing and Remote Access Service </li></ul></ul><ul><ul><ul><li>NT supports only PPTP, W/2000 supports PPTP, L2TP and IPSec </li></ul></ul></ul><ul><ul><li>comes with everything needed to establish a VPN </li></ul></ul><ul><li>Linux </li></ul><ul><ul><li>Blowfish, Free S/WAN, PPP over SSL, PPTP, L2TP </li></ul></ul><ul><ul><li>with IP masquerading/IP Chains and additional open source software can be used to create a very robust VPN </li></ul></ul><ul><li>UNIX </li></ul><ul><ul><li>many incorporating IPSec into their TCP/IP stacks </li></ul></ul><ul><li>Be aware that VPN traffic leaving your LAN traverses the LAN twice </li></ul><ul><ul><li>once to the RRAS service as regular LAN traffic, once encapsulated to the firewall </li></ul></ul>
  8. 8. Firewall based VPNs <ul><li>Since firewalls already do all kinds of packet analysis, adding IP tunneling is relatively easy </li></ul><ul><li>Rapid acceptance of IPSec and IKE are making VPNing at the firewall more common </li></ul><ul><ul><li>not all vendors versions of IPSec+IKE work together </li></ul></ul><ul><ul><ul><li>make sure that remote clients software works with your firewall VPN </li></ul></ul></ul>
  9. 9. Router based VPNs <ul><li>Typically used on big networks </li></ul><ul><ul><li>specialized devices for to isolate internal LAN traffic and quickly convey inter-LAN traffic </li></ul></ul><ul><li>IBM 2210 </li></ul><ul><li>CISCO Routers running IOS </li></ul><ul><li>Ascend’s MAX switches </li></ul>
  10. 10. VPN Architectures <ul><li>Mesh </li></ul><ul><ul><li>each participant has a direct security relationship with every other user </li></ul></ul><ul><li>Hub and spoke </li></ul><ul><ul><li>each participant has a single security association with a single VPN router that has a security association with every VPN device </li></ul></ul><ul><li>Hybrid </li></ul><ul><ul><li>combination of both </li></ul></ul><ul><ul><ul><li>mesh of hubs </li></ul></ul></ul><ul><ul><ul><li>star of hubs </li></ul></ul></ul>
  11. 11. Implementations <ul><li>IPSec Tunnel Mode </li></ul><ul><ul><li>RFC 2401 </li></ul></ul><ul><li>Point-to-Point Tunneling Protocol (PPTP) </li></ul><ul><ul><li>RFC 2637 </li></ul></ul><ul><li>Layer 2 Tunneling Protocol (L2TP) </li></ul><ul><ul><li>RFC 2661 </li></ul></ul><ul><li>Point-to-Point Protocol over Secure Sockets Layer (PPP/SSL) or Point-to-Point Protocol over Secure Shell (PPP/SSL) </li></ul><ul><ul><li>considered to be hacks not standards </li></ul></ul>
  12. 12. VPN Best Practices <ul><li>Use a real firewall </li></ul><ul><li>Secure the base operating system </li></ul><ul><li>Use a single ISP </li></ul><ul><ul><li>minimize routing hops and insure cooperation </li></ul></ul><ul><li>Use packet filtering to reject unknown hosts </li></ul><ul><li>Use public-key encryption and secure Authentication </li></ul><ul><li>Compress before you encrypt </li></ul><ul><ul><li>stream compression will help overall performance </li></ul></ul><ul><li>Secure remote hosts </li></ul>
  13. 13. NIAP <ul><li>National Information Assurance Partnership (NIAP) </li></ul><ul><ul><li>U.S. Government initiative originated to meet the security testing needs of both information technology (IT) consumers and producers. </li></ul></ul><ul><ul><li>NIAP is a collaboration between the National Institute of Standards and Technology (NIST) and the National Security Agency (NSA) </li></ul></ul><ul><ul><li>in fulfilling their respective responsibilities under PL 100-235 (Computer Security Act of 1987). </li></ul></ul><ul><ul><li>combines the extensive IT security experience of both agencies to promote the development of technically sound security requirements for IT products and systems and appropriate measures for evaluating those products and systems. </li></ul></ul>
  14. 14. NIAP Goals <ul><li>The long-term goal of NIAP is to help increase the level of trust consumers have in their information systems and networks through the use of cost-effective security testing, evaluation, and validation programs. In meeting this goal, NIAP seeks to: </li></ul><ul><ul><li>Promote the development and use of evaluated IT products and systems; </li></ul></ul><ul><ul><li>Champion the development and use of national and international standards for IT security; </li></ul></ul><ul><ul><li>Foster research and development in IT security requirements definition, test methods, tools, techniques, and assurance metrics; </li></ul></ul><ul><ul><li>Support a framework for international recognition and acceptance of IT security testing and evaluation results; and </li></ul></ul><ul><ul><li>Facilitate the development and growth of a commercial security testing industry within the U.S. </li></ul></ul>
  15. 15. CCEVS <ul><li>Common Criteria Evaluation and Validation Scheme </li></ul><ul><ul><li>jointly managed activity of NIST and NSA (NIAP) </li></ul></ul><ul><ul><li>the validation body </li></ul></ul><ul><ul><li>focus of the CCEVS is to establish a national program for the evaluation of information technology products for conformance to the International Common Criteria for Information Technology Security Evaluation. </li></ul></ul><ul><ul><li>Common Criteria Testing Laboratory (CCTL) </li></ul></ul><ul><ul><ul><li>an approved testing laboratory </li></ul></ul></ul><ul><ul><li>Validation body reviews products tested by CCTL </li></ul></ul><ul><ul><ul><li>awards certification (or not) </li></ul></ul></ul><ul><ul><ul><li>maintains a list of validated products (VPL) </li></ul></ul></ul>
  16. 16. Evaluation Assurance Levels <ul><li>EAL1 – Functionally tested </li></ul><ul><li>EAL2 – Structurally tested </li></ul><ul><li>EAL3 – Methodically tested and checked </li></ul><ul><li>EAL4 – Methodically designed, tested and reviewed </li></ul><ul><li>EAL5 – Semi formally designed and tested </li></ul><ul><li>EAL6 – Semi formally verified design and tested </li></ul><ul><li>EAL7 – Formally verified design and tested </li></ul>
  17. 17. SSL Based VPNs <ul><li>Browser based </li></ul><ul><ul><li>PositivePRO – Positive Networks ; Connectra – Checkpoint Software </li></ul></ul><ul><ul><ul><li>No special client needed </li></ul></ul></ul><ul><ul><ul><ul><li>can be used on any device that is web enabled that supports SSL (PDA, Cell phones...) </li></ul></ul></ul></ul><ul><ul><ul><ul><li>OS independent </li></ul></ul></ul></ul><ul><ul><ul><li>Can’t access desktop applications </li></ul></ul></ul><ul><ul><li>Netifice </li></ul></ul><ul><ul><ul><li>Browser based </li></ul></ul></ul><ul><ul><ul><li>Java Agent Based </li></ul></ul></ul><ul><ul><ul><li>SSL Windows client for desktop access </li></ul></ul></ul><ul><ul><li>SSL-Explorer – Open Source </li></ul></ul>
  18. 18. SSL Based VPNs <ul><li>Non-browser based </li></ul><ul><ul><li>OpenVPN </li></ul></ul><ul><ul><ul><li>requires client software be installed for each user </li></ul></ul></ul><ul><ul><ul><li>Open Source (free) </li></ul></ul></ul><ul><ul><ul><li>very good track record (Since 2002) </li></ul></ul></ul><ul><ul><ul><li>Runs on most OSs </li></ul></ul></ul><ul><ul><ul><li>compatible with with: </li></ul></ul></ul><ul><ul><ul><ul><li>SSL/TLS </li></ul></ul></ul></ul><ul><ul><ul><ul><li>RSA Certificates </li></ul></ul></ul></ul><ul><ul><ul><ul><li>X509 PKI </li></ul></ul></ul></ul><ul><ul><ul><ul><li>NAT </li></ul></ul></ul></ul><ul><ul><ul><ul><li>DHCP </li></ul></ul></ul></ul><ul><ul><ul><ul><li>TUN/TAP virtual devices </li></ul></ul></ul></ul>