iptables
sudo iptables -L -vAppending Rules to the Chain
sudo iptables -Asudo iptables -A <chain> -i <interface> -p <protocol (tcp/udp) > -s <source> --dport <port no.> -j <target>Enabling Traffic on Localhost
sudo iptables -A INPUT -i lo -j ACCEPTEnabling Connections on HTTP, SSH, and SSL Port
Filtering Packets Based on Source
Last updated