View Single Post
  #8  
Old 05-13-2020, 12:52 PM
Rikon's Avatar
Rikon
Sarnak
 
Join Date: May 2010
Location: US
Posts: 86
Default

How are folks setting up iptables to get this to work. I don't want 3306 open to the world and limit it to my server and EOC.

Code:
-A INPUT -s 172.20.0.12/32 -p udp -m udp --dport 3306 -j ACCEPT
-A INPUT -s 172.20.0.12/32 -p tcp -m tcp --dport 3306 -j ACCEPT
-A OUTPUT -s 172.20.0.12/32 -p udp -m udp --dport 3306 -j ACCEPT
-A OUTPUT -s 172.20.0.12/32 -p tcp -m tcp --dport 3306 -j ACCEPT
Reply With Quote