ansible-edda/playbooks/filesystem/yggdrasil/etc/network/interfaces.d/br0.j2

25 lines
748 B
Plaintext
Raw Normal View History

2022-09-24 00:15:46 +02:00
auto br0
iface br0 inet static
pre-up ip link add $IFACE type bridge
2022-09-25 16:00:40 +02:00
post-up /usr/local/sbin/post-up-$IFACE-inet.nft
post-up /usr/local/sbin/post-up-$IFACE-ipv4.nft
2022-09-24 00:15:46 +02:00
post-up ip rule add dev $IFACE table 66
post-up ip rule add dev $IFACE to {{ subnet }} table main priority 1
2022-09-24 00:15:46 +02:00
pre-down ip rule del dev $IFACE to {{ subnet }} table main priority 1
2022-09-24 00:15:46 +02:00
pre-down ip rule del dev $IFACE table 66
2022-09-25 16:00:40 +02:00
pre-down /usr/local/sbin/pre-down-$IFACE-ipv4.nft
pre-down /usr/local/sbin/pre-down-$IFACE-inet.nft
2022-09-24 00:15:46 +02:00
post-down ip link del dev $IFACE
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports none
address {{ vpn_br0_address }}
broadcast {{ vpn_br0_broadcast }}
netmask {{ vpn_br0_netmask }}