Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
5 lines (4 sloc) 267 Bytes
# allow MySQL to listen to requests ONLY from your separate web server and your home ip:
iptables -A INPUT -p tcp -s serverIPaddress --dport 3306 -j ACCEPT
iptables -A INPUT -p tcp -s homeIPaddress --dport 3306 -j ACCEPT
iptables -A INPUT -p tcp --dport 3306 -j DROP