From 963596380423d96585242667ed35d9a6d07181cc Mon Sep 17 00:00:00 2001 From: doktornotor Date: Wed, 26 Aug 2015 16:58:33 +0200 Subject: Delete tinc_config.xml Content moved to tinc.xml --- config/tinc/tinc_config.xml | 215 -------------------------------------------- 1 file changed, 215 deletions(-) delete mode 100644 config/tinc/tinc_config.xml (limited to 'config') diff --git a/config/tinc/tinc_config.xml b/config/tinc/tinc_config.xml deleted file mode 100644 index d6ee9c26..00000000 --- a/config/tinc/tinc_config.xml +++ /dev/null @@ -1,215 +0,0 @@ - - - - - - - - tinc - 1.0.19 - VPN: tinc - - - ['installedpackages']['package']['$packagename']['config'] - - - - Config - /pkg_edit.php?xml=tinc_config.xml - - - - Hosts - /pkg.php?xml=tinc_hosts.xml - - - enabled - - - Name - name - This is the name which identifies this tinc daemon. It must be unique for the virtual private network this daemon will connect to. - input - - - Local IP - localip - IP Address of local tunnel interface. This is often the same IP as your routers LAN address, for example 192.168.2.1 - input - - - Local Subnet - localsubnet - Subnet behind this router that should be advertised to the mesh. This is usually your LAN subnet, for example 192.168.2.0/24 - input - - - VPN Netmask - vpnnetmask - This is the Netmask that defines what traffic is routed to the VPNs tunnel interface. It is usually broader then your local netmask, for example 255.255.0.0 - input - - - AddressFamily - addressfamily - This option affects the address family of listening and outgoing sockets. If "any" is selected, then depending on the operating system both IPv4 and IPv6 or just IPv6 listening sockets will be created. - select - - - - - - - - RSA private key - cert_key - RSA private key used for this host. Include the BEGIN and END lines. <br> - textarea - base64 - 7 - 65 - - - RSA public key - cert_pub - RSA public key used for this host. Include the BEGIN and END lines. <br> - textarea - base64 - 7 - 65 - - - Generate RSA key pair - gen_rsa - This will generate a new RSA key pair in the fields above. - checkbox - - - Extra Tinc Parameters - extra - Anything entered here will be added at the end of the tinc.conf configuration file. <br> - textarea - base64 - 8 - 65 - - - - Extra Host Parameters - host_extra - Anything entered here will be added just prior to the public certiciate in the host configuration file for this machine. <br> - textarea - base64 - 8 - 65 - - - - Interface Up Script - tinc_up - This script is executed right after the tinc daemon has connected to the virtual network device. By default a tinc-up file is created that brings up the tinc interface with the IP Address and Netmask specified above and adds it to the tinc interface group. Entering a value here complely replaces the default script so be sure to bring up the interface in this script. - textarea - base64 - 8 - 65 - - - - Interface Down Script - tinc_down - This script is executed right before the tinc daemon is going to close. - textarea - base64 - 8 - 65 - - - - Host Up Script - host_up - This script is executed when any host becomes reachable. - textarea - base64 - 8 - 65 - - - - Host Down Script - host_down - This script is executed when any host becomes unreachable. - textarea - base64 - 8 - 65 - - - - Subnet Up Script - subnet_up - This script is executed when any subnet becomes reachable. - textarea - base64 - 8 - 65 - - - - Subnet Down Script - subnet_down - This script is executed when any subnet becomes unreachable. - textarea - base64 - 8 - 65 - - - - /usr/local/pkg/tinc.inc - - tinc_save(); - - -- cgit v1.2.3 From 08efcbb61112e9e5743f13790fc9ca81856db846 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Wed, 26 Aug 2015 17:02:37 +0200 Subject: tinc - pfSense 2.2.x fixes, code style and improvements - Add copyright header - XHTML valid code - Fix code style, whitespace and indentation - Removed the useless checks for clog location on pfSense <2.1.2 --- config/tinc/status_tinc.php | 119 +++++++++++++++++++++++++------------------- 1 file changed, 69 insertions(+), 50 deletions(-) (limited to 'config') diff --git a/config/tinc/status_tinc.php b/config/tinc/status_tinc.php index f50ea640..59a1cb6e 100644 --- a/config/tinc/status_tinc.php +++ b/config/tinc/status_tinc.php @@ -1,88 +1,107 @@ = $begin && $i<= $end) + $output = ""; + $i = 0; + foreach ($result as $line) { + if ($i >= $begin && $i<= $end) { $output .= $line . "\n"; + } $i++; } return $output; } -function tinc_status_2() { - exec("/usr/local/sbin/tincd --config=/usr/local/etc/tinc -kUSR2"); +function tinc_status_usr2() { + exec("/usr/local/sbin/tincd --config=/usr/local/etc/tinc -kUSR2"); usleep(500000); - $clog_path = ""; + $clog_path = "/usr/local/sbin/clog"; $result = array(); - if (is_executable("/usr/local/sbin/clog")) { - $clog_path = "/usr/local/sbin/clog"; - } elseif (is_executable("/usr/sbin/clog")) { - $clog_path = "/usr/sbin/clog"; - } - if (!empty($clog_path)) - exec("{$clog_path} /var/log/tinc.log | sed -e 's/.*tinc\[.*\]: //'",$result); - $i=0; - foreach($result as $line) - { - if(preg_match("/Statistics for Generic BSD tun device/",$line)) - $begin=$i; - if(preg_match("/End of subnet list./",$line)) - $end=$i; + exec("{$clog_path} /var/log/tinc.log | sed -e 's/.*tinc\[.*\]: //'",$result); + $i = 0; + foreach ($result as $line) { + if (preg_match("/Statistics for Generic BSD tun device/",$line)) { + $begin = $i; + } + if (preg_match("/End of subnet list./",$line)) { + $end = $i; + } $i++; } $output=""; - $i=0; - foreach($result as $line) - { - if($i >= $begin && $i<= $end) + $i = 0; + foreach ($result as $line) { + if ($i >= $begin && $i<= $end) { $output .= $line . "\n"; + } $i++; } return $output; } $shortcut_section = "tinc"; -include("head.inc"); ?> +$pgtitle = array(gettext("Status"), "tinc"); +include("head.inc"); +?> "> -Connection list:
+Connection list:
-
+
 
-
-Virtual network device statistics, all known nodes, edges and subnets:
+
+Virtual network device statistics, all known nodes, edges and subnets:
-
+
 
+ + -- cgit v1.2.3 From 4b896c944ef69319f3e7186997029ab3fe41f148 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Wed, 26 Aug 2015 17:04:54 +0200 Subject: tinc_config.xml does not exist any more, fix location accordingly --- config/tinc/pkg_tinc.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/tinc/pkg_tinc.inc b/config/tinc/pkg_tinc.inc index b5b223b0..1ec4ebc0 100644 --- a/config/tinc/pkg_tinc.inc +++ b/config/tinc/pkg_tinc.inc @@ -3,7 +3,7 @@ global $shortcuts; $shortcuts['tinc'] = array(); -$shortcuts['tinc']['main'] = "pkg_edit.php?xml=tinc_config.xml"; +$shortcuts['tinc']['main'] = "pkg_edit.php?xml=tinc.xml"; $shortcuts['tinc']['status'] = "status_tinc.php"; $shortcuts['tinc']['log'] = "diag_pkglogs.php?pkg=tinc"; $shortcuts['tinc']['service'] = "tinc"; -- cgit v1.2.3 From cddbe8e902c6e194363bdf1cb13f68df56bf2200 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Wed, 26 Aug 2015 17:09:44 +0200 Subject: tinc - pfSense 2.2.x fixes, code style and improvements - Add copyright header - Fix code style, whitespace and indentation - Added some basic input validation - Add a symlink to make this work on pfSense 2.2.x (fixes Bug #4409) - Added an enable checkbox to make it possible to disable tinc without uninstalling the package --- config/tinc/tinc.inc | 323 +++++++++++++++++++++++++++++---------------------- 1 file changed, 187 insertions(+), 136 deletions(-) (limited to 'config') diff --git a/config/tinc/tinc.inc b/config/tinc/tinc.inc index 82d5b453..65f07e32 100644 --- a/config/tinc/tinc.inc +++ b/config/tinc/tinc.inc @@ -1,204 +1,255 @@ /dev/null"); - rmdir_recursive("/usr/local/etc/tinc.old"); + file_put_contents("{$configpath}/tinc-up", $_output); + chmod("{$configpath}/tinc-up", 0744); + if ($tincconf['tinc_down']) { + file_put_contents("{$configpath}/tinc-down", str_replace("\r", "", base64_decode($tincconf['tinc_down'])) . "\n"); + chmod("{$configpath}/tinc-down", 0744); + } + if ($tincconf['host_up']) { + file_put_contents("{$configpath}/host-up", str_replace("\r", "", base64_decode($tincconf['host_up'])) . "\n"); + chmod("{$configpath}/host-up", 0744); + } + if ($tincconf['host_down']) { + file_put_contents("{$configpath}/host-down", str_replace("\r", "", base64_decode($tincconf['host_down'])) . "\n"); + chmod("{$configpath}/host-down", 0744); + } + if ($tincconf['subnet_up']) { + file_put_contents("{$configpath}/subnet-up", str_replace("\r", "", base64_decode($tincconf['subnet_up'])) . "\n"); + chmod("{$configpath}/subnet-up", 0744); + } + if ($tincconf['subnet_down']) { + file_put_contents("{$configpath}/subnet-down", str_replace("\r", "", base64_decode($tincconf['subnet_down'])) . "\n"); + chmod("{$configpath}/subnet-down", 0744); + } + + $pfs_version = substr(trim(file_get_contents("/etc/version")), 0, 3); + if ($pfs_version == "2.2") { + $pbietcpath = '/usr/pbi/tinc-' . php_uname("m") . '/local/etc'; + unlink_if_exists("{$pbietcpath}/tinc"); + symlink($configpath, "{$pbietcpath}/tinc"); + } + + if ($tincconf['enable'] != "") { + restart_service("tinc"); + } elseif (is_process_running("tincd")); { + stop_service("tinc"); + } + rmdir_recursive("/usr/local/etc/tinc.old"); conf_mount_ro(); } function tinc_install() { global $config; + safe_mkdir("/usr/local/etc/tinc"); safe_mkdir("/usr/local/etc/tinc/hosts"); - $_rcfile['file']='tinc.sh'; - $_rcfile['start'].="/usr/local/sbin/tincd --config=/usr/local/etc/tinc\n\t"; - $_rcfile['stop'].="/usr/local/sbin/tincd --kill \n\t"; - write_rcfile($_rcfile); + $rc['file'] = 'tinc.sh'; + $rc['start'] .= "/usr/local/sbin/tincd --config=/usr/local/etc/tinc\n\t"; + $rc['stop'] .= "/usr/local/sbin/tincd --kill \n\t"; + write_rcfile($rc); unlink_if_exists("/usr/local/etc/rc.d/tincd"); clear_log_file("/var/log/tinc.log"); - - conf_mount_rw(); - /* Create Interface Group */ - if (!is_array($config['ifgroups']['ifgroupentry'])) - $config['ifgroups']['ifgroupentry'] = array(); - - $a_ifgroups = &$config['ifgroups']['ifgroupentry']; - $ifgroupentry = array(); - $ifgroupentry['members'] = ''; - $ifgroupentry['descr'] = 'tinc mesh VPN interface group'; - $ifgroupentry['ifname'] = 'tinc'; - $a_ifgroups[] = $ifgroupentry; + /* Create Interface Group */ + if (!is_array($config['ifgroups']['ifgroupentry'])) { + $config['ifgroups']['ifgroupentry'] = array(); + } - /* XXX: Do not remove this. */ - mwexec("/bin/rm -f /tmp/config.cache"); + $a_ifgroups = &$config['ifgroups']['ifgroupentry']; + $ifgroupentry = array(); + $ifgroupentry['members'] = ''; + $ifgroupentry['descr'] = 'tinc mesh VPN interface group'; + $ifgroupentry['ifname'] = 'tinc'; + $a_ifgroups[] = $ifgroupentry; - write_config(); + /* XXX: Do not remove this. WTH?! */ + mwexec("/bin/rm -f /tmp/config.cache"); - conf_mount_ro(); + write_config("[tinc] Package installed."); } function tinc_deinstall() { global $config; - /* Remove Interface Group */ - conf_mount_rw(); - if (!is_array($config['ifgroups']['ifgroupentry'])) - $config['ifgroups']['ifgroupentry'] = array(); - - $a_ifgroups = &$config['ifgroups']['ifgroupentry']; - - $myid=-1; - $i = 0; - foreach ($a_ifgroups as $ifgroupentry) - { - if($ifgroupentry['ifname']=='tinc') - { - $myid=$i; - break; - } - $i++; - } - - if ($myid >= 0 && $a_ifgroups[$myid]) - { - $members = explode(" ", $a_ifgroups[$_GET['id']]['members']); - foreach ($members as $ifs) - { - $realif = get_real_interface($ifs); - if ($realif) - mwexec("/sbin/ifconfig {$realif} -group " . escapeshellarg($a_ifgroups[$_GET['id']]['ifname'])); - } - unset($a_ifgroups[$myid]); - mwexec("/bin/rm -f /tmp/config.cache"); - write_config(); - } - conf_mount_ro(); + /* Remove Interface Group */ + if (!is_array($config['ifgroups']['ifgroupentry'])) { + $config['ifgroups']['ifgroupentry'] = array(); + } + + $a_ifgroups = &$config['ifgroups']['ifgroupentry']; + + $myid = -1; + $i = 0; + foreach ($a_ifgroups as $ifgroupentry) { + if ($ifgroupentry['ifname'] == 'tinc') { + $myid = $i; + break; + } + $i++; + } + + if ($myid >= 0 && $a_ifgroups[$myid]) { + $members = explode(" ", $a_ifgroups[$_GET['id']]['members']); + foreach ($members as $ifs) { + $realif = get_real_interface($ifs); + if ($realif) { + mwexec("/sbin/ifconfig {$realif} -group " . escapeshellarg($a_ifgroups[$_GET['id']]['ifname'])); + } + } + unset($a_ifgroups[$myid]); + /* WTH?! */ + mwexec("/bin/rm -f /tmp/config.cache"); + write_config("[tinc] Package uninstalled."); + } rmdir_recursive("/var/tmp/tinc"); rmdir_recursive("/usr/local/etc/tinc*"); - unlink_if_exists("/usr/local/etc/rc.d/tinc.sh"); } +function tinc_validate_input($post, &$input_errors) { + if ($post['localip']) { + if ((!is_ipaddr($post['localip'])) && (!is_hostname($post['localip']))) { + $input_errors[] = gettext("'Local IP' must be a valid IP address or hostname."); + } + } + if ($post['address']) { + if ((!is_ipaddr($post['address'])) && (!is_hostname($post['address']))) { + $input_errors[] = gettext("'Host Address' must be a valid IP address or hostname."); + } + } + if (($post['localsubnet']) && (!is_subnet($post['localsubnet']))) { + $input_errors[] = gettext("'Local Subnet' must be a valid subnet."); + } + if (($post['subnet']) && (!is_subnet($post['subnet']))) { + $input_errors[] = gettext("'Subnet' must be a valid subnet."); + } +} ?> -- cgit v1.2.3 From 835c60a0917b47aa22e4ed9ea0113381fb920f1b Mon Sep 17 00:00:00 2001 From: doktornotor Date: Wed, 26 Aug 2015 17:12:44 +0200 Subject: tinc - pfSense 2.2.x fixes, code style and improvements - Fix copyright header - Nuke unused tags - Add input validation --- config/tinc/tinc_hosts.xml | 121 ++++++++++++++++++++++++--------------------- 1 file changed, 64 insertions(+), 57 deletions(-) (limited to 'config') diff --git a/config/tinc/tinc_hosts.xml b/config/tinc/tinc_hosts.xml index 7741b7be..f210f23a 100644 --- a/config/tinc/tinc_hosts.xml +++ b/config/tinc/tinc_hosts.xml @@ -1,57 +1,54 @@ - - + + - - + - - tinc Hosts - - Currently there are no FAQ items provided. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. +*/ +/* ====================================================================================== */ + ]]> + tinchosts - 1.0.19 + 1.2.2 VPN: tinc - Hosts - + /usr/local/pkg/tinc.inc ['installedpackages']['package']['$packagename']['config'] - Config - /pkg_edit.php?xml=tinc_config.xml + /pkg_edit.php?xml=tinc.xml Hosts @@ -60,9 +57,6 @@ enabled - - Name @@ -83,20 +77,20 @@ - Name name Name of this host. input + Address address IP address or hostname of server. input + Subnet @@ -104,6 +98,7 @@ Subnet behind host (like 192.168.254.0/24) input 50 + Connect at Startup @@ -114,7 +109,11 @@ RSA public key cert_pub - RSA public key used for this host. Include the BEGIN and END lines.<br> + + Include the BEGIN and END lines.
+ ]]> +
textarea base64 7 @@ -123,7 +122,11 @@ Extra Parameters extra - Anything entered here will be added just prior to the public certiciate in the host configuration file. <br> + + + ]]> + textarea base64 8 @@ -133,7 +136,11 @@ Host Up Script host_up - This script will be run when this host becomes reachable. <br> + + + ]]> + textarea base64 8 @@ -143,25 +150,25 @@ Host Down Script host_down - This script will be run when this host becomes unreachable. <br> + + + ]]> + textarea base64 8 65 -
- /usr/local/pkg/tinc.inc - - + tinc_save(); - - - - tinc_save(); + + tinc_validate_input($_POST, $input_errors); +
-- cgit v1.2.3 From 417158f54818bb93b791085a32a71995658cb86a Mon Sep 17 00:00:00 2001 From: doktornotor Date: Wed, 26 Aug 2015 17:15:02 +0200 Subject: Update tinc_hosts.xml Fix columns number in textarea for RSA keys. --- config/tinc/tinc_hosts.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'config') diff --git a/config/tinc/tinc_hosts.xml b/config/tinc/tinc_hosts.xml index f210f23a..b521d4a2 100644 --- a/config/tinc/tinc_hosts.xml +++ b/config/tinc/tinc_hosts.xml @@ -117,7 +117,7 @@ textarea base64 7 - 65 + 70 Extra Parameters @@ -130,7 +130,7 @@ textarea base64 8 - 65 + 70 @@ -144,7 +144,7 @@ textarea base64 8 - 65 + 70 @@ -158,7 +158,7 @@ textarea base64 8 - 65 + 70 -- cgit v1.2.3 From 4dd1f291e78746bd0cccb6ce27359f90f02693e1 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Wed, 26 Aug 2015 17:20:02 +0200 Subject: tinc - pfSense 2.2.x fixes, code style and improvements - Fix copyright header - All content from tinc_config.xml moved here - Add basic input validation - Added an enable checkbox to make it possible to disable tinc without uninstalling the package - Fix textarea so that the generated RSA keys actually fit in without linewraps - Cosmetics --- config/tinc/tinc.xml | 340 +++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 277 insertions(+), 63 deletions(-) (limited to 'config') diff --git a/config/tinc/tinc.xml b/config/tinc/tinc.xml index 183ae161..89d1e8ce 100644 --- a/config/tinc/tinc.xml +++ b/config/tinc/tinc.xml @@ -1,103 +1,317 @@ - - + + - - + - - A self-contained VPN solution designed to connect multiple sites together in a secure way. - Describe your package requirements here - Currently there are no FAQ items provided. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. +*/ +/* ====================================================================================== */ + ]]> + + A self-contained VPN solution designed to connect multiple sites together in a secure way. tinc - 1.0.23 v1.2.1 - VPN: tinc - + 1.2.2 + VPN: tinc - Config + /usr/local/pkg/tinc.inc + ['installedpackages']['package']['$packagename']['config'] tinc - tinc is a mesh VPN daemon.
VPN
- tinc_config.xml - /pkg_edit.php?xml=tinc_config.xml + tinc.xml + /pkg_edit.php?xml=tinc.xml
- tincd - Status of tinc VPN Daemon + tinc VPN
Status
/status_tinc.php
- + + tinc + tinc.sh + tincd + Tinc Mesh VPN + + + + Config + /pkg_edit.php?xml=tinc.xml + + + + Hosts + /pkg.php?xml=tinc_hosts.xml + + /usr/local/pkg/ - 0644 https://packages.pfsense.org/packages/config/tinc/tinc.inc /usr/local/pkg/ - 0644 - https://packages.pfsense.org/packages/config/tinc/tinc_config.xml - - - /usr/local/pkg/ - 0644 https://packages.pfsense.org/packages/config/tinc/tinc_hosts.xml /usr/local/www/ - 0755 https://packages.pfsense.org/packages/config/tinc/status_tinc.php /usr/local/www/shortcuts/ - 0644 https://packages.pfsense.org/packages/config/tinc/pkg_tinc.inc - - - tinc - tinc.sh - tincd - tinc mesh VPN - - /usr/local/pkg/tinc.inc - + enabled + + + Basic Settings + listtopic + + + Enable Tinc VPN + enable + Check this to enable tinc mesh VPN. + checkbox + + + Name + name + + + It must be unique for the virtual private network this daemon will connect to. + ]]> + + input + + + + Local IP + localip + + + This is often the same IP as your routers LAN address. (Example: 192.168.2.1) + ]]> + + input + + + + Local Subnet + localsubnet + + + This is usually your LAN subnet. (Example: 192.168.2.0/24) + ]]> + + input + + + + VPN Netmask + vpnnetmask + + + It is usually broader then your local netmask. (Example: 255.255.0.0) + ]]> + + input + + + + Address Family + addressfamily + + + If "Any" is selected, then - depending on the operating system - either both IPv4 and IPv6 or just IPv6 listening sockets will be created. + ]]> + + select + + + + + + + + RSA Private Key + cert_key + + Include the BEGIN and END lines.
+ ]]> +
+ textarea + base64 + 7 + 70 +
+ + RSA Public Key + cert_pub + + Include the BEGIN and END lines.
+ ]]> +
+ textarea + base64 + 7 + 70 +
+ + Generate RSA Key Pair + gen_rsa + This will generate a new RSA key pair in the fields above. + checkbox + + + Extra Tinc Parameters + extra + + + ]]> + + textarea + base64 + 8 + 70 + + + + Extra Host Parameters + host_extra + + + ]]> + + textarea + base64 + 8 + 70 + + + + Interface Up Script + tinc_up + + + By default, a tinc-up file is created that brings up the tinc interface with the IP Address and Netmask specified above and adds it to the tinc interface group.
+ Note: Entering a value here complely replaces the default script; be sure to bring up the interface in this script! + ]]> +
+ textarea + base64 + 8 + 70 + +
+ + Interface Down Script + tinc_down + This script is executed right before the tinc daemon is going to close. + textarea + base64 + 8 + 70 + + + + Host Up Script + host_up + This script is executed when any host becomes reachable. + textarea + base64 + 8 + 70 + + + + Host Down Script + host_down + This script is executed when any host becomes unreachable. + textarea + base64 + 8 + 70 + + + + Subnet Up Script + subnet_up + This script is executed when any subnet becomes reachable. + textarea + base64 + 8 + 70 + + + + Subnet Down Script + subnet_down + This script is executed when any subnet becomes unreachable. + textarea + base64 + 8 + 70 + + +
tinc_install(); tinc_deinstall(); - + + tinc_save(); + + + tinc_validate_input($_POST, $input_errors); +
-- cgit v1.2.3