Linux Networking Howto

Peter Corbett, Tim Carmean, and Jon DeVree

[extra content not displayed in slide show]

Workstation

  • Automatic setup
    • Ships with DHCP enabled, OK in most cases
    • Static setup varries by distribution
  • Always keep up to date with OS updates
      • Apt (Debian; Ubuntu)
      • Yum (Fedora)
      • Red Carpet (SuSE)
      • ...or by hand
[extra content not displayed in slide show]

Home Router

  • Static setup
    • /etc/network/interfaces (Debian-based)
    • /etc/sysconfig/network/ifcfg-* (RedHat-based)
  • Enable forwarding
    • Startup scripts, sysctl.conf, firewall ruleset, or other
    • echo "1" > /proc/sys/net/ipv4/ip_forward
  • Filtering rules
    • NetFilter / iptables
    • Default: Everying not explicitly allowed is forbidden
    • Quick and easy GUI tools in most distros
[extra content not displayed in slide show]

Fedora Core 3

[extra content not displayed in slide show]

Firestarter

[extra content not displayed in slide show]

Services

  • Don't run anything you don't need
  • SSH -- remote access
  • Apache -- personal web server
  • Samba -- Windows file sharing
  • Most distros run little or nothing out-of-the box, only add what you need
[extra content not displayed in slide show]

Why be secure?

  • Passwords in clear text -- easy to snoop
    • Telnet, FTP, POP3/IMAP
[extra content not displayed in slide show]

Secure alternatives

  • telnet --> SSH
    • Also does X forwarding, VPN tunnels, and no-password logins as well
  • Use SSL tunnels for HTTP (web), POP/IMAP and SMTP (email), and most others
  • IPsec
[extra content not displayed in slide show]

Focus: Wireless

  • Shared media -- easy to sniff
  • non-broadcast ESSID
  • MAC locking -- restrict to specific network cards
  • WEP, WPA
    • WEP is a trivial joke
    • WPA is far better, if a strong passphrase is used
[extra content not displayed in slide show]

Focus: Wireless

  • 802.1x
    • Complicated to set up
    • not all AP's support it
  • 802.11i
    • Coming Real Soon Now
  • Most home broadband routers are wide open out-of-the-box!
[extra content not displayed in slide show]

Questions?

Questions?
[extra content not displayed in slide show]