21. Networking

21.1. IPv4 vs IPv6

  • 127.0.0.1

  • ::1

21.2. Networks

  • NAT

  • SNAT

  • DNAT

  • VLAN

  • LAN

  • MAN

  • WAN

21.3. Paths

  • /etc/hosts

  • /etc/resolv.conf

  • /var/mail

  • /etc/network

  • /etc/network/interfaces

  • /etc/network/if-post-down.d/

  • /etc/network/if-pre-up.d/

  • /etc/network/if-up.d/

  • /etc/if-up-down/

  • /etc/wpa_supplicant.conf

21.4. Built-in

  • ifconfig

  • ip

  • route

  • netstat

  • iptables

21.5. Additional

  • nc

  • wireshark

  • nmap

  • tcpdump