Project

General

Profile

Download (2.93 KB) Statistics
| Branch: | Tag: | Revision:
1
<?xml version="1.0" encoding="utf-8" ?>
2
<packagegui>
3
	<name>sasyncd</name>
4
	<version>0.1.0</version>
5
	<title>Services: VPN Failover</title>
6
	<!-- configpath gets expanded out automatically and config items will be
7
         stored in that location -->
8
	<configpath>['ipsec']['failover']</configpath>
9
	<aftersaveredirect>pkg_edit.php?xml=sasyncd.xml&amp;id=0</aftersaveredirect>
10
	<!-- Menu is where this packages menu will appear -->
11
	<menu>
12
	    <name>VPN failover</name>
13
	    <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>
14
	    <section>Services</section>
15
	    <configfile>sasyncd.xml</configfile>
16
	</menu>
17
	<adddeleteeditpagefields>
18
	    <columnitem>
19
		    <fielddescr>Interface</fielddescr>
20
		    <fieldname>interface</fieldname>
21
	    </columnitem>
22
	    <columnitem>
23
		    <fielddescr>Peer IP</fielddescr>
24
		    <fieldname>peerip</fieldname>
25
	    </columnitem>
26
	</adddeleteeditpagefields>
27
	<tabs>
28
	    <tab>
29
		<text>Tunnels</text>
30
		<url>vpn_ipsec.php</url>
31
	    </tab>
32
	    <tab>
33
		<text>Mobile clients</text>
34
		<url>vpn_ipsec_mobile.php</url>
35
	    </tab>
36
	    <tab>
37
		<text>Pre-shared keys</text>
38
		<url>vpn_ipsec_keys.php</url>
39
	    </tab>
40
	    <tab>
41
		<text>CAs</text>
42
		<url>vpn_ipsec_ca.php</url>
43
	    </tab>
44
	    <tab>
45
		<text>Failover IPSEC</text>
46
		<url>/pkg_edit.php?xml=sasyncd.xml&amp;id=0</url>
47
		<active/>
48
	    </tab>
49
	</tabs>	
50
	<!-- fields gets invoked when the user adds or edits a item.   the following items
51
         will be parsed and rendered for the user as a gui with input, and selectboxes. -->
52
	<fields>
53
		<field>
54
			<fielddescr>Enable</fielddescr>
55
			<fieldname>enable</fieldname>
56
			<type>checkbox</type>
57
		</field>
58
		<field>
59
			<fielddescr>Interface</fielddescr>
60
			<fieldname>interface</fieldname>
61
			<description>Select the carp interface to use</description>
62
			<interface_filter>carp</interface_filter>
63
			<type>interfaces_selection</type>
64
			<all_interfaces>true</all_interfaces>
65
		</field>
66
		<field>
67
			<fielddescr>Failover IP</fielddescr>
68
			<fieldname>ip</fieldname>
69
			<description>Enter the IP address you would like to use for failover</description>
70
			<type>input</type>
71
		</field>
72
		<field>
73
			<fielddescr>Peer IP</fielddescr>
74
			<fieldname>peerip</fieldname>
75
			<description>Enter the peers ip address</description>
76
			<type>input</type>
77
		</field>
78
		<field>
79
			<fielddescr>Shared Key</fielddescr>
80
			<fieldname>sharedkey</fieldname>
81
			<description>The shared AES key used to encrypt messages between sasyncd(8) hosts.  This configuration setting is required and must be either 16, 24 or 32 bytes long (corresponding to AES using a 128, 192 or 256 bit key).</description>
82
			<type>input</type>
83
		</field>
84
	</fields>
85
	<custom_add_php_command_late>
86
	    /* resync vpn settings */
87
	    vpn_ipsec_configure();
88
	</custom_add_php_command_late>
89
</packagegui>
(3-3/3)