Projet

Général

Profil

Télécharger (20,8 ko) Statistiques
| Branche: | Tag: | Révision:

univnautes / usr / local / www / firewall_virtual_ip_edit.php @ 62424bdb

1
<?php
2
/* $Id$ */
3
/*
4

    
5
    firewall_virtual_ip_edit.php
6
    part of pfSense (https://www.pfsense.org/)
7

    
8
    Copyright (C) 2005 Bill Marquette <bill.marquette@gmail.com>.
9
    All rights reserved.
10

    
11
    Includes code from m0n0wall which is:
12
    Copyright (C) 2003-2005 Manuel Kasper <mk@neon1.net>.
13
    All rights reserved.
14

    
15
    Includes code from pfSense which is:
16
    Copyright (C) 2004-2005 Scott Ullrich <geekgod@pfsense.com>.
17
    All rights reserved.
18

    
19
    Redistribution and use in source and binary forms, with or without
20
    modification, are permitted provided that the following conditions are met:
21

    
22
    1. Redistributions of source code must retain the above copyright notice,
23
       this list of conditions and the following disclaimer.
24

    
25
    2. Redistributions in binary form must reproduce the above copyright
26
       notice, this list of conditions and the following disclaimer in the
27
       documentation and/or other materials provided with the distribution.
28

    
29
    THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
30
    INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
31
    AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
32
    AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
33
    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
34
    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
35
    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
36
    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
37
    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
38
    POSSIBILITY OF SUCH DAMAGE.
39
*/
40
/*
41
	pfSense_BUILDER_BINARIES:	/sbin/ifconfig
42
	pfSense_MODULE:	interfaces
43
*/
44

    
45
##|+PRIV
46
##|*IDENT=page-firewall-virtualipaddress-edit
47
##|*NAME=Firewall: Virtual IP Address: Edit page
48
##|*DESCR=Allow access to the 'Firewall: Virtual IP Address: Edit' page.
49
##|*MATCH=firewall_virtual_ip_edit.php*
50
##|-PRIV
51

    
52
require("guiconfig.inc");
53
require_once("filter.inc");
54
require("shaper.inc");
55

    
56
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/firewall_virtual_ip.php');
57

    
58
if (!is_array($config['virtualip']['vip'])) {
59
        $config['virtualip']['vip'] = array();
60
}
61
$a_vip = &$config['virtualip']['vip'];
62

    
63
if (is_numericint($_GET['id']))
64
	$id = $_GET['id'];
65
if (isset($_POST['id']) && is_numericint($_POST['id']))
66
	$id = $_POST['id'];
67

    
68
function return_first_two_octets($ip) {
69
	$ip_split = explode(".", $ip);
70
	return $ip_split[0] . "." . $ip_split[1];
71
}
72

    
73
function find_last_used_vhid() {
74
	global $config, $g;
75
	$vhid = 0;
76
	foreach($config['virtualip']['vip'] as $vip) {
77
		if($vip['vhid'] > $vhid) 
78
			$vhid = $vip['vhid'];
79
	}
80
	return $vhid;
81
}
82

    
83
if (isset($id) && $a_vip[$id]) {
84
	$pconfig['mode'] = $a_vip[$id]['mode'];
85
	$pconfig['vhid'] = $a_vip[$id]['vhid'];
86
	$pconfig['advskew'] = $a_vip[$id]['advskew'];
87
	$pconfig['advbase'] = $a_vip[$id]['advbase'];
88
	$pconfig['password'] = $a_vip[$id]['password'];
89
	$pconfig['range'] = $a_vip[$id]['range'];
90
	$pconfig['subnet'] = $a_vip[$id]['subnet'];
91
	$pconfig['subnet_bits'] = $a_vip[$id]['subnet_bits'];
92
	$pconfig['noexpand'] = $a_vip[$id]['noexpand'];
93
	$pconfig['descr'] = $a_vip[$id]['descr'];
94
	$pconfig['type'] = $a_vip[$id]['type'];
95
	$pconfig['interface'] = $a_vip[$id]['interface'];
96
} else {
97
	$lastvhid = find_last_used_vhid();
98
	$lastvhid++;
99
	$pconfig['vhid'] = $lastvhid;
100
}
101

    
102
if ($_POST) {
103
	unset($input_errors);
104
	$pconfig = $_POST;
105

    
106
	/* input validation */
107
	$reqdfields = explode(" ", "mode");
108
	$reqdfieldsn = array(gettext("Type"));
109

    
110
	do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors);
