Use the interface file method to set mtu
This commit is contained in:
parent
b1218945b6
commit
476bd0f13e
@ -2,7 +2,6 @@ auto {{ vpn_wireguard_iface }}
|
||||
iface {{ vpn_wireguard_iface }} inet6 static
|
||||
pre-up /usr/local/sbin/ip-link-add.sh $IFACE type wireguard
|
||||
pre-up wg setconf $IFACE /etc/wireguard/$IFACE.conf
|
||||
pre-up ip link set mtu {{ vpn_wireguard_mtu }} dev $IFACE
|
||||
|
||||
post-up /usr/local/sbin/post-up-$IFACE-inet.nft
|
||||
post-up ip -6 route add default dev $IFACE table {{ vpn_wireguard_routing_table }}
|
||||
@ -10,6 +9,8 @@ iface {{ vpn_wireguard_iface }} inet6 static
|
||||
pre-down ip -6 route del default dev $IFACE table {{ vpn_wireguard_routing_table }}
|
||||
pre-down /usr/local/sbin/pre-down-$IFACE-inet.nft
|
||||
|
||||
mtu {{ vpn_wireguard_mtu }}
|
||||
|
||||
address {{ vpn_wireguard_inet6_address }}/{{ vpn_wireguard_inet6_prefixlen }}
|
||||
|
||||
iface {{ vpn_wireguard_iface }} inet static
|
||||
|
@ -2,7 +2,6 @@ auto {{ vpn_wireguard_iface }}
|
||||
iface {{ vpn_wireguard_iface }} inet6 static
|
||||
pre-up /usr/local/sbin/ip-link-add.sh $IFACE type wireguard
|
||||
pre-up wg setconf $IFACE /etc/wireguard/$IFACE.conf
|
||||
pre-up ip link set mtu {{ vpn_wireguard_mtu }} dev $IFACE
|
||||
|
||||
post-up /usr/local/sbin/post-up-$IFACE-inet.nft
|
||||
{% if vpn_wireguard_routing_table is defined %}
|
||||
@ -24,6 +23,8 @@ iface {{ vpn_wireguard_iface }} inet6 static
|
||||
{% endif %}
|
||||
pre-down /usr/local/sbin/pre-down-$IFACE-inet.nft
|
||||
|
||||
mtu {{ vpn_wireguard_mtu }}
|
||||
|
||||
address {{ vpn_wireguard_inet6_address }}/{{ vpn_wireguard_inet6_prefixlen }}
|
||||
|
||||
iface {{ vpn_wireguard_iface }} inet static
|
||||
|
Loading…
Reference in New Issue
Block a user