Donnerstag, 26. Mai 2016

Protect PHP Admin with IPTables

just in case you have phpAdmin running at port 2000 and you want to protect it:

iptables -I INPUT -m tcp -p tcp --dport 2000 -j ACCEPT
service iptables save

to block 

iptables -I INPUT -m tcp -p tcp --dport 2000 -j REJECT
service iptables save