Created
October 3, 2022 12:09
-
-
Save Pagliacii/1960f2763f51f609be7eb7e664e6c872 to your computer and use it in GitHub Desktop.
ufw config after install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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