$savemsg=sprintf(gettext("The settings have been applied. The firewall rules are now reloading in the background.<br />You can also %s monitor %s the reload progress"),"<a href='status_filter_reload.php'>","</a>");
$savemsg=sprintf(gettext("The settings have been applied. The firewall rules are now reloading in the background.<br />You can also %s monitor %s the reload progress"),"<a href='status_filter_reload.php'>","</a>");
<?phpprint_info_box_apply(gettext("The firewall rule configuration has been changed.<br />You must apply the changes in order for them to take effect."));?>
print_info_box_apply_undo(gettext("The firewall rule configuration has been changed.<br />You must apply the changes in order for them to take effect."),"firewall_rules.php?if={$_REQUEST['if']}&dragdroporder=true&{$dragtable}");
}else{
print_info_box_apply(gettext("The firewall rule configuration has been changed.<br />You must apply the changes in order for them to take effect."));
<buttonname="del"type="submit"title="<?=gettext("delete selected rules");?>"onclick="return confirm('<?=gettext('Do you really want to delete the selected rules?');?>')"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></button>
<?phpendif;?>
<ahref="firewall_rules_edit.php?if=<?=htmlspecialchars($if);?>&after=-1"title="<?=gettext("add new rule");?>"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-plus"></span></a>
</th>
</tr>
</thead>
<tbody>
<?php// Show the anti-lockout rule if it's enabled, and we are on LAN with an if count > 1, or WAN with an if count of 1.
<spantitle="<?=gettext("move selected rules before this rule");?>"alt="move"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-arrow-left"></span></span>
<spantitle="<?=gettext("add a new rule based on this one");?>"width="17"height="17"border="0"alt="add"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-plus"></span></span>
<spantitle="<?=gettext("move selected rules before this rule");?>"alt="move"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-arrow-left"></span></span>
<spantitle="<?=gettext("add a new rule based on this one");?>"width="17"height="17"border="0"alt="add"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-plus"></span></span>
<spantitle="<?=gettext("move selected rules before this rule");?>"alt="move"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-arrow-left"></span></span>
<spantitle="<?=gettext("add a new rule based on this one");?>"width="17"height="17"border="0"alt="add"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-plus"></span></span>
<buttonname="move_<?=$i;?>_x"type="submit"title="<?=gettext("move selected rules before this rule");?>"class="btn btn-default btn-xs"value="<?=$i;?>"><spanclass="glyphicon glyphicon-arrow-left"></span></button>
<ahref="firewall_rules.php?act=del&if=<?=htmlspecialchars($if);?>&id=<?=$i;?>"title="<?=gettext("delete rule");?>"onclick="return confirm('Do you really want to delete this rule?')"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></a>
<ahref="firewall_rules_edit.php?dup=<?=$i;?>"title="<?=gettext("add a new rule based on this one");?>"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-plus"></span></a>
<?=gettext("No floating rules are currently defined.");?><br/><br/>
<?phpelse:?>
<?=gettext("No rules are currently defined for this interface");?><br/>
<?=gettext("All incoming connections on this interface will be blocked until you add pass rules.");?><br/><br/>
<?phpendif;?>
<?=gettext("Click the");?><ahref="firewall_rules_edit.php?if=<?=htmlspecialchars($if);?>"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-plus"></span></a><?=gettext(" button to add a new rule.");?></span>
</td>
</tr>
<?phpendif;?>
<trid="fr<?=$nrules;?>">
<tdclass="list"></td>
<tdclass="list"></td>
<tdclass="list"> </td>
<tdclass="list"> </td>
<tdclass="list"> </td>
<tdclass="list"> </td>
<tdclass="list"> </td>
<tdclass="list"> </td>
<tdclass="list"> </td>
<tdclass="list"> </td>
<tdclass="list"> </td>
<tdclass="list">
<?phpif($nrules):?>
<buttonname="move_<?=$i;?>_x"type="submit"value="<?=$i;?>"title="<?=gettext("move selected rules to end");?>"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-arrow-left"></span></button>
<buttonname="del_x"type="submit"title="<?=gettext("delete selected rules");?>"onclick="return confirm('<?=gettext('Do you really want to delete the selected rules?');?>')"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></button>
<ahref="firewall_rules_edit.php?if=<?=htmlspecialchars($if);?>"title="<?=gettext("add new rule");?>"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-plus"></span></a>
<ahref="#"class="act_toggle"id="toggle_<?=$i;?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("click to toggle enabled/disabled status");?>">
<aid="move_<?=$i;?>"name="move_<?=$i;?>_x"data-toggle="tooltip"data-placement="left"title="<?=gettext("move selected rules before this rule");?>"class="act_move btn btn-default btn-xs">
<ahref="firewall_rules_edit.php?id=<?=$i;?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("edit this rule");?>"class="btn btn-default btn-xs">
<spanclass="glyphicon glyphicon-pencil"></span>
</a>
<aid="del_<?=$i;?>"title="<?=gettext("delete this rule");?>"data-toggle="tooltip"class="act_delete btn btn-default btn-xs">
<spanclass="glyphicon glyphicon-remove"></span>
</a>
<ahref="firewall_rules_edit.php?dup=<?=$i;?>"class="btn btn-default btn-xs"data-toggle="tooltip"data-placement="left"title="<?=gettext("add new rule based on this one");?>">
<spanclass="glyphicon glyphicon-plus"></span>
</a>
</td>
</tr>
<?php
endif;
endforeach;
if(!$interface_has_rules):
?>
<tr>
<tdcolspan="11"align="center"valign="middle">
<spanclass="gray">
<?phpif($selected_if=="FloatingRules"):?>
<?=gettext("No floating rules are currently defined.");?><br/><br/>
<?phpelse:?>
<?=gettext("No rules are currently defined for this interface");?><br/>
<?=gettext("All incoming connections on this interface will be blocked until you add pass rules.");?><br/><br/>
<ahref="firewall_rules_edit.php?if=<?=$selected_if;?>"class="btn btn-default btn-xs"data-toggle="tooltip"data-placement="left"title="<?=gettext("add new rule");?>">
<imgsrc="./themes/<?=$g['theme'];?>/images/icons/icon_frmfld_time.png"title="<?=gettext("Schedule is currently active");?>"width="17"height="17"border="0"alt="schedule"/>
<td><ahref="firewall_schedule.php?act=del&id=<?=$i;?>"onclick="return confirm('<?=gettext('Do you really want to delete this schedule?');?>')"title="<?=gettext("delete alias");?>"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></a></td>
</tr>
</table>
</td>
</tr>
<?php$i++;endforeach;?>
</tbody>
</table>
</div>
<divclass="container-fluid">
<p><spanclass="vexpl"><spanclass="text-danger"><strong><?=gettext("Note:");?><br/></strong></span><?=gettext("Schedules act as placeholders for time ranges to be used in Firewall Rules.");?></span></p>
<a href="firewall_schedule_edit.php?id=<?=$i;?>" data-toggle="tooltip" data-placement="left" title="<?=gettext("edit this schedule");?>" class="btn btn-default btn-xs">
<spanclass="glyphicon glyphicon-pencil"></span>
</a>
<aid="del_<?=$i;?>"title="<?=gettext("delete this schedule");?>"data-toggle="tooltip"class="act_delete btn btn-default btn-xs">
<spanclass="glyphicon glyphicon-remove"></span>
</a>
<ahref="firewall_schedule.php?dup=<?=$i;?>"class="btn btn-default btn-xs"data-toggle="tooltip"data-placement="left"title="<?=gettext("add new schedule based on this one");?>">
print_info_box_np(gettext("The VIP configuration has been changed.")."<br />".gettext("You must apply the changes in order for them to take effect."));
<ahref="firewall_virtual_ip.php?act=del&tab=<?=$tab;?>&id=<?=$i;?>"class="btn btn-default"onclick="return confirm('<?=gettext("Do you really want to delete this entry?");?>')"><spanclass="glyphicon glyphicon-remove"></span></a>
</strong></span><?=gettext("The virtual IP addresses defined on this page may be used in");?><ahref="firewall_nat.php"><?=gettext("NAT");?></a><?=gettext("mappings.");?><br/>
<?=gettext("You can check the status of your CARP Virtual IPs and interfaces ");?><ahref="carp_status.php"><?=gettext("here");?></a>.</span></p>
</div>
</form>
</div>
</section>
</div>
</div>
</section>
<script type="text/javascript">
$(document).ready(function(){
// link delete buttons
$(".act_delete").click(function(){
varid=$(this).attr("id").split('_').pop(-1);
// delete single
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
title:"<?=gettext("Alias");?>",
message:"<?=gettext("Do you really want to delete this entry?");?>",
buttons:[{
label:"<?=gettext("No");?>",
action:function(dialogRef){
dialogRef.close();
}},{
label:"<?=gettext("Yes");?>",
action:function(dialogRef){
$("#id").val(id);
$("#action").val("del");
$("#iform").submit()
}
}]
});
});
// link move buttons
$(".act_move").click(function(){
varid=$(this).attr("id").split('_').pop(-1);
$("#id").val(id);
$("#action").val("move");
$("#iform").submit();
});
});
</script>
<?phpinclude("fbegin.inc");?>
<sectionclass="page-content-main">
<divclass="container-fluid">
<divclass="row">
<?php
if(isset($input_errors)&&count($input_errors)>0)
print_input_errors($input_errors);
else
if(isset($savemsg))
print_info_box($savemsg);
else
if(is_subsystem_dirty('vip'))
print_info_box_np(gettext("The VIP configuration has been changed.")."<br />".gettext("You must apply the changes in order for them to take effect."));
<aid="move_<?=$i;?>"name="move_<?=$i;?>_x"data-toggle="tooltip"data-placement="left"title="<?=gettext("move selected alias before this rule");?>"class="act_move btn btn-default btn-xs">
<ahref="firewall_virtual_ip_edit.php?id=<?=$i;?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("edit this alias");?>"class="btn btn-default btn-xs">
<spanclass="glyphicon glyphicon-pencil"></span>
</a>
<aid="del_<?=$i;?>"title="<?=gettext("delete this alias");?>"data-toggle="tooltip"class="act_delete btn btn-default btn-xs">
<spanclass="glyphicon glyphicon-remove"></span>
</a>
<ahref="firewall_virtual_ip_edit.php?dup=<?=$i;?>"class="btn btn-default btn-xs"data-toggle="tooltip"data-placement="left"title="<?=gettext("add new rule based on this one");?>">
<spanclass="glyphicon glyphicon-plus"></span>
</a>
</td>
</tr>
<?php
endif;
$i++;
endforeach;
?>
<?php?>
<tr>
<tdcolspan="5"></td>
<td>
<atype="submit"id="move_<?=$i;?>"name="move_<?=$i;?>_x"data-toggle="tooltip"data-placement="left"title="<?=gettext("move selected rules to end");?>"class="act_move btn btn-default btn-xs">
</strong></span><?=gettext("The virtual IP addresses defined on this page may be used in");?><ahref="firewall_nat.php"><?=gettext("NAT");?></a><?=gettext("mappings.");?><br/>
<?=gettext("You can check the status of your CARP Virtual IPs and interfaces ");?><ahref="carp_status.php"><?=gettext("here");?></a>.</span></p>
$input_errors[]=sprintf(gettext("VHID %s is already in use on interface %s. Pick a unique number on this interface."),$pconfig['vhid'],convert_friendly_interface_to_friendly_descr($pconfig['interface']));
}
}
if(empty($pconfig['password'])){
$input_errors[]=gettext("You must specify a CARP password that is shared between the two VHID members.");
$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);
}
if($pconfig['interface']=="lo0"){
$input_errors[]=gettext("For this type of vip localhost is not allowed.");
$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']));
$idtracker++;
}
if(empty($_POST['password']))
$input_errors[]=gettext("You must specify a CARP password that is shared between the two VHID members.");
$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);
}
if($_POST['interface']=="lo0")
$input_errors[]=gettext("For this type of vip localhost is not allowed.");
<!-- XXX: Billm, don't let anyone choose this until NAT configuration screens are ready for it <option value="range" <?phpif($pconfig['range'])echo"selected=\"selected\"";?>>
<?=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.");?>
<?=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.");?>
<br/><br/><?=gettext("For more information on CARP and the above values, visit the OpenBSD ");?><ahref='http://www.openbsd.org/faq/pf/carp.html'><?=gettext("CARP FAQ");?></a>.
<?=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.");?>
<?=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.");?>
<br/><br/>
<?=gettext("For more information on CARP and the above values, visit the OpenBSD ");?><ahref='http://www.openbsd.org/faq/pf/carp.html'><?=gettext("CARP FAQ");?></a>.