Last active
July 28, 2016 19:35
-
-
Save lvnilesh/a4e49110d7eba3d28247c9554f978a0f to your computer and use it in GitHub Desktop.
ufw uncomplicated firewall for docker
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 apt-get install ufw | |
sudo vi /etc/default/ufw | |
ipv6= yes | |
DEFAULT_FORWARD_POLICY="ACCEPT" | |
sudo ufw allow 22/tcp | |
sudo ufw allow 80/tcp | |
sudo ufw allow 443/tcp | |
sudo ufw allow 2375/tcp | |
sudo ufw allow 2376/tcp | |
sudo ufw allow 6783/tcp | |
sudo ufw allow 6783/udp | |
sudo ufw enable | |
sudo ufw status verbose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment