mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
1. Sasyncd is not included in RELENG_1 2. Interface selection widget is hosed for all interfaces Remove SASYNCD specific features and only ask for failover IP address.
71 lines
2.3 KiB
XML
71 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<packagegui>
|
|
<name>sasyncd</name>
|
|
<version>0.1.0</version>
|
|
<title>Services: VPN Failover</title>
|
|
<!-- configpath gets expanded out automatically and config items will be
|
|
stored in that location -->
|
|
<configpath>['ipsec']['failover']</configpath>
|
|
<aftersaveredirect>pkg_edit.php?xml=sasyncd.xml&id=0</aftersaveredirect>
|
|
<!-- Menu is where this packages menu will appear -->
|
|
<menu>
|
|
<name>VPN failover</name>
|
|
<tooltiptext>The sasyncd daemon synchronizes IPSec SA and SPD information between a number of failover IPsec gateways. The most typical scenario is to run sasyncd on hosts also running isakmpd and sharing a common IP-address using carp.</tooltiptext>
|
|
<section>Services</section>
|
|
<configfile>sasyncd.xml</configfile>
|
|
</menu>
|
|
<adddeleteeditpagefields>
|
|
<columnitem>
|
|
<fielddescr>Interface</fielddescr>
|
|
<fieldname>interface</fieldname>
|
|
</columnitem>
|
|
<columnitem>
|
|
<fielddescr>Peer IP</fielddescr>
|
|
<fieldname>peerip</fieldname>
|
|
</columnitem>
|
|
</adddeleteeditpagefields>
|
|
<tabs>
|
|
<tab>
|
|
<text>Tunnels</text>
|
|
<url>vpn_ipsec.php</url>
|
|
</tab>
|
|
<tab>
|
|
<text>Mobile clients</text>
|
|
<url>vpn_ipsec_mobile.php</url>
|
|
</tab>
|
|
<tab>
|
|
<text>Pre-shared keys</text>
|
|
<url>vpn_ipsec_keys.php</url>
|
|
</tab>
|
|
<tab>
|
|
<text>CAs</text>
|
|
<url>vpn_ipsec_ca.php</url>
|
|
</tab>
|
|
<tab>
|
|
<text>Failover IPSEC</text>
|
|
<url>/pkg_edit.php?xml=sasyncd.xml&id=0</url>
|
|
<active/>
|
|
</tab>
|
|
</tabs>
|
|
<!-- fields gets invoked when the user adds or edits a item. the following items
|
|
will be parsed and rendered for the user as a gui with input, and selectboxes. -->
|
|
<fields>
|
|
<field>
|
|
<fielddescr>Failover IP</fielddescr>
|
|
<fieldname>ip</fieldname>
|
|
<description>Enter the IP address you would like to use for failover. HINT: You normally want to use a public CARP ip.</description>
|
|
<type>input</type>
|
|
</field>
|
|
</fields>
|
|
<custom_add_php_command>
|
|
/* automatically turn on prefer old sa's until sasyncd is finished being ported */
|
|
if($_POST['ip'] != "")
|
|
$config['ipsec']['preferoldsa'] = true;
|
|
</custom_add_php_command>
|
|
<custom_add_php_command_late>
|
|
/* resync vpn settings */
|
|
mwexec("/usr/bin/killall racoon");
|
|
vpn_ipsec_configure();
|
|
</custom_add_php_command_late>
|
|
</packagegui>
|