Networking
Ubuntu
- To see ports in use:
sudo lsof -i -P -n | grep LISTEN
sudo netstat -tulpn | grep LISTEN
systemctl list-units --type=service --state=running
- To list all the IPv4 rules:
sudo iptables -S
sudo lsof -i -P -n | grep LISTEN
sudo netstat -tulpn | grep LISTEN
systemctl list-units --type=service --state=running
sudo iptables -S