Skip to content

Instantly share code, notes, and snippets.

@Pagliacii
Created October 3, 2022 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pagliacii/1960f2763f51f609be7eb7e664e6c872 to your computer and use it in GitHub Desktop.
Save Pagliacii/1960f2763f51f609be7eb7e664e6c872 to your computer and use it in GitHub Desktop.
ufw config after install
# check status
sudo ufw status
# deny all incoming
sudo ufw default deny incoming
# allow from a specific source IP address or entire subnet to connect to our port 22
sudo ufw allow from 192.168.1.0/24 to any port 22 proto tcp
# enable the ufw
sudo ufw enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment