Update README.md
This commit is contained in:
parent
b977439333
commit
bd3fd5ac99
1 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,10 @@ echo "}" >> /etc/docker/daemon.json
|
|||
|
||||
systemctl restart docker
|
||||
|
||||
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
|
||||
|
||||
ufw allow in on docker0
|
||||
ufw route allow in on docker0
|
||||
ufw route allow out on docker0
|
||||
|
|
Loading…
Reference in a new issue