1 Star 0 Fork 20

李佳伟/openstack-neutron

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
neutron-enable-bridge-firewall.sh 784 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhangy1317 提交于 2021-01-15 15:46 . add spec and source packages
#!/bin/sh
# This script is triggered on every ovs/linuxbridge agent start. Its intent is
# to make sure the firewall for bridged traffic is enabled before we start an
# agent that may atttempt to set firewall rules on a bridge (a common thing for
# linuxbridge and ovs/hybrid backend setup).
# before enabling the firewall, load the relevant module
/usr/sbin/modprobe bridge
# on newer kernels (3.18+), sysctl knobs are split into a separate module;
# attempt to load it, but don't fail if it's missing (f.e. when running against
# an older kernel version)
/usr/sbin/modprobe br_netfilter 2>> /dev/null || :
# now enable the firewall in case it's disabled (f.e. rhel 7.2 and earlier)
for proto in ip ip6; do
/usr/sbin/sysctl -w net.bridge.bridge-nf-call-${proto}tables=1
done
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ffrog/openstack-neutron.git
[email protected]:ffrog/openstack-neutron.git
ffrog
openstack-neutron
openstack-neutron
master

搜索帮助