# check the line number of your rule sudo iptables -L -nv --line-numbers # delete it, you can change INPUT to OUTPUT & FORWARD sudo iptables -D INPUT <line_number>