Per Port ACLs
Posted: Thu Feb 13, 2014 6:48 am
I have followed the instructions at: https://www.atomicorp.com/wiki/index.ph ... _Port_ACLs to allow certain IPs to connect to MySQL on 3306 but I am still unable to make connections to MySQL from the allowed IPs
The firewall contains rules for the IPs listed in the file /etc/asl/firewall/INPUT-mysqld-tcp-3306-any-acl which gives these rules in the firewall itself (iptables -L -n | grep 3306):
LOCAL-0-mysqld-ACL tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 106.1x6.116.x6 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 10.x6.85.5x 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 116.51.2xx.9 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 103.x.17.1x7 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 50.x.28.3x 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 89.45.2x9.xx 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 130.x.19x.51 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 176.x.23x.119 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 78.157.xx7.106 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 192.x.2x.36 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 192.x.32.x70 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 162.2x1.66.130 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 204.x.60.100 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 162.211.x.212 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 23.x.101.96 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- x.71.187.204 0.0.0.0/0 tcp dpt:3306 state NEW
(Obfuscated actual IPs)
Why does this not work, what am I doing wrong?
For reference I am using FW_INBOUND_TCP_SERVICES but as per the instructions 3306 is not listed.
TIA
The firewall contains rules for the IPs listed in the file /etc/asl/firewall/INPUT-mysqld-tcp-3306-any-acl which gives these rules in the firewall itself (iptables -L -n | grep 3306):
LOCAL-0-mysqld-ACL tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 106.1x6.116.x6 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 10.x6.85.5x 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 116.51.2xx.9 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 103.x.17.1x7 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 50.x.28.3x 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 89.45.2x9.xx 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 130.x.19x.51 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 176.x.23x.119 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 78.157.xx7.106 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 192.x.2x.36 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 192.x.32.x70 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 162.2x1.66.130 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 204.x.60.100 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 162.211.x.212 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- 23.x.101.96 0.0.0.0/0 tcp dpt:3306 state NEW
ACCEPT tcp -- x.71.187.204 0.0.0.0/0 tcp dpt:3306 state NEW
(Obfuscated actual IPs)
Why does this not work, what am I doing wrong?
For reference I am using FW_INBOUND_TCP_SERVICES but as per the instructions 3306 is not listed.
TIA