111

    
112
	if ($_POST['subnet'])
113
		$_POST['subnet'] = trim($_POST['subnet']);
114

    
115
	if ($_POST['subnet']) {
116
		if (!is_ipaddr($_POST['subnet']))
117
			$input_errors[] = gettext("A valid IP address must be specified.");
118
		else {
119
			if (isset($id) && isset($a_vip[$id])) {
120
				$ignore_if = $a_vip[$id]['interface'];
121
				$ignore_mode = $a_vip[$id]['mode'];
122
			} else {
123
				$ignore_if = $_POST['interface'];
124
				$ignore_mode = $_POST['mode'];
125
			}
126

    
127
			if ($ignore_mode == 'carp')
128
				$ignore_if .= "_vip{$id}";
129

    
130
			if (is_ipaddr_configured($_POST['subnet'], $ignore_if))
131
				$input_errors[] = gettext("This IP address is being used by another interface or VIP.");
132

    
133
			unset($ignore_if, $ignore_mode);
134
		}
135
	}
136

    
137
	$natiflist = get_configured_interface_with_descr();
138
	foreach ($natiflist as $natif => $natdescr) {
139
		if ($_POST['interface'] == $natif && (empty($config['interfaces'][$natif]['ipaddr']) && empty($config['interfaces'][$natif]['ipaddrv6'])))
140
			$input_errors[] = gettext("The interface chosen for the VIP has no IPv4 or IPv6 address configured so it cannot be used as a parent for the VIP.");
141
	}
142

    
143
	/* ipalias and carp should not use network or broadcast address */
144
	if ($_POST['mode'] == "ipalias" || $_POST['mode'] == "carp") {
145
		if (is_ipaddrv4($_POST['subnet']) && $_POST['subnet_bits'] != "32") {
146
			$network_addr = gen_subnet($_POST['subnet'], $_POST['subnet_bits']);
147
			$broadcast_addr = gen_subnet_max($_POST['subnet'], $_POST['subnet_bits']);
148
		} else if (is_ipaddrv6($_POST['subnet']) && $_POST['subnet_bits'] != "128" ) {
149
			$network_addr = gen_subnetv6($_POST['subnet'], $_POST['subnet_bits']);
150
			$broadcast_addr = gen_subnetv6_max($_POST['subnet'], $_POST['subnet_bits']);
151
		}
152

    
153
		if (isset($network_addr) && $_POST['subnet'] == $network_addr)
154
			$input_errors[] = gettext("You cannot use the network address for this VIP");
155
		else if (isset($broadcast_addr) && $_POST['subnet'] == $broadcast_addr)
156
			$input_errors[] = gettext("You cannot use the broadcast address for this VIP");
157
	}
158

    
159
	/* make sure new ip is within the subnet of a valid ip
160
	 * on one of our interfaces (wan, lan optX)
161
	 */
162
	if ($_POST['mode'] == 'carp') {
163
		/* verify against reusage of vhids */
164
		$idtracker = 0;
165
		foreach($config['virtualip']['vip'] as $vip) {
166
			if($vip['vhid'] == $_POST['vhid'] && $vip['interface'] == $_POST['interface'] && $idtracker <> $id)
167
				$input_errors[] = sprintf(gettext("VHID %s is already in use on interface %s. Pick a unique number on this interface."),$_POST['vhid'], convert_friendly_interface_to_friendly_descr($_POST['interface']));
168
			$idtracker++;
169
		}
170
		if (empty($_POST['password']))
171
			$input_errors[] = gettext("You must specify a CARP password that is shared between the two VHID members.");
172

    
173
		if (is_ipaddrv4($_POST['subnet'])) {
174
			$parent_ip = get_interface_ip($_POST['interface']);
175
			$parent_sn = get_interface_subnet($_POST['interface']);
176
			$subnet = gen_subnet($parent_ip, $parent_sn);
177
		} else if (is_ipaddrv6($_POST['subnet'])) {
178
			$parent_ip = get_interface_ipv6($_POST['interface']);
179
			$parent_sn = get_interface_subnetv6($_POST['interface']);
180
			$subnet = gen_subnetv6($parent_ip, $parent_sn);
181
		}
182

    
183
		if (isset($parent_ip) && !ip_in_subnet($_POST['subnet'], "{$subnet}/{$parent_sn}") && !ip_in_interface_alias_subnet($_POST['interface'], $_POST['subnet'])) {
184
			$cannot_find = $_POST['subnet'] . "/" . $_POST['subnet_bits'] ;
185
			$input_errors[] = sprintf(gettext("Sorry, we could not locate an interface with a matching subnet for %s.  Please add an IP alias in this subnet on this interface."),$cannot_find);
186
		}
187

    
188
		if ($_POST['interface'] == "lo0")
189
			$input_errors[] = gettext("For this type of vip localhost is not allowed.");
190
	} else if ($_POST['mode'] != 'ipalias' && $_POST['interface'] == "lo0")
