Ufw

From ElectroDragon Wiki
Revision as of 04:29, 6 February 2020 by Chao (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • sudo apt-get install ufw
  • sudo nano /etc/default/ufw
  • sudo ufw default deny incoming
  • sudo ufw default allow outgoing

ssh

  • sudo ufw allow ssh
  • sudo ufw allow 22

enable

  • sudo ufw enable