updated setup_ufw and project structure

This commit is contained in:
2025-12-03 11:52:55 +01:00
parent d6ae32fd38
commit 61d94a264f
2 changed files with 1 additions and 3 deletions

View File

@@ -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