How do you configure firewalls, troubleshoot DNS issues, and analyze network traffic using netstat, curl, and tcpdump?