Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Simple firewall

Vladimir Melnic edited this page Feb 12, 2017 · 2 revisions

Block incoming port (Solr) 8983 except for IP address 127.0.0.1

iptables -A INPUT -p tcp -i eth0 ! -s 127.0.0.1 --dport 8983 -j DROP

Block incoming port (MySQL) 3306 except for IP address 127.0.0.1

iptables -A INPUT -p tcp -i eth0 ! -s 127.0.0.1 --dport 3306 -j DROP

Clone this wiki locally