iptables
Command Description
sudo iptables -L Lists all the current rules
sudo iptables -F Clears all the current rules
sudo /sbin/iptables-save Saves changes to the iptables on Ubuntu systems
sudo iptables -A INPUT -j DROP Drops all incoming traffic
sudo iptables -A INPUT -s 192.168.0.254 -j DROP Blocks all connections associated with the IP address of 192.168.0.254