Remove FTP support - SFTP is the future

This commit is contained in:
Daniel Winzen
2020-07-19 18:00:14 +02:00
parent a9c0b38711
commit af0d5cf26a
10 changed files with 15 additions and 239 deletions

View File

@@ -39,7 +39,7 @@ iptables -A OUTPUT -p udp --dport 123 -d $clearnet -j ACCEPT
)done
#restrict local communication for php and webserver
#allowed tcp ports
for port in 3306 9040 9050 110 143 25 21 5000:5050 53; do(
for port in 3306 9040 9050 110 143 25 22 53; do(
iptables -A OUTPUT -d 127.0.0.0/8 -p tcp --dport $port -m owner --gid-owner www-data -j ACCEPT;
ip6tables -A OUTPUT -d ::1 -p tcp --dport $port -m owner --gid-owner www-data -j ACCEPT
)done