Answers for "Ip tables rules that don't block mysql"

0

close external port 3306 with iptables

iptables -A INPUT -p tcp --dport 3306 -s 127.0.0.1 -d 127.0.0.1 -j ACCEPT
iptables -A INPUT -p tcp --dport 3306 -j DROP
Posted by: Guest on May-24-2020
0

close external port 3306 with iptables

iptables -D INPUT -p tcp --dport 3306 -s 127.0.0.1 -d 127.0.0.1 -j ACCEPT
iptables -D INPUT -p tcp --dport 3306 -j DROP
Posted by: Guest on May-24-2020

Browse Popular Code Answers by Language