Securing Network Access with Open Source solutions

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    2 Favorites

    Securing Network Access with Open Source solutions - Presentation Transcript

    1. Securing Network Access with Open Source Solutions Nick Owen 9/19/09 @wikidsystems [email_address]
    2. Letting the Good Guys In
      • You must setup a firewall, but it is just a bump in the road for the attacker
      • You need to open ports for access
      • You need to provide services
      • You need to do it as securely as possible
    3. Is this your Network?
      • Lots of firewall rules
      • Multiple password datastores
      • Lots of protocols
      • Static passwords
    4. Our Goal: Securely allow access to the network with simplicity and flexibility.
    5. What's important?
      • Security!
      • Meet Regulatory/Compliance requirements
      • Flexibility – add/remove pieces
      • Users are happy-ish
      • Admins are happy-ish
    6. What are we going to do?
      • Authenticate user
      • Through encrypted tunnels
      • Using authentication protocols
      • To secure applications!
    7. There's more than one way...
      • A number of two-factor solutions
      • Multiple Authentication Protocols
      • Many applications
    8. To skin this cat
      • SSH
      • Astaro
      • OpenVPN
      • Apache/Squid
      • NX
      • Postgresql
    9. Who or what is connecting? Evil Princess Duck Bot Sweet Chicky Chirpalot
    10. Static Passwords
      • The most frequent password: '123456', followed by 'password'
      • Password reuse
      • Passwords are clearly a 20 th Century Technology
    11. Trivia
      • What was Dan Kaminsky's Wordpress password?
    12. Certs & Keys
      • Certificates
        • Offline brute-force of passphrase
        • Is there a passphrase?
        • Integration across apps is the real problem
      • SSH Keys
        • Love them, but there are audit issues
        • Is there a passphrase?
        • No key expiration system
    13. One-time passwords
      • A number of Open Source options:
        • WiKID, Opie, FreeToken, OTP Auth
      • Passwords work everywhere
      • Just need to change the back-end
      • Shared Secret or Public key
    14. About SMS
      • Trivia: What security question got attackers control of Paris Hilton's cell phone account?
    15. Flexibility comes from Protocols
      • Radius
      • LDAP
      • TACACS+
      • SAML
      • etc
    16. Why I like Radius
      • Simple. Server, Port, Shared Secret
      • It's a pretty standard standard
      • All commercial VPN products support it
      • Can do ACL
      • Freeradius is an excellent product
      • Even MS supports proxy radius auth now!
    17. PAM rules!
      • Once you grok PAM, you get:
      • SSH
      • Sudo
      • Login
      • SFTP
      • Etc, etc, etc
    18. PAM Radius
      • Edit /etc/raddb/server:
      • radiusserverIPaddress shared_secret 1
      • Edit /etc/pam.d/sshd (for example)
      • auth sufficient /lib/security/pam_radius_auth.so
    19. Pam radius example
      • #%PAM-1.0
      • auth include system-auth
      • auth sufficient /lib/security/pam_radius_auth.so
      • account include system-auth
      • account sufficient /lib/security/pam_radius_auth.so
      • password include system-auth
      • session optional pam_keyinit.so force revoke
      • session include system-auth
    20. SSH
      • Create an SSH Gateway box
        • All users auth using 2 Factor to the GW
        • Keys on Gateway for SSO to boxes
        • No password file on Gateway boxes
        • No remote root access
        • Sudo requires 2 nd OTP
      • Use the command line token :)
    21. Astaro & WiKID
      • A detailed example
      • Two-factor authentication & VPN Access
      • Using Radius
      • PPTP vpn
    22. Configure Radius on Astaro
    23. Enable Radius
    24. Point it to the OTP or Radius server
    25. Associate the Group with a VPN
    26. Create A WiKID Domain
    27. Create a Radius Network Client
    28. Add Shared Secret
    29. Done!
    30. For the End-User
    31. Select Domain & Enter PIN
    32. Enter OTP & Connect
    33. OpenVPN
      • Create an /etc/pam.d/openvpn file
      • Add to client.conf or client.opvn:
      • auth-user-pass
      • Add to server.conf:
      • plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so openvpn
    34. Apache!
      • Http-auth, & most web apps
      • CMSs
      • Web-DAV
      • Webmail
      • Wordpress
      • PHPBB, Etc, etc
    35. Apache Radius Example Install mod-auth-radius $ sudo apt-get install libapache-mod-auth-radius In your httpd.conf add: AddRadiusAuth radius_server:1812 shared_secret 5 AddRadiusCookieValid 60 Remember Radius is port 1812 *UDP*
    36. Apache Radius Example con't Enter this into your apache2.conf: <location> Options Indexes FollowSymlinks AuthType Basic AuthName &quot;WiKID RADIUS authentication&quot; AuthBasicAuthoritative Off AuthBasicProvider radius AuthRadiusAuthoritative on AuthRadiusActive On Require valid-user </location> Restart Apache!
    37. Squid
      • Configure auth_param to use pam:
      • auth_param basic program /usr/lib/squid/pam_auth
      • Then set the ACL rules, delete the other http_access rules:
      • acl pam proxy_auth REQUIRED
      • http_access allow pam
    38. SSL Attacks
      • Malicious WiFi APs
      • DNS-Cache poisoning
      • Malware
      • SSL stripping
    39. Prevent MITM attacks with Mutual HTTPS Auth
      • In WiKID, add a “Registered URL” to the domain
      • The Server will store a hash of the site's SSL cert.
      • When the user requests an OTP, the token gets the SSL and compares the two
      • If OK, it launches the browser to the URL
    40. Remote Desktop
      • FreeNX, NoMachine, Tacix, NeatX (google)
      • Remote X, VNC, RDP, desktop sharing and session shadowing
      • Tunneled through SSH
      • Auth via pam: /etc/pam.d/sshd
      • Quite Fast
    41. Postgresql
      • Edit the pg_hba.conf:
      • host all all 192.168.0.0/24 pam postgresql
      • Edit your /etc/pam.d/postgresql
      • What about MySQL?
    42. Pretty Lame Diagram VPN, SSH, HTTPS Gateway Desktop, Mail, Web Auth/Radius Server RADIUS, LDAP, etc SSH, RDP, VNC, HTTPS
    43. Join the cause!
      • If Linux geeks aren't leading the way to increased security, who will?
      • Static passwords are teh suxxor
      • Demand two-factor authentication!
      • Contribute!
    44. The next Dan Kaminsky?
      • Protect SSH with two-factor
      • Have root password > 5 characters, don't use it, use sudo
      • Protect sudo with two-factor
      • WordPress – protect /wordpress/wp-admin/ with two-factor
      • Switch to Postgresql & use two-factor
      • Only open ports are 22, 80 and 443
    45. More Information
      • http://www.kernel.org/pub/linux/libs/pam/
      • http://freeradius.org/pam_radius_auth/
      • http://sourceforge.net/projects/tacplus/
      • http://www.wikidsystems.com/
        • WiKID Documentation Center ->Integration How-tos
      • Downloads -> Network Clients
        • Ruby, Python, PHP, C#, Java
    46. Any questions? [email_address] @wikidsystems

    + Nick OwenNick Owen, 2 months ago

    custom

    545 views, 2 favs, 0 embeds more stats

    My presentation from Atlanta Linux Fest on how to a more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 545
      • 545 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 2
    • Downloads 18
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories