Browse Source

add ufw firewall info

master
Timm 5 years ago
parent
commit
9abb337bfa
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      README.md

+ 5
- 3
README.md View File

@ -1,4 +1,5 @@
# Ubuntu-20.04 Hetzner Cloud Server Setup # Ubuntu-20.04 Hetzner Cloud Server Setup
inpired by https://git.bmen.cc
**Setup Hetzner CX21 Ubuntu 20.04** **Setup Hetzner CX21 Ubuntu 20.04**
@ -13,11 +14,12 @@ Falls der Port für SSH geändert werden soll:
nano /etc/ssh/sshd_config nano /etc/ssh/sshd_config
service ssh restart service ssh restart
``` ```
> Hinweis: die lokale .ssh/config anpassen! (Backup)
> Hinweis: die lokale .ssh/config anpassen! (Backup) ****
> `ufw allow <PORT>` und `ufw delete allow 22` check mit `ufw status`
Nun die Firewall aktivieren und die wichtigsten Ports freischalten
Nun die wichtigsten Ports freischalten und die Firewall aktivieren
``` ```
ufw allow 22
ufw allow 22 (or alternative)
ufw allow 80 ufw allow 80
ufw allow 443 ufw allow 443
ufw enable ufw enable


Loading…
Cancel
Save