Project

General

Profile

« Previous | Next » 

Revision 5cd9e96a

Added by Jim Pingle about 14 years ago

Add a GUI selection for racoon's generate_policy directive since it may be useful in certain configurations, especially for mobile clients.

View differences:

usr/local/www/vpn_ipsec_phase1.php
89 89
	$pconfig['dhgroup'] = $a_phase1[$p1index]['dhgroup'];
90 90
	$pconfig['lifetime'] = $a_phase1[$p1index]['lifetime'];
91 91
	$pconfig['authentication_method'] = $a_phase1[$p1index]['authentication_method'];
92
	$pconfig['generate_policy'] = $a_phase1[$p1index]['generate_policy'];
92 93
	$pconfig['proposal_check'] = $a_phase1[$p1index]['proposal_check'];
93 94

  
94 95
	if (($pconfig['authentication_method'] == "pre_shared_key") || 
......
307 308
		$ph1ent['certref'] = $pconfig['certref'];
308 309
		$ph1ent['caref'] = $pconfig['caref'];
309 310
		$ph1ent['authentication_method'] = $pconfig['authentication_method'];
311
		$ph1ent['generate_policy'] = $pconfig['generate_policy'];
310 312
		$ph1ent['proposal_check'] = $pconfig['proposal_check'];
311 313
		$ph1ent['descr'] = $pconfig['descr'];
312 314
		$ph1ent['nat_traversal'] = $pconfig['nat_traversal'];
......
644 646
							</span>
645 647
						</td>
646 648
					</tr>
649
					<tr id="generate_policy">
650
						<td width="22%" valign="top" class="vncellreq"><?=gettext("Policy Generation"); ?></td>
651
						<td width="78%" class="vtable">
652
							<select name="generate_policy" class="formselect">
653
								<option value="" <?php if (empty($pconfig['generate_policy'])) echo "selected"; ?>>Default</option>
654
								<option value="on" <?php if ($pconfig['generate_policy'] == "on") echo "selected"; ?>>On</option>
655
								<option value="off" <?php if ($pconfig['generate_policy'] == "off") echo "selected"; ?>>Off</option>
656
								<option value="require" <?php if ($pconfig['generate_policy'] == "require") echo "selected"; ?>>Require</option>
657
								<option value="unique" <?php if ($pconfig['generate_policy'] == "unique") echo "selected"; ?>>Unique</option>
658
							</select>
659
							<br>
660
							<span class="vexpl">
661
								<?=gettext("When working as a responder (as with mobile clients), this controls how policies are generated based on SA proposals."); ?>
662
							</span>
663
						</td>
664
					</tr>
647 665
					<tr id="proposal_check">
648 666
						<td width="22%" valign="top" class="vncellreq"><?=gettext("Proposal Checking"); ?></td>
649 667
						<td width="78%" class="vtable">

Also available in: Unified diff