Revision e082672d
Added by N0YB over 11 years ago
usr/local/www/firewall_nat_edit.php | ||
---|---|---|
539 | 539 |
"this rule should match."); ?><br/> |
540 | 540 |
<?=gettext("Hint: in most cases, you should specify"); ?> <em><?=gettext("TCP"); ?></em> <?=gettext("here."); ?></span></td> |
541 | 541 |
</tr> |
542 |
<tr id="showadvancedboxsrc" name="showadvancedboxsrc">
|
|
542 |
<tr id="showadvancedboxsrc"> |
|
543 | 543 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("Source"); ?></td> |
544 | 544 |
<td width="78%" class="vtable"> |
545 | 545 |
<input type="button" onclick="show_source()" value="<?=gettext("Advanced"); ?>" /> - <?=gettext("Show source address and port range"); ?> |
546 | 546 |
</td> |
547 | 547 |
</tr> |
548 |
<tr style="display: none;" id="srctable" name="srctable">
|
|
548 |
<tr style="display: none;" id="srctable"> |
|
549 | 549 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("Source"); ?></td> |
550 | 550 |
<td width="78%" class="vtable"> |
551 | 551 |
<input name="srcnot" type="checkbox" id="srcnot" value="yes" <?php if ($pconfig['srcnot']) echo "checked=\"checked\""; ?> /> |
... | ... | |
561 | 561 |
<select name="srctype" class="formselect" onchange="typesel_change()"> |
562 | 562 |
<?php |
563 | 563 |
$sel = is_specialnet($pconfig['src']); ?> |
564 |
<option value="any" <?php if ($pconfig['src'] == "any") { echo "selected=\"selected\""; } ?>><?=gettext("any"); ?></option> |
|
565 |
<option value="single" <?php if (($pconfig['srcmask'] == 32) && !$sel) { echo "selected=\"selected\""; $sel = 1; } ?>><?=gettext("Single host or alias"); ?></option> |
|
566 |
<option value="network" <?php if (!$sel) echo "selected=\"selected\""; ?>><?=gettext("Network"); ?></option> |
|
564 |
<option value="any" <?php if ($pconfig['src'] == "any") { echo " selected=\"selected\""; } ?>><?=gettext("any"); ?></option>
|
|
565 |
<option value="single" <?php if (($pconfig['srcmask'] == 32) && !$sel) { echo " selected=\"selected\""; $sel = 1; } ?>><?=gettext("Single host or alias"); ?></option>
|
|
566 |
<option value="network" <?php if (!$sel) echo " selected=\"selected\""; ?>><?=gettext("Network"); ?></option>
|
|
567 | 567 |
<?php if(have_ruleint_access("pptp")): ?> |
568 |
<option value="pptp" <?php if ($pconfig['src'] == "pptp") { echo "selected=\"selected\""; } ?>><?=gettext("PPTP clients"); ?></option> |
|
568 |
<option value="pptp" <?php if ($pconfig['src'] == "pptp") { echo " selected=\"selected\""; } ?>><?=gettext("PPTP clients"); ?></option>
|
|
569 | 569 |
<?php endif; ?> |
570 | 570 |
<?php if(have_ruleint_access("pppoe")): ?> |
571 |
<option value="pppoe" <?php if ($pconfig['src'] == "pppoe") { echo "selected=\"selected\""; } ?>><?=gettext("PPPoE clients"); ?></option> |
|
571 |
<option value="pppoe" <?php if ($pconfig['src'] == "pppoe") { echo " selected=\"selected\""; } ?>><?=gettext("PPPoE clients"); ?></option>
|
|
572 | 572 |
<?php endif; ?> |
573 | 573 |
<?php if(have_ruleint_access("l2tp")): ?> |
574 |
<option value="l2tp" <?php if ($pconfig['src'] == "l2tp") { echo "selected=\"selected\""; } ?>><?=gettext("L2TP clients"); ?></option> |
|
574 |
<option value="l2tp" <?php if ($pconfig['src'] == "l2tp") { echo " selected=\"selected\""; } ?>><?=gettext("L2TP clients"); ?></option>
|
|
575 | 575 |
<?php endif; ?> |
576 | 576 |
<?php |
577 | 577 |
foreach ($ifdisp as $ifent => $ifdesc): ?> |
578 | 578 |
<?php if(have_ruleint_access($ifent)): ?> |
579 |
<option value="<?=$ifent;?>" <?php if ($pconfig['src'] == $ifent) { echo "selected=\"selected\""; } ?>><?=htmlspecialchars($ifdesc);?> <?=gettext("net"); ?></option> |
|
580 |
<option value="<?=$ifent;?>ip"<?php if ($pconfig['src'] == $ifent . "ip") { echo "selected=\"selected\""; } ?>> |
|
579 |
<option value="<?=$ifent;?>" <?php if ($pconfig['src'] == $ifent) { echo " selected=\"selected\""; } ?>><?=htmlspecialchars($ifdesc);?> <?=gettext("net"); ?></option>
|
|
580 |
<option value="<?=$ifent;?>ip"<?php if ($pconfig['src'] == $ifent . "ip") { echo " selected=\"selected\""; } ?>>
|
|
581 | 581 |
<?=$ifdesc?> <?=gettext("address");?> |
582 | 582 |
</option> |
583 | 583 |
<?php endif; ?> |
... | ... | |
588 | 588 |
<tr> |
589 | 589 |
<td><?=gettext("Address:"); ?> </td> |
590 | 590 |
<td> |
591 |
<input autocomplete='off' name="src" type="text" class="formfldalias" id="src" size="20" value="<?php if (!is_specialnet($pconfig['src'])) echo htmlspecialchars($pconfig['src']);?>" /> /
|
|
591 |
<input style="autocomplete:off" name="src" type="text" class="formfldalias" id="src" size="20" value="<?php if (!is_specialnet($pconfig['src'])) echo htmlspecialchars($pconfig['src']);?>" /> /
|
|
592 | 592 |
<select name="srcmask" class="formselect" id="srcmask"> |
593 | 593 |
<?php for ($i = 31; $i > 0; $i--): ?> |
594 |
<option value="<?=$i;?>" <?php if ($i == $pconfig['srcmask']) echo "selected=\"selected\""; ?>><?=$i;?></option> |
|
594 |
<option value="<?=$i;?>" <?php if ($i == $pconfig['srcmask']) echo " selected=\"selected\""; ?>><?=$i;?></option>
|
|
595 | 595 |
<?php endfor; ?> |
596 | 596 |
</select> |
597 | 597 |
</td> |
... | ... | |
599 | 599 |
</table> |
600 | 600 |
</td> |
601 | 601 |
</tr> |
602 |
<tr style="display:none" id="sprtable" name="sprtable">
|
|
602 |
<tr style="display:none" id="sprtable"> |
|
603 | 603 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("Source port range"); ?></td> |
604 | 604 |
<td width="78%" class="vtable"> |
605 | 605 |
<table border="0" cellspacing="0" cellpadding="0" summary="source port range"> |
... | ... | |
608 | 608 |
<td> |
609 | 609 |
<select name="srcbeginport" class="formselect" onchange="src_rep_change();ext_change()"> |
610 | 610 |
<option value="">(<?=gettext("other"); ?>)</option> |
611 |
<option value="any" <?php $bfound = 0; if ($pconfig['srcbeginport'] == "any") { echo "selected=\"selected\""; $bfound = 1; } ?>><?=gettext("any"); ?></option> |
|
611 |
<option value="any" <?php $bfound = 0; if ($pconfig['srcbeginport'] == "any") { echo " selected=\"selected\""; $bfound = 1; } ?>><?=gettext("any"); ?></option>
|
|
612 | 612 |
<?php foreach ($wkports as $wkport => $wkportdesc): ?> |
613 |
<option value="<?=$wkport;?>" <?php if ($wkport == $pconfig['srcbeginport']) { echo "selected=\"selected\""; $bfound = 1; } ?>><?=htmlspecialchars($wkportdesc);?></option> |
|
613 |
<option value="<?=$wkport;?>" <?php if ($wkport == $pconfig['srcbeginport']) { echo " selected=\"selected\""; $bfound = 1; } ?>><?=htmlspecialchars($wkportdesc);?></option>
|
|
614 | 614 |
<?php endforeach; ?> |
615 | 615 |
</select> |
616 |
<input autocomplete='off' class="formfldalias" name="srcbeginport_cust" id="srcbeginport_cust" type="text" size="5" value="<?php if (!$bfound && $pconfig['srcbeginport']) echo htmlspecialchars($pconfig['srcbeginport']); ?>" />
|
|
616 |
<input style="autocomplete:off" class="formfldalias" name="srcbeginport_cust" id="srcbeginport_cust" type="text" size="5" value="<?php if (!$bfound && $pconfig['srcbeginport']) echo htmlspecialchars($pconfig['srcbeginport']); ?>" />
|
|
617 | 617 |
</td> |
618 | 618 |
</tr> |
619 | 619 |
<tr> |
... | ... | |
621 | 621 |
<td> |
622 | 622 |
<select name="srcendport" class="formselect" onchange="ext_change()"> |
623 | 623 |
<option value="">(<?=gettext("other"); ?>)</option> |
624 |
<option value="any" <?php $bfound = 0; if ($pconfig['srcendport'] == "any") { echo "selected=\"selected\""; $bfound = 1; } ?>><?=gettext("any"); ?></option> |
|
624 |
<option value="any" <?php $bfound = 0; if ($pconfig['srcendport'] == "any") { echo " selected=\"selected\""; $bfound = 1; } ?>><?=gettext("any"); ?></option>
|
|
625 | 625 |
<?php foreach ($wkports as $wkport => $wkportdesc): ?> |
626 |
<option value="<?=$wkport;?>" <?php if ($wkport == $pconfig['srcendport']) { echo "selected=\"selected\""; $bfound = 1; } ?>><?=htmlspecialchars($wkportdesc);?></option> |
|
626 |
<option value="<?=$wkport;?>" <?php if ($wkport == $pconfig['srcendport']) { echo " selected=\"selected\""; $bfound = 1; } ?>><?=htmlspecialchars($wkportdesc);?></option>
|
|
627 | 627 |
<?php endforeach; ?> |
628 | 628 |
</select> |
629 |
<input autocomplete='off' class="formfldalias" name="srcendport_cust" id="srcendport_cust" type="text" size="5" value="<?php if (!$bfound && $pconfig['srcendport']) echo htmlspecialchars($pconfig['srcendport']); ?>" />
|
|
629 |
<input style="autocomplete:off" class="formfldalias" name="srcendport_cust" id="srcendport_cust" type="text" size="5" value="<?php if (!$bfound && $pconfig['srcendport']) echo htmlspecialchars($pconfig['srcendport']); ?>" />
|
|
630 | 630 |
</td> |
631 | 631 |
</tr> |
632 | 632 |
</table> |
... | ... | |
650 | 650 |
<select name="dsttype" class="formselect" onchange="typesel_change()"> |
651 | 651 |
<?php |
652 | 652 |
$sel = is_specialnet($pconfig['dst']); ?> |
653 |
<option value="any" <?php if ($pconfig['dst'] == "any") { echo "selected=\"selected\""; } ?>><?=gettext("any"); ?></option> |
|
654 |
<option value="single" <?php if (($pconfig['dstmask'] == 32) && !$sel) { echo "selected=\"selected\""; $sel = 1; } ?>><?=gettext("Single host or alias"); ?></option> |
|
655 |
<option value="network" <?php if (!$sel) echo "selected=\"selected\""; ?>><?=gettext("Network"); ?></option> |
|
653 |
<option value="any" <?php if ($pconfig['dst'] == "any") { echo " selected=\"selected\""; } ?>><?=gettext("any"); ?></option>
|
|
654 |
<option value="single" <?php if (($pconfig['dstmask'] == 32) && !$sel) { echo " selected=\"selected\""; $sel = 1; } ?>><?=gettext("Single host or alias"); ?></option>
|
|
655 |
<option value="network" <?php if (!$sel) echo " selected=\"selected\""; ?>><?=gettext("Network"); ?></option>
|
|
656 | 656 |
<?php if(have_ruleint_access("pptp")): ?> |
657 |
<option value="pptp" <?php if ($pconfig['dst'] == "pptp") { echo "selected=\"selected\""; } ?>><?=gettext("PPTP clients"); ?></option> |
|
657 |
<option value="pptp" <?php if ($pconfig['dst'] == "pptp") { echo " selected=\"selected\""; } ?>><?=gettext("PPTP clients"); ?></option>
|
|
658 | 658 |
<?php endif; ?> |
659 | 659 |
<?php if(have_ruleint_access("pppoe")): ?> |
660 |
<option value="pppoe" <?php if ($pconfig['dst'] == "pppoe") { echo "selected=\"selected\""; } ?>><?=gettext("PPPoE clients"); ?></option> |
|
660 |
<option value="pppoe" <?php if ($pconfig['dst'] == "pppoe") { echo " selected=\"selected\""; } ?>><?=gettext("PPPoE clients"); ?></option>
|
|
661 | 661 |
<?php endif; ?> |
662 | 662 |
<?php if(have_ruleint_access("l2tp")): ?> |
663 |
<option value="l2tp" <?php if ($pconfig['dst'] == "l2tp") { echo "selected=\"selected\""; } ?>><?=gettext("L2TP clients"); ?></option> |
|
663 |
<option value="l2tp" <?php if ($pconfig['dst'] == "l2tp") { echo " selected=\"selected\""; } ?>><?=gettext("L2TP clients"); ?></option>
|
|
664 | 664 |
<?php endif; ?> |
665 | 665 |
|
666 | 666 |
<?php foreach ($ifdisp as $if => $ifdesc): ?> |
667 | 667 |
<?php if(have_ruleint_access($if)): ?> |
668 |
<option value="<?=$if;?>" <?php if ($pconfig['dst'] == $if) { echo "selected=\"selected\""; } ?>><?=htmlspecialchars($ifdesc);?> <?=gettext("net"); ?></option> |
|
669 |
<option value="<?=$if;?>ip"<?php if ($pconfig['dst'] == $if . "ip") { echo "selected=\"selected\""; } ?>> |
|
668 |
<option value="<?=$if;?>" <?php if ($pconfig['dst'] == $if) { echo " selected=\"selected\""; } ?>><?=htmlspecialchars($ifdesc);?> <?=gettext("net"); ?></option>
|
|
669 |
<option value="<?=$if;?>ip"<?php if ($pconfig['dst'] == $if . "ip") { echo " selected=\"selected\""; } ?>>
|
|
670 | 670 |
<?=$ifdesc;?> <?=gettext("address");?> |
671 | 671 |
</option> |
672 | 672 |
<?php endif; ?> |
... | ... | |
683 | 683 |
for ($i = 0; $i <= $len; $i++): |
684 | 684 |
$snip = long2ip32($start+$i); |
685 | 685 |
?> |
686 |
<option value="<?=$snip;?>" <?php if ($snip == $pconfig['dst']) echo "selected=\"selected\""; ?>><?=htmlspecialchars("{$snip} ({$sn['descr']})");?></option> |
|
686 |
<option value="<?=$snip;?>" <?php if ($snip == $pconfig['dst']) echo " selected=\"selected\""; ?>><?=htmlspecialchars("{$snip} ({$sn['descr']})");?></option>
|
|
687 | 687 |
<?php endfor; |
688 | 688 |
else: |
689 | 689 |
?> |
690 |
<option value="<?=$sn['subnet'];?>" <?php if ($sn['subnet'] == $pconfig['dst']) echo "selected=\"selected\""; ?>><?=htmlspecialchars("{$sn['subnet']} ({$sn['descr']})");?></option> |
|
690 |
<option value="<?=$sn['subnet'];?>" <?php if ($sn['subnet'] == $pconfig['dst']) echo " selected=\"selected\""; ?>><?=htmlspecialchars("{$sn['subnet']} ({$sn['descr']})");?></option>
|
|
691 | 691 |
<?php endif; |
692 | 692 |
endforeach; |
693 | 693 |
endif; |
... | ... | |
698 | 698 |
<tr> |
699 | 699 |
<td><?=gettext("Address:"); ?> </td> |
700 | 700 |
<td> |
701 |
<input autocomplete='off' name="dst" type="text" class="formfldalias" id="dst" size="20" value="<?php if (!is_specialnet($pconfig['dst'])) echo htmlspecialchars($pconfig['dst']);?>" />
|
|
701 |
<input style="autocomplete:off" name="dst" type="text" class="formfldalias" id="dst" size="20" value="<?php if (!is_specialnet($pconfig['dst'])) echo htmlspecialchars($pconfig['dst']);?>" />
|
|
702 | 702 |
/ |
703 | 703 |
<select name="dstmask" class="formselect" id="dstmask"> |
704 | 704 |
<?php |
705 | 705 |
for ($i = 31; $i > 0; $i--): ?> |
706 |
<option value="<?=$i;?>" <?php if ($i == $pconfig['dstmask']) echo "selected=\"selected\""; ?>><?=$i;?></option> |
|
706 |
<option value="<?=$i;?>" <?php if ($i == $pconfig['dstmask']) echo " selected=\"selected\""; ?>><?=$i;?></option>
|
|
707 | 707 |
<?php endfor; ?> |
708 | 708 |
</select> |
709 | 709 |
</td> |
... | ... | |
711 | 711 |
</table> |
712 | 712 |
</td> |
713 | 713 |
</tr> |
714 |
<tr id="dprtr" name="dprtr">
|
|
714 |
<tr id="dprtr"> |
|
715 | 715 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("Destination port range"); ?> </td> |
716 | 716 |
<td width="78%" class="vtable"> |
717 | 717 |
<table border="0" cellspacing="0" cellpadding="0" summary="destination port range"> |
... | ... | |
722 | 722 |
<option value="">(<?=gettext("other"); ?>)</option> |
723 | 723 |
<?php $bfound = 0; |
724 | 724 |
foreach ($wkports as $wkport => $wkportdesc): ?> |
725 |
<option value="<?=$wkport;?>" <?php if ($wkport == $pconfig['dstbeginport']) { echo "selected=\"selected\""; $bfound = 1; }?>><?=htmlspecialchars($wkportdesc);?></option> |
|
725 |
<option value="<?=$wkport;?>" <?php if ($wkport == $pconfig['dstbeginport']) { echo " selected=\"selected\""; $bfound = 1; }?>><?=htmlspecialchars($wkportdesc);?></option>
|
|
726 | 726 |
<?php endforeach; ?> |
727 | 727 |
</select> |
728 |
<input autocomplete='off' class="formfldalias" name="dstbeginport_cust" id="dstbeginport_cust" type="text" size="5" value="<?php if (!$bfound && $pconfig['dstbeginport']) echo htmlspecialchars($pconfig['dstbeginport']); ?>" />
|
|
728 |
<input style="autocomplete:off" class="formfldalias" name="dstbeginport_cust" id="dstbeginport_cust" type="text" size="5" value="<?php if (!$bfound && $pconfig['dstbeginport']) echo htmlspecialchars($pconfig['dstbeginport']); ?>" />
|
|
729 | 729 |
</td> |
730 | 730 |
</tr> |
731 | 731 |
<tr> |
... | ... | |
735 | 735 |
<option value="">(<?=gettext("other"); ?>)</option> |
736 | 736 |
<?php $bfound = 0; |
737 | 737 |
foreach ($wkports as $wkport => $wkportdesc): ?> |
738 |
<option value="<?=$wkport;?>" <?php if ($wkport == $pconfig['dstendport']) { echo "selected=\"selected\""; $bfound = 1; } ?>><?=htmlspecialchars($wkportdesc);?></option> |
|
738 |
<option value="<?=$wkport;?>" <?php if ($wkport == $pconfig['dstendport']) { echo " selected=\"selected\""; $bfound = 1; } ?>><?=htmlspecialchars($wkportdesc);?></option>
|
|
739 | 739 |
<?php endforeach; ?> |
740 | 740 |
</select> |
741 |
<input autocomplete='off' class="formfldalias" name="dstendport_cust" id="dstendport_cust" type="text" size="5" value="<?php if (!$bfound && $pconfig['dstendport']) echo htmlspecialchars($pconfig['dstendport']); ?>" />
|
|
741 |
<input style="autocomplete:off" class="formfldalias" name="dstendport_cust" id="dstendport_cust" type="text" size="5" value="<?php if (!$bfound && $pconfig['dstendport']) echo htmlspecialchars($pconfig['dstendport']); ?>" />
|
|
742 | 742 |
</td> |
743 | 743 |
</tr> |
744 | 744 |
</table> |
... | ... | |
750 | 750 |
</span> |
751 | 751 |
</td> |
752 | 752 |
</tr> |
753 |
<tr name="localiptable" id="localiptable">
|
|
753 |
<tr id="localiptable"> |
|
754 | 754 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("Redirect target IP"); ?></td> |
755 | 755 |
<td width="78%" class="vtable"> |
756 |
<input autocomplete='off' name="localip" type="text" class="formfldalias" id="localip" size="20" value="<?=htmlspecialchars($pconfig['localip']);?>" />
|
|
756 |
<input style="autocomplete:off" name="localip" type="text" class="formfldalias" id="localip" size="20" value="<?=htmlspecialchars($pconfig['localip']);?>" />
|
|
757 | 757 |
<br/> <span class="vexpl"><?=gettext("Enter the internal IP address of " . |
758 | 758 |
"the server on which you want to map the ports."); ?><br/> |
759 | 759 |
<?=gettext("e.g."); ?> <em>192.168.1.12</em></span></td> |
760 | 760 |
</tr> |
761 |
<tr name="lprtr" id="lprtr">
|
|
761 |
<tr id="lprtr"> |
|
762 | 762 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("Redirect target port"); ?></td> |
763 | 763 |
<td width="78%" class="vtable"> |
764 | 764 |
<select name="localbeginport" id="localbeginport" class="formselect" onchange="ext_change();check_for_aliases();"> |
765 | 765 |
<option value="">(<?=gettext("other"); ?>)</option> |
766 | 766 |
<?php $bfound = 0; foreach ($wkports as $wkport => $wkportdesc): ?> |
767 | 767 |
<option value="<?=$wkport;?>" <?php if ($wkport == $pconfig['localbeginport']) { |
768 |
echo "selected=\"selected\""; |
|
768 |
echo " selected=\"selected\"";
|
|
769 | 769 |
$bfound = 1; |
770 | 770 |
}?>> |
771 | 771 |
<?=htmlspecialchars($wkportdesc);?> |
772 | 772 |
</option> |
773 | 773 |
<?php endforeach; ?> |
774 |
</select> <input onchange="check_for_aliases();" autocomplete='off' class="formfldalias" name="localbeginport_cust" id="localbeginport_cust" type="text" size="5" value="<?php if (!$bfound) echo htmlspecialchars($pconfig['localbeginport']); ?>" />
|
|
774 |
</select> <input onchange="check_for_aliases();" style="autocomplete:off" class="formfldalias" name="localbeginport_cust" id="localbeginport_cust" type="text" size="5" value="<?php if (!$bfound) echo htmlspecialchars($pconfig['localbeginport']); ?>" />
|
|
775 | 775 |
<br/> |
776 | 776 |
<span class="vexpl"><?=gettext("Specify the port on the machine with the " . |
777 | 777 |
"IP address entered above. In case of a port range, specify " . |
... | ... | |
797 | 797 |
<td width="22%" valign="top" class="vncell"><?=gettext("NAT reflection"); ?></td> |
798 | 798 |
<td width="78%" class="vtable"> |
799 | 799 |
<select name="natreflection" class="formselect"> |
800 |
<option value="default" <?php if ($pconfig['natreflection'] != "enable" && $pconfig['natreflection'] != "purenat" && $pconfig['natreflection'] != "disable") echo "selected=\"selected\""; ?>><?=gettext("Use system default"); ?></option> |
|
801 |
<option value="enable" <?php if ($pconfig['natreflection'] == "enable") echo "selected=\"selected\""; ?>><?=gettext("Enable (NAT + Proxy)"); ?></option> |
|
802 |
<option value="purenat" <?php if ($pconfig['natreflection'] == "purenat") echo "selected=\"selected\""; ?>><?=gettext("Enable (Pure NAT)"); ?></option> |
|
803 |
<option value="disable" <?php if ($pconfig['natreflection'] == "disable") echo "selected=\"selected\""; ?>><?=gettext("Disable"); ?></option> |
|
800 |
<option value="default" <?php if ($pconfig['natreflection'] != "enable" && $pconfig['natreflection'] != "purenat" && $pconfig['natreflection'] != "disable") echo " selected=\"selected\""; ?>><?=gettext("Use system default"); ?></option>
|
|
801 |
<option value="enable" <?php if ($pconfig['natreflection'] == "enable") echo " selected=\"selected\""; ?>><?=gettext("Enable (NAT + Proxy)"); ?></option>
|
|
802 |
<option value="purenat" <?php if ($pconfig['natreflection'] == "purenat") echo " selected=\"selected\""; ?>><?=gettext("Enable (Pure NAT)"); ?></option>
|
|
803 |
<option value="disable" <?php if ($pconfig['natreflection'] == "disable") echo " selected=\"selected\""; ?>><?=gettext("Disable"); ?></option>
|
|
804 | 804 |
</select> |
805 | 805 |
</td> |
806 | 806 |
</tr> |
807 | 807 |
<?php if (isset($id) && $a_nat[$id] && !isset($_GET['dup'])): ?> |
808 |
<tr name="assoctable" id="assoctable">
|
|
808 |
<tr id="assoctable"> |
|
809 | 809 |
<td width="22%" valign="top" class="vncell"><?=gettext("Filter rule association"); ?></td> |
810 | 810 |
<td width="78%" class="vtable"> |
811 | 811 |
<select name="associated-rule-id"> |
... | ... | |
836 | 836 |
</tr> |
837 | 837 |
<?php endif; ?> |
838 | 838 |
<?php if ((!(isset($id) && $a_nat[$id])) || (isset($_GET['dup']))): ?> |
839 |
<tr name="assoctable" id="assoctable">
|
|
839 |
<tr id="assoctable"> |
|
840 | 840 |
<td width="22%" valign="top" class="vncell"><?=gettext("Filter rule association"); ?></td> |
841 | 841 |
<td width="78%" class="vtable"> |
842 | 842 |
<select name="filter-rule-association" id="filter-rule-association"> |
... | ... | |
897 | 897 |
</table> |
898 | 898 |
</form> |
899 | 899 |
<script type="text/javascript"> |
900 |
//<![CDATA[ |
|
901 |
var autocomplete_off = ['src', 'srcbeginport_cust', 'srcendport_cust', 'dst', 'dstbeginport_cust', 'dstendport_cust', 'localip', 'localbeginport_cust']; |
|
902 |
for (var i = 0; i < autocomplete_off.length; i++) { |
|
903 |
var node = document.getElementById(autocomplete_off[i]); |
|
904 |
node.setAttribute("autocomplete",node.style.autocomplete); |
|
905 |
} |
|
906 |
//]]> |
|
907 |
</script> |
|
908 |
<script type="text/javascript"> |
|
900 | 909 |
//<![CDATA[ |
901 | 910 |
ext_change(); |
902 | 911 |
dst_change(document.iform.interface.value,'<?=htmlspecialchars($pconfig['interface'])?>','<?=htmlspecialchars($pconfig['dst'])?>'); |
Also available in: Unified diff
XHTML Compliance
Firewall - NAT - Port Forward - Edit