make it possible to export a different port e.g. for nodes behind NAT

This commit is contained in:
mh 2016-02-25 15:27:28 +01:00
parent 57b93c0883
commit f42cfb8453
2 changed files with 4 additions and 1 deletions

View file

@ -5,6 +5,7 @@ define tinc::instance(
$tinc_interface = 'eth0',
$tinc_address = undef,
$port = '655',
$port_to_export = '655',
$compression = '10',
$mode = 'switch',
$tinc_up_content = undef,
@ -114,7 +115,7 @@ define tinc::instance(
}
# export this host and collect all the other hosts
@@tinc::host{"${fqdn_tinc}@${name}":
port => $port,
port => $port_to_export,
compression => $compression,
address => $host_address,
public_key => $tinc_keys[1],

View file

@ -5,6 +5,7 @@ define tinc::switch(
$tinc_interface = 'eth0',
$tinc_address = undef,
$port = '655',
$port_to_export = '655',
$tinc_internal_interface = 'eth1',
$tinc_internal_ip = 'absent',
$tinc_internal_netmask = 'absent',
@ -19,6 +20,7 @@ define tinc::switch(
tinc_interface => $tinc_interface,
tinc_address => $tinc_address,
port => $port,
port_to_export => $port_to_export,
compression => $compression,
mode => 'switch',
}