"git@developer.sourcefind.cn:tsoc/superbenchmark.git" did not exist on "0f7b057a2db928da1d502fc787fb047d9d8fb7c2"
Unverified Commit 02aa07b7 authored by wukongdaily's avatar wukongdaily Committed by GitHub
Browse files
parent 2cd81cd5
...@@ -91,6 +91,28 @@ elif [ "$count" -gt 1 ]; then ...@@ -91,6 +91,28 @@ elif [ "$count" -gt 1 ]; then
fi fi
fi fi
# 添加docker zone
uci add firewall zone
uci set firewall.@zone[-1].name='docker'
uci set firewall.@zone[-1].input='ACCEPT'
uci set firewall.@zone[-1].output='ACCEPT'
uci set firewall.@zone[-1].forward='ACCEPT'
uci set firewall.@zone[-1].device='docker0'
# 添加 forwarding docker -> lan
uci add firewall forwarding
uci set firewall.@forwarding[-1].src='docker'
uci set firewall.@forwarding[-1].dest='lan'
# 添加 forwarding docker -> wan
uci add firewall forwarding
uci set firewall.@forwarding[-1].src='docker'
uci set firewall.@forwarding[-1].dest='wan'
# 添加 forwarding lan -> docker
uci add firewall forwarding
uci set firewall.@forwarding[-1].src='lan'
uci set firewall.@forwarding[-1].dest='docker'
# 设置所有网口可访问网页终端 # 设置所有网口可访问网页终端
uci delete ttyd.@ttyd[0].interface uci delete ttyd.@ttyd[0].interface
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment