In order to manager in a easy way iptables on Debian machines please install iptables-persistent apt install -y iptables-persistent After we did added the required rules need to add the following in order to block. ##required to be added iptables -A INPUT -p udp -j REJECT –reject-with icmp-port-unreachable iptables -A INPUT -p tcp -j REJECT…