Member-only story
Here are some Linux commands that can help in managing and monitoring network security and performance:
Network Monitoring
ping
: Check the reachability of a host.
ping google.com
2. traceroute
: Trace the route packets take to a network host.
traceroute google.com
3.netstat
: Display network connections, routing tables, interface statistics, etc.
netstat -tuln
4. ss
: Another utility to investigate sockets (similar to netstat
but more modern).
ss -tuln
5. tcpdump
: Packet analyzer that captures and displays TCP/IP and other packets.
sudo tcpdump -i eth0
Firewall Management
6. iptables
: Configure IP packet filter rules.
sudo iptables -L
7. ufw
: Uncomplicated Firewall, a front-end for iptables
.
sudo ufw status
Security Tools
8. nmap
: Network exploration tool and security/port scanner.
nmap -sP 192.168.1.0/24
9. fail2ban
: Intrusion prevention software framework that protects computer servers from brute-force attacks.
sudo fail2ban-client status