191
		$input_errors[] = gettext("For this type of vip localhost is not allowed.");
192

    
193
	if (!$input_errors) {
194
		$vipent = array();
195

    
196
		$vipent['mode'] = $_POST['mode'];
197
		$vipent['interface'] = $_POST['interface'];
198

    
199
		/* ProxyARP specific fields */
200
		if ($_POST['mode'] === "proxyarp") {
201
			if ($_POST['type'] == "range") {
202
				$vipent['range']['from'] = $_POST['range_from'];
203
				$vipent['range']['to'] = $_POST['range_to'];
204

    
205
			}
206
			$vipent['noexpand'] = isset($_POST['noexpand']);
207
		}
208

    
209
		/* CARP specific fields */
210
		if ($_POST['mode'] === "carp") {
211
			$vipent['vhid'] = $_POST['vhid'];
212
			$vipent['advskew'] = $_POST['advskew'];
213
			$vipent['advbase'] = $_POST['advbase'];
214
			$vipent['password'] = $_POST['password'];
215
		}
216

    
217
		/* Common fields */
218
		$vipent['descr'] = $_POST['descr'];
219
		if (isset($_POST['type']))
220
			$vipent['type'] = $_POST['type'];
221
		else
222
			$vipent['type'] = "single";
223

    
224
		if ($vipent['type'] == "single" || $vipent['type'] == "network") {
225
			if (!isset($_POST['subnet_bits'])) {
226
				$vipent['subnet_bits'] = "32";
227
			} else {
228
				$vipent['subnet_bits'] = $_POST['subnet_bits'];
229
			}
230
			$vipent['subnet'] = $_POST['subnet'];
231
		}
232

    
233
		if (!isset($id))
234
			$id = count($a_vip);
235
		if (file_exists("{$g['tmp_path']}/.firewall_virtual_ip.apply"))
236
			$toapplylist = unserialize(file_get_contents("{$g['tmp_path']}/.firewall_virtual_ip.apply"));
237
		else
238
			$toapplylist = array();
239

    
240
		$toapplylist[$id] = $a_vip[$id];
241
		if (!empty($a_vip[$id])) {
242
			/* modify all virtual IP rules with this address */
243
			for ($i = 0; isset($config['nat']['rule'][$i]); $i++) {
244
				if ($config['nat']['rule'][$i]['destination']['address'] == $a_vip[$id]['subnet'])
245
					$config['nat']['rule'][$i]['destination']['address'] = $vipent['subnet'];
246
			}
247
		}
248
		$a_vip[$id] = $vipent;
249

    
250
		if (write_config()) {
251
			mark_subsystem_dirty('vip');
252
			file_put_contents("{$g['tmp_path']}/.firewall_virtual_ip.apply", serialize($toapplylist));
253
		}
254
		header("Location: firewall_virtual_ip.php");
255
		exit;
256
	}
