Last active
December 18, 2023 08:43
-
-
Save danilogco/4886491bd230beb05863699fbe2c9187 to your computer and use it in GitHub Desktop.
UFW outgoing basic rule
This file contains 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
sudo ufw default deny outgoing | |
sudo ufw allow out to any port 80 # http | |
sudo ufw allow out to any port 443 # https | |
sudo ufw allow out to any port 53 # dns | |
sudo ufw reload | |
sudo ufw status verbose | |
sudo ufw allow out to 20.201.28.151 port 22 proto tcp comment 'Allow SSH' # github |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment