updated setup_ufw and project structure
This commit is contained in:
@@ -20,9 +20,7 @@ sudo ufw allow 60000:61000/udp
|
|||||||
#Solving iptables-persistent issue with UFW and Docker
|
#Solving iptables-persistent issue with UFW and Docker
|
||||||
sudo chown $USER:root /etc/ufw/after.rules
|
sudo chown $USER:root /etc/ufw/after.rules
|
||||||
|
|
||||||
# check if DOCKER-USER chain already exists to avoid duplicates
|
grep -q 'DOCKER-USER' /etc/ufw/after.rules || echo "Updating ufw iptables" && sudo cat $PWD/config//ufw/after.rules >> /etc/ufw/after.rules
|
||||||
|
|
||||||
grep -q 'DOCKER-USER' /etc/ufw/after.rules || echo "Updating ufw iptables" && sudo cat $PWD/.data/ufw/after.rules >> /etc/ufw/after.rules
|
|
||||||
sudo chown root:root /etc/ufw/after.rules
|
sudo chown root:root /etc/ufw/after.rules
|
||||||
|
|
||||||
# Enable UFW
|
# Enable UFW
|
||||||
|
|||||||
Reference in New Issue
Block a user