257
}
258

    
259
$pgtitle = array(gettext("Firewall"),gettext("Virtual IP Address"),gettext("Edit"));
260
include("head.inc");
261

    
262
?>
263

    
264
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
265
<script type="text/javascript" src="/javascript/jquery.ipv4v6ify.js"></script>
266
<?php include("fbegin.inc"); ?>
267
<script type="text/javascript">
268
//<![CDATA[
269
function get_radio_value(obj)
270
{
271
        for (i = 0; i < obj.length; i++) {
272
                if (obj[i].checked)
273
                        return obj[i].value;
274
        }
275
        return null;
276
}
277
function set_note(noteMessage){
278
	var note = document.getElementById("typenote");
279
	if (note.firstChild != null)
280
		note.removeChild(note.firstChild);
281
	if (noteMessage)
282
		note.appendChild(noteMessage);
283
}
284
function enable_change() {
285
	var carpnote     = document.createTextNode("<?=gettext("This must be the network's subnet mask. It does not specify a CIDR range.");?>");
286
	var proxyarpnote = document.createTextNode("<?=gettext("This is a CIDR block of proxy ARP addresses.");?>");
287
	var ipaliasnote  = document.createTextNode("<?=gettext("This must be the network's subnet mask. It does not specify a CIDR range.");?>");
288
	
289
	$mode = get_radio_value(document.iform.mode);
290
	
291
	document.iform.password.disabled = $mode != "carp";
292
	document.iform.vhid.disabled     = $mode != "carp";
293
	document.iform.advskew.disabled  = $mode != "carp";
294
	document.iform.advbase.disabled  = $mode != "carp";
295
	document.iform.type.disabled     = $mode in {"carp":1,"ipalias":1};
296
	
297
	if ($mode in {"carp":1,"ipalias":1})
298
		document.iform.type.selectedIndex = 0;// single-adress
299
	switch($mode)
300
	{
301
		case "carp"    : set_note(carpnote);		break;
302
		case "ipalias" : set_note(ipaliasnote);		break;
303
		case "proxyarp": set_note(proxyarpnote);	break;
304
		default: set_note(undefined);
305
	}
306
	typesel_change();
307
}
308

    
309
function typesel_change() {
310
	switch (document.iform.type.selectedIndex) {
311
	case 0: // single
312
		document.iform.subnet.disabled = 0;
313
		document.iform.subnet_bits.disabled = (get_radio_value(document.iform.mode) == "proxyarp") || (get_radio_value(document.iform.mode) == "other");
314
		document.iform.noexpand.disabled = 1;
315
		jQuery('#noexpandrow').css('display','none');
316
		break;
317
	case 1: // network
318
		document.iform.subnet.disabled = 0;
319
		document.iform.subnet_bits.disabled = 0;
320
		document.iform.noexpand.disabled = 0;
321
		jQuery('#noexpandrow').css('display','');
322
		//document.iform.range_from.disabled = 1;
323
		//document.iform.range_to.disabled = 1;
324
		break;
325
	case 2: // range
326
		document.iform.subnet.disabled = 1;
327
		document.iform.subnet_bits.disabled = 1;
328
		document.iform.noexpand.disabled = 1;
329
		jQuery('#noexpandrow').css('display','none');
330
		//document.iform.range_from.disabled = 0;
331
		//document.iform.range_to.disabled = 0;
332
		break;
333
	case 3: // IP alias
334
		document.iform.subnet.disabled = 1;
335
		document.iform.subnet_bits.disabled = 0;
336
		document.iform.noexpand.disabled = 1;
337
		jQuery('#noexpandrow').css('display','none');
338
		//document.iform.range_from.disabled = 0;
339
		//document.iform.range_to.disabled = 0;
340
		break;
341
	}
342
}
343
//]]>
344
</script>
345

    
346
<?php if ($input_errors) print_input_errors($input_errors); ?>
347
            <form action="firewall_virtual_ip_edit.php" method="post" name="iform" id="iform">
348
              <table width="100%" border="0" cellpadding="6" cellspacing="0" summary="virtual IP edit">
349
				<tr>
350
					<td colspan="2" valign="top" class="listtopic"><?=gettext("Edit Virtual IP");?></td>
351
				</tr>	
352
                <tr>
353
		  		  <td width="22%" valign="top" class="vncellreq"><?=gettext("Type");?></td>
354
                  <td width="78%" class="vtable">
355
					<input name="mode" type="radio" onclick="enable_change()" value="ipalias"
356
					<?php if ($pconfig['mode'] == "ipalias") echo "checked=\"checked\"";?> /> <?=gettext("IP Alias");?>
357
					<input name="mode" type="radio" onclick="enable_change()" value="carp"
358
					<?php if ($pconfig['mode'] == "carp") echo "checked=\"checked\"";?> /> <?=gettext("CARP"); ?>
359
                    <input name="mode" type="radio" onclick="enable_change()" value="proxyarp"
360
					<?php if ($pconfig['mode'] == "proxyarp") echo "checked=\"checked\"";?> /> <?=gettext("Proxy ARP"); ?>
361
					<input name="mode" type="radio" onclick="enable_change()" value="other"
362
					<?php if ($pconfig['mode'] == "other") echo "checked=\"checked\"";?> /> <?=gettext("Other");?>
363
				  </td>
364
				</tr>
365
				<tr>
366
				  <td width="22%" valign="top" class="vncellreq"><?=gettext("Interface");?></td>
367
				  <td width="78%" class="vtable">
368
					<select name="interface" class="formselect">
369
					<?php 
370
					$interfaces = get_configured_interface_with_descr(false, true);
371
					$interfaces['lo0'] = "Localhost";
372
					foreach ($interfaces as $iface => $ifacename): ?>
373
						<option value="<?=$iface;?>" <?php if ($iface == $pconfig['interface']) echo "selected=\"selected\""; ?>>
374
						<?=htmlspecialchars($ifacename);?>
375
						</option>
376
					  <?php endforeach; ?>
377
					</select>
378
				  </td>
379
                </tr>
380
                <tr>
381
                  <td valign="top" class="vncellreq"><?=gettext("IP Address(es)");?></td>
382
                  <td class="vtable">
383
                    <table border="0" cellspacing="0" cellpadding="0" summary="ip addresses">
384
                      <tr>
385
                        <td><?=gettext("Type:");?>&nbsp;&nbsp;</td>
386
                        <td><select name="type" class="formselect" onchange="typesel_change()">
387
                            <option value="single" <?php if ((!$pconfig['range'] && $pconfig['subnet_bits'] == 32) || (!isset($pconfig['subnet']))) echo "selected=\"selected\""; ?>>
388
                            <?=gettext("Single address");?></option>
389
                            <option value="network" <?php if (!$pconfig['range'] && $pconfig['subnet_bits'] != 32 && isset($pconfig['subnet'])) echo "selected=\"selected\""; ?>>
390
                            <?=gettext("Network");?></option>
391
                            <!-- XXX: Billm, don't let anyone choose this until NAT configuration screens are ready for it <option value="range" <?php if ($pconfig['range']) echo "selected=\"selected\""; ?>>
392
                            Range</option> -->
393
                          </select></td>
394
                      </tr>
395
                      <tr>
396
                        <td><?=gettext("Address:");?>&nbsp;&nbsp;</td>
397
                        <td><input name="subnet" type="text" class="formfld unknown ipv4v6" id="subnet" size="28" value="<?=htmlspecialchars($pconfig['subnet']);?>" />
398
                          /<select name="subnet_bits" class="formselect ipv4v6" id="select">
399
                            <?php for ($i = 128; $i >= 1; $i--): ?>
400
                            <option value="<?=$i;?>" <?php if ($i == $pconfig['subnet_bits']) echo "selected=\"selected\""; ?>>
401
                            <?=$i;?>
402
                      </option>
403
                            <?php endfor; ?>
404
                      </select> <i id="typenote"></i>
405
 						</td>
406
                      </tr>
407
                      <tr id="noexpandrow">
408
                        <td><?=gettext("Expansion:");?>&nbsp;&nbsp;</td>
409
                        <td><input name="noexpand" type="checkbox" class="formfld unknown" id="noexpand" <?php echo (isset($pconfig['noexpand'])) ? "checked=\"checked\"" : "" ; ?> />
410
                        	Disable expansion of this entry into IPs on NAT lists (e.g. 192.168.1.0/24 expands to 256 entries.)
411
                        	</td>
412
                      </tr>
413
		      <?php
414
		      /*
415
                        <tr>
416
                         <td>Range:&nbsp;&nbsp;</td>
417
                          <td><input name="range_from" type="text" class="formfld unknown" id="range_from" size="28" value="<?=htmlspecialchars($pconfig['range']['from']);?>" />
418
-
419
                          <input name="range_to" type="text" class="formfld unknown" id="range_to" size="28" value="<?=htmlspecialchars($pconfig['range']['to']);?>" />
420
                          </td>
421
			 </tr>
422
  		       */
423
			?>
424
                    </table>
425
                  </td>
426
                </tr>
427
				<tr valign="top">
428
				  <td width="22%" class="vncellreq"><?=gettext("Virtual IP Password");?></td>
429
				  <td class="vtable"><input type='password'  name='password' value="<?=htmlspecialchars($pconfig['password']);?>" />
430
					<br /><?=gettext("Enter the VHID group password.");?>
431
				  </td>
432
				</tr>
433
				<tr valign="top">
434
				  <td width="22%" class="vncellreq"><?=gettext("VHID Group");?></td>
435
				  <td class="vtable"><select id='vhid' name='vhid'>
436
                            <?php for ($i = 1; $i <= 255; $i++): ?>
437
                            <option value="<?=$i;?>" <?php if ($i == $pconfig['vhid']) echo "selected=\"selected\""; ?>>
438
                            <?=$i;?>
439
                      </option>
440
                            <?php endfor; ?>
441
                      </select>
442
					<br /><?=gettext("Enter the VHID group that the machines will share");?>
443
				  </td>
444
				</tr>
445
				<tr valign="top">
446
				  <td width="22%" class="vncellreq"><?=gettext("Advertising Frequency");?></td>
447
				  <td class="vtable">
448
					 Base: <select id='advbase' name='advbase'>
449
                            <?php for ($i = 1; $i <= 254; $i++): ?>
450
                            	<option value="<?=$i;?>" <?php if ($i == $pconfig['advbase']) echo "selected=\"selected\""; ?>>
451
                            <?=$i;?>
452
                      			</option>
453
                            <?php endfor; ?>
454
                      		</select>
455
					Skew: <select id='advskew' name='advskew'>
456
                            <?php for ($i = 0; $i <= 254; $i++): ?>
457
                            	<option value="<?=$i;?>" <?php if ($i == $pconfig['advskew']) echo "selected=\"selected\""; ?>>
458
                            <?=$i;?>
459
                      			</option>
460
                            <?php endfor; ?>
461
                      		</select>
462
				<br /><br />
463
				<?=gettext("The frequency that this machine will advertise.  0 means usually master. Otherwise the lowest combination of both values in the cluster determines the master.");?>
464
				  </td>
465
				</tr>
466
                <tr>
467
                  <td width="22%" valign="top" class="vncell"><?=gettext("Description");?></td>
468
                  <td width="78%" class="vtable">
469
                    <input name="descr" type="text" class="formfld unknown" id="descr" size="40" value="<?=htmlspecialchars($pconfig['descr']);?>" />
470
                    <br /> <span class="vexpl"><?=gettext("You may enter a description here for your reference (not parsed).");?></span></td>
471
                </tr>
472
                <tr>
473
                  <td width="22%" valign="top">&nbsp;</td>
474
                  <td width="78%">
475
                    <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" />
476
                    <input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
477
                    <?php if (isset($id) && $a_vip[$id]): ?>
478
                    <input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
479
                    <?php endif; ?>
480
                  </td>
481
                </tr>
482
				<tr>
483
				  <td colspan="4">
484
				      	<span class="vexpl">
485
				      		<span class="red">
486
							<b><?=gettext("Note:");?><br /></b>
487
				      		</span>&nbsp;&nbsp;
488
				      		<?=gettext("Proxy ARP and Other type Virtual IPs cannot be bound to by anything running on the firewall, such as IPsec, OpenVPN, etc.  Use a CARP or IP Alias type address for these cases.");?>
489
				      		<br /><br />&nbsp;&nbsp;&nbsp;<?=gettext("For more information on CARP and the above values, visit the OpenBSD ");?><a href='http://www.openbsd.org/faq/pf/carp.html'> <?=gettext("CARP FAQ"); ?></a>.
490
						</span>
491
				  </td>
492
				</tr>
493

    
494
              </table>
495
</form>
496
<script type="text/javascript">
497
//<![CDATA[
498
enable_change();
499
//]]>
500
</script>
501
<?php include("fend.inc"); ?>
502
</body>
503
</html>
(81-81/256)