Create firewall_notes.txt

This commit is contained in:
David Rotermund 2024-07-13 15:57:05 +02:00 committed by GitHub
parent 27acdbc661
commit c207ceebaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,17 @@
# FIREWALL NOTES:
sed -i -e 's/DEFAULT_FORWARD_POLICY="DROP"/DEFAULT_FORWARD_POLICY="ACCEPT"/g' /etc/default/ufw
ufw reload
iptables -t nat -A POSTROUTING ! -o docker0 -s 172.18.0.0/16 -j MASQUERADE
# Add the overlead-network to the firewall
docker network ls | grep overleaf-network
ufw allow in on br-ff9f46af3644
ufw route allow in on br-ff9f46af3644
ufw route allow out on br-ff9f46af3644
iptables -t nat -A POSTROUTING ! -o br-ff9f46af3644 -s 172.18.0.0/16 -j MASQUERADE
# For removing firewall settings we don't want:
ufw status numbered
ufw delete [NUMBER]