make it possible to manage mtu of the tinc interface
This commit is contained in:
parent
6ee3c97960
commit
2b4ab84dd7
2 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,7 @@ define tinc::vpn_net(
|
|||
$tinc_internal_interface = 'eth1',
|
||||
$tinc_internal_ip = 'absent',
|
||||
$tinc_bridge_interface = 'absent',
|
||||
$override_mtu = false,
|
||||
$port = '655',
|
||||
$compression = '10',
|
||||
$manage_shorewall = false,
|
||||
|
|
|
@ -12,3 +12,6 @@ fi
|
|||
ifconfig $INTERFACE 0.0.0.0
|
||||
brctl addif <%= real_tinc_bridge_interface %> $INTERFACE
|
||||
ifconfig $INTERFACE up
|
||||
<% if override_mtu -%>
|
||||
ifconfig $INTERFACE mtu <%= override_mtu.to_i %>
|
||||
<% end -%>
|
||||
|
|
Loading…
Reference in a new issue