Ufw configuration: Unterschied zwischen den Versionen

Aus Wiki
Wechseln zu: Navigation, Suche
Zeile 3: Zeile 3:
 
  ufw [delete] allow <port>:<port>/tcp
 
  ufw [delete] allow <port>:<port>/tcp
 
  ufw [delete] allow [proto tcp] from <ip> to any port <port>
 
  ufw [delete] allow [proto tcp] from <ip> to any port <port>
 +
 +
Examples:
 +
 +
ufw allow from <ip> to any port <port> comment '<comment>'
  
 
SSH
 
SSH

Version vom 9. September 2019, 08:28 Uhr

Allgemein

ufw [delete] allow <port>/tcp
ufw [delete] allow <port>:<port>/tcp
ufw [delete] allow [proto tcp] from <ip> to any port <port>

Examples:

ufw allow from <ip> to any port <port> comment '<comment>'

SSH

ufw allow 22/tcp

Webserver

ufw allow 80/tcp
ufw allow 443/tcp

MySQL

ufw allow 3306/tcp

FTP

ufw allow 20/tcp
ufw allow 21/tcp
ufw allow 2020:2030/tcp
add config to vsftp.conf
ftp_data_port=20
pasv_min_port=2020
pasv_max_port=2030