Revision 1c38875e
Added by Ermal Luçi over 15 years ago
usr/local/www/firewall_nat_out_edit.php | ||
---|---|---|
431 | 431 |
<td><select name="target" class="formselect"> |
432 | 432 |
<option value=""<?php if (!$pconfig['target']) echo " selected"; ?>>Interface address</option> |
433 | 433 |
<?php if (is_array($config['virtualip']['vip'])): |
434 |
foreach ($config['virtualip']['vip'] as $sn): ?> |
|
434 |
foreach ($config['virtualip']['vip'] as $sn): |
|
435 |
if ($sn['mode'] == "proxyarp" && $sn['type'] == "network"): |
|
436 |
$baseip = ip2long($sn['subnet']) & ip2long(gen_subnet_mask($sn['subnet_bits'])); |
|
437 |
for ($i = $sn['subnet_bits']; $i <= 32; $i++): |
|
438 |
$baseip = $baseip + 1; |
|
439 |
$snip = long2ip($baseip); |
|
440 |
?> |
|
441 |
<option value="<?=$snip;?>" <?php if ($snip == $pconfig['target']) echo "selected"; ?>><?=htmlspecialchars("{$snip} ({$sn['descr']})");?></option> |
|
442 |
<?php endfor; ?> |
|
443 |
<?php else: ?> |
|
435 | 444 |
<option value="<?=$sn['subnet'];?>" <?php if ($sn['subnet'] == $pconfig['target']) echo "selected"; ?>><?=htmlspecialchars("{$sn['subnet']} ({$sn['descr']})");?></option> |
436 |
<?php endforeach; |
|
445 |
<?php endif; endforeach;
|
|
437 | 446 |
endif; |
438 | 447 |
?> |
439 | 448 |
<option value=""<?php if($pconfig['target'] == "any") echo " selected"; ?>>any</option> |
Also available in: Unified diff
Ticket #386. Add all possible proxy arp to the external ip when it is defined as network even on outbound NAT.