Mini Howto: Proftpd (inetd) port umstellen
Dieses HowTo behandelt das umstellen des Standard Ports (21) von Proftpd auf einen hohen Port, um Portscans zu entgehen.
Voraussetzungen:
Proftpd, über inetd gestartet
Was zu tun ist
Editiere /etc/proftpd/proftpd.conf
View Code TEXT
1 2 3 4 5 6 7 8 | -- suche -- # Port 21 is the standard FTP port. Port 21 -- ersetze durch -- # Port 21 is the standard FTP port. # but i'm using another one Port 32132 |
Editiere /etc/inetd.conf
View Code TEXT
1 2 3 4 5 | -- suche -- ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/proftpd -- ersetze durch -- 32132 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/proftpd |
Nun noch inetd neu starten
View Code TEXT
1 | /etc/init.d/openbsd-inetd restart |
Und zum Schluss eventuell noch das Port-Forwarding im Router aktualisieren, sofern vorhanden.