firewall: disable forwarding for mgmt interfaces in if-pre-up
Should be more robust and more importantly works when interfaces are not renamed by mdev as is the situation now.
This commit is contained in:
parent
25289dd82f
commit
f54b23f49a
2 changed files with 2 additions and 6 deletions
|
@ -11,6 +11,8 @@ iface {{ iface.name }}
|
|||
requires {{ iface.vrf.name }}
|
||||
pre-up ip link set $IFACE master {{ iface.vrf.name }}
|
||||
{% endif %}
|
||||
pre-up sysctl -w net.ipv4.conf.$IFACE.forwarding=0
|
||||
pre-up sysctl -w net.ipv6.conf.$IFACE.forwarding=0
|
||||
{% if iface.mtu %}
|
||||
mtu {{ iface.mtu }}
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue