make it possible to manage mtu of the tinc interface

This commit is contained in:
mh 2013-08-10 14:58:21 +02:00
parent 6ee3c97960
commit 2b4ab84dd7
2 changed files with 4 additions and 0 deletions

View file

@ -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,

View file

@ -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 -%>