Answers for "how to allow only a specific ip on a docker port using ip tables"

0

how to allow only a specific ip on a docker port using ip tables

iptables -I DOCKER -i eth0 -s 8.8.8.8 -p tcp --dport 3306 -j ACCEPT
iptables -I DOCKER -i eth0 -s 4.4.4.4 -p tcp --dport 3306 -j ACCEPT
iptables -I DOCKER 3 -i eth0 -p tcp --dport 3306 -j DROP
Posted by: Guest on September-15-2020

Code answers related to "how to allow only a specific ip on a docker port using ip tables"

Browse Popular Code Answers by Language