}
    }
}
$pgtitle = array(gettext("System"), gettext("Advanced"), gettext("System Tunables"));
if ($act == "edit") {
    $pgtitle[] = gettext('Edit');
}
include "head.inc";
if ($input_errors) {
    print_input_errors($input_errors);
}
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('sysctl') && $act != "edit") {
    print_apply_box(gettext("The firewall tunables have changed.") . "<br />" . gettext("The changes must be applied for them to take effect."));
}
$tab_array = array();
$tab_array[] = array(gettext("Admin Access"), false, "system_advanced_admin.php");
$tab_array[] = array(htmlspecialchars(gettext("Firewall & NAT")), false, "system_advanced_firewall.php");
$tab_array[] = array(gettext("Networking"), false, "system_advanced_network.php");
$tab_array[] = array(gettext("Miscellaneous"), false, "system_advanced_misc.php");
$tab_array[] = array(gettext("System Tunables"), true, "system_advanced_sysctl.php");
$tab_array[] = array(gettext("Notifications"), false, "system_advanced_notifications.php");
display_top_tabs($tab_array);
if ($act != "edit") {
    ?>
<div class="panel panel-default">
	<div class="panel-heading">
		<h2 class="panel-title"><?php 
    echo gettext('System Tunables');
Exemplo n.º 2
0
            }
            if (write_config(gettext("Firewall: NAT: Port forward, enable/disable NAT rule"))) {
                mark_subsystem_dirty('natconf');
            }
            header("Location: firewall_nat.php");
            exit;
        }
    }
}
$pgtitle = array(gettext("Firewall"), gettext("NAT"), gettext("Port Forward"));
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('natconf')) {
    print_apply_box(gettext('The NAT configuration has been changed.') . '<br />' . gettext('The changes must be applied for them to take effect.'));
}
$tab_array = array();
$tab_array[] = array(gettext("Port Forward"), true, "firewall_nat.php");
$tab_array[] = array(gettext("1:1"), false, "firewall_nat_1to1.php");
$tab_array[] = array(gettext("Outbound"), false, "firewall_nat_out.php");
$tab_array[] = array(gettext("NPt"), false, "firewall_nat_npt.php");
display_top_tabs($tab_array);
$columns_in_table = 13;
?>

<form action="firewall_nat.php" method="post" name="iform">
	<div class="panel panel-default">
		<div class="panel-heading"><h2 class="panel-title"><?php 
echo gettext('Rules');
?>
Exemplo n.º 3
0
{
    global $a_gateways, $if;
    $list = array("none" => gettext("None"));
    foreach ($a_gateways as $gateway) {
        if ($gateway['interface'] == $if && is_ipaddrv6($gateway['gateway'])) {
            $list[$gateway['name']] = $gateway['name'] . " - " . $gateway['gateway'];
        }
    }
    return $list;
}
include "head.inc";
if ($input_errors) {
    print_input_errors($input_errors);
}
if (is_subsystem_dirty('interfaces')) {
    print_apply_box(sprintf(gettext("The %s configuration has been changed."), $wancfg['descr']) . "<br />" . gettext("You must apply the changes in order for them to take effect. Don't forget to adjust the DHCP Server range if needed after applying."));
}
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
$form = new Form(new Form_Button('Submit', gettext("Save")));
$section = new Form_Section('General configuration');
$section->addInput(new Form_Checkbox('enable', 'Enable', 'Enable interface', $pconfig['enable'], 'yes'));
$section->addInput(new Form_Input('descr', 'Description', 'text', $pconfig['descr']))->setHelp('Enter a description (name) for the interface here.');
$section->addInput(new Form_Select('type', 'IPv4 Configuration Type', $pconfig['type'], $types4));
$section->addInput(new Form_Select('type6', 'IPv6 Configuration Type', $pconfig['type6'], $types6));
$macaddress = new Form_Input('spoofmac', 'MAC Address', 'text', $pconfig['spoofmac'], ['placeholder' => 'xx:xx:xx:xx:xx:xx']);
$btnmymac = new Form_Button('btnmymac', 'Copy My MAC');
$btnmymac->removeClass('btn-primary')->addClass('btn-success btn-sm');
$group = new Form_Group('MAC controls');
$group->add($macaddress);
        $uniqid = uniqid("{$cpzone}_mac");
        file_put_contents("{$g['tmp_path']}/{$uniqid}_tmp", $rules);
        mwexec("/sbin/ipfw -x {$cpzoneid} -q {$g['tmp_path']}/{$uniqid}_tmp");
        @unlink("{$g['tmp_path']}/{$uniqid}_tmp");
        unset($a_passthrumacs[$_GET['id']]);
        write_config();
        header("Location: services_captiveportal_mac.php?zone={$cpzone}");
        exit;
    }
}
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('passthrumac')) {
    print_apply_box(gettext("The Captive Portal MAC address configuration has been changed.") . "<br />" . gettext("The changes must be applied for them to take effect."));
}
$tab_array = array();
$tab_array[] = array(gettext("Configuration"), false, "services_captiveportal.php?zone={$cpzone}");
$tab_array[] = array(gettext("MACs"), true, "services_captiveportal_mac.php?zone={$cpzone}");
$tab_array[] = array(gettext("Allowed IP Addresses"), false, "services_captiveportal_ip.php?zone={$cpzone}");
$tab_array[] = array(gettext("Allowed Hostnames"), false, "services_captiveportal_hostname.php?zone={$cpzone}");
$tab_array[] = array(gettext("Vouchers"), false, "services_captiveportal_vouchers.php?zone={$cpzone}");
$tab_array[] = array(gettext("File Manager"), false, "services_captiveportal_filemanager.php?zone={$cpzone}");
display_top_tabs($tab_array, true);
?>
<div class="table-responsive">
	<table class="table table-hover table-striped table-condensed table-rowdblclickedit">
		<thead>
			<tr>
				<th><?php 
Exemplo n.º 5
0
            }
            if (write_config(gettext("Firewall: NAT: 1:1, enable/disable NAT rule"))) {
                mark_subsystem_dirty('natconf');
            }
            header("Location: firewall_nat_1to1.php");
            exit;
        }
    }
}
$pgtitle = array(gettext("Firewall"), gettext("NAT"), gettext("1:1"));
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('natconf')) {
    print_apply_box(gettext('The NAT configuration has been changed.') . '<br />' . gettext('You must apply the changes in order for them to take effect.'));
}
$tab_array = array();
$tab_array[] = array(gettext("Port Forward"), false, "firewall_nat.php");
$tab_array[] = array(gettext("1:1"), true, "firewall_nat_1to1.php");
$tab_array[] = array(gettext("Outbound"), false, "firewall_nat_out.php");
$tab_array[] = array(gettext("NPt"), false, "firewall_nat_npt.php");
display_top_tabs($tab_array);
?>
<form action="firewall_nat_1to1.php" method="post">
	<div class="panel panel-default">
		<div class="panel-heading"><h2 class="panel-title"><?php 
echo gettext("NAT 1:1 Mappings");
?>
</h2></div>
		<div id="mainarea" class="table-responsive panel-body">
        if (isset($config['voucher'][$cpzone])) {
            unset($config['voucher'][$cpzone]);
        }
        write_config();
    }
    header("Location: services_captiveportal_zones.php");
    exit;
}
$pgtitle = array(gettext("Services"), gettext("Captive Portal"), gettext("Zones"));
$shortcut_section = "captiveportal";
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('captiveportal')) {
    print_apply_box(gettext("The Captive Portal entry list has been changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."));
}
?>
<form action="services_captiveportal_zones.php" method="post">
	<div class="panel panel-default">
	<div class="panel-heading"><h2 class="panel-title"><?php 
echo gettext('Captive Portal Zones');
?>
</h2></div>
		<div class="panel-body table-responsive">
			<table class="table table-striped table-hover">
				<thead>
					<tr>
						<th><?php 
echo gettext('Zone');
?>
Exemplo n.º 7
0
        unset($a_secret[$_GET['id']]);
        write_config();
        mark_subsystem_dirty('l2tpusers');
        pfSenseHeader("vpn_l2tp_users.php");
        exit;
    }
}
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (isset($config['l2tp']['radius']['enable'])) {
    print_info_box(gettext("RADIUS is enabled. The local user database will not be used."));
}
if (is_subsystem_dirty('l2tpusers')) {
    print_apply_box(gettext("The L2TP user list has been modified.") . "<br />" . gettext("The changes must be applied for them to take effect") . ".<br /><b>" . gettext("Warning: this will terminate all current L2TP sessions!") . "</b>");
}
$tab_array = array();
$tab_array[] = array(gettext("Configuration"), false, "vpn_l2tp.php");
$tab_array[] = array(gettext("Users"), true, "vpn_l2tp_users.php");
display_top_tabs($tab_array);
?>
<div class="panel panel-default">
	<div class="panel-heading"><h2 class="panel-title"><?php 
echo gettext('L2TP Users');
?>
</h2></div>
	<div class="panel-body">
		<div class="table-responsive">
			<table class="table table-striped table-hover">
				<thead>
        $uniqid = uniqid("{$cpzone}_mac");
        file_put_contents("{$g['tmp_path']}/{$uniqid}_tmp", $rules);
        mwexec("/sbin/ipfw -x {$cpzoneid} -q {$g['tmp_path']}/{$uniqid}_tmp");
        @unlink("{$g['tmp_path']}/{$uniqid}_tmp");
        unset($a_passthrumacs[$_GET['id']]);
        write_config();
        header("Location: services_captiveportal_mac.php?zone={$cpzone}");
        exit;
    }
}
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('passthrumac')) {
    print_apply_box(gettext("The captive portal MAC address configuration has been changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."));
}
$tab_array = array();
$tab_array[] = array(gettext("Configuration"), false, "services_captiveportal.php?zone={$cpzone}");
$tab_array[] = array(gettext("MACs"), true, "services_captiveportal_mac.php?zone={$cpzone}");
$tab_array[] = array(gettext("Allowed IP Addresses"), false, "services_captiveportal_ip.php?zone={$cpzone}");
$tab_array[] = array(gettext("Allowed Hostnames"), false, "services_captiveportal_hostname.php?zone={$cpzone}");
$tab_array[] = array(gettext("Vouchers"), false, "services_captiveportal_vouchers.php?zone={$cpzone}");
$tab_array[] = array(gettext("File Manager"), false, "services_captiveportal_filemanager.php?zone={$cpzone}");
display_top_tabs($tab_array, true);
?>
<div class="table-responsive">
	<table class="table table-hover table-striped table-condensed">
		<thead>
			<tr>
				<th><?php 
Exemplo n.º 9
0
                pfSenseHeader("system_advanced_sysctl.php");
                exit;
            }
        }
    }
}
$pgtitle = array(gettext("System"), gettext("Advanced"), gettext("System Tunables"));
include "head.inc";
if ($input_errors) {
    print_input_errors($input_errors);
}
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('sysctl') && $act != "edit") {
    print_apply_box(gettext("The firewall tunables have changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."));
}
$tab_array = array();
$tab_array[] = array(gettext("Admin Access"), false, "system_advanced_admin.php");
$tab_array[] = array(gettext("Firewall / NAT"), false, "system_advanced_firewall.php");
$tab_array[] = array(gettext("Networking"), false, "system_advanced_network.php");
$tab_array[] = array(gettext("Miscellaneous"), false, "system_advanced_misc.php");
$tab_array[] = array(gettext("System Tunables"), true, "system_advanced_sysctl.php");
$tab_array[] = array(gettext("Notifications"), false, "system_advanced_notifications.php");
display_top_tabs($tab_array);
if ($act != "edit") {
    ?>
<div class="panel panel-default">
	<div class="panel-heading">
		<h2 class="panel-title"><?php 
    echo gettext('System Tunables');
Exemplo n.º 10
0
}
foreach ($tab_array as $dtab) {
    if ($dtab[1]) {
        $bctab = $dtab[0];
        break;
    }
}
$pgtitle = array(gettext("Firewall"), gettext("Rules"), $bctab);
$shortcut_section = "firewall";
include "head.inc";
$nrules = 0;
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('filter')) {
    print_apply_box(gettext("The firewall rule configuration has been changed.") . "<br />" . gettext("The changes must be applied for them to take effect."));
}
display_top_tabs($tab_array);
$showantilockout = false;
$showprivate = false;
$showblockbogons = false;
if (!isset($config['system']['webgui']['noantilockout']) && (count($config['interfaces']) > 1 && $if == 'lan' || count($config['interfaces']) == 1 && $if == 'wan')) {
    $showantilockout = true;
}
if (isset($config['interfaces'][$if]['blockpriv'])) {
    $showprivate = true;
}
if (isset($config['interfaces'][$if]['blockbogons'])) {
    $showblockbogons = true;
}
/* Load the counter data of each pf rule. */
Exemplo n.º 11
0
            write_config();
            mark_subsystem_dirty('loadbalancer');
        }
    }
}
$pgtitle = array(gettext("Services"), gettext("Load Balancer"), gettext("Settings"));
$shortcut_section = "relayd";
include "head.inc";
if ($input_errors) {
    print_input_errors($input_errors);
}
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('loadbalancer')) {
    print_apply_box(gettext("The load balancer configuration has been changed.") . ' ' . gettext("You must apply the changes in order for them to take effect."));
}
/* active tabs */
$tab_array = array();
$tab_array[] = array(gettext("Pools"), false, "load_balancer_pool.php");
$tab_array[] = array(gettext("Virtual Servers"), false, "load_balancer_virtual_server.php");
$tab_array[] = array(gettext("Monitors"), false, "load_balancer_monitor.php");
$tab_array[] = array(gettext("Settings"), true, "load_balancer_setting.php");
display_top_tabs($tab_array);
$form = new Form();
$section = new Form_Section('Relayd Global Settings');
$section->addInput(new Form_Input('timeout', 'Timeout', 'text', $pconfig['timeout']))->setHelp('Set the global timeout in milliseconds for checks. Leave blank to use the default value of 1000 ms');
$section->addInput(new Form_Input('interval', 'Interval', 'text', $pconfig['interval']))->setHelp('Set the interval in seconds at which the member of a pool will be checked. Leave blank to use the default interval of 10 seconds');
$section->addInput(new Form_Input('prefork', 'Prefork', 'text', $pconfig['prefork']))->setHelp('Number of processes forked in advance by relayd. Leave blank to use the default value of 5 processes');
$form->add($section);
print $form;
Exemplo n.º 12
0
            $class = "success";
        } else {
            $applymsg = gettext("Reboot is needed. Please apply the settings in order to reboot.");
            $class = "warning";
        }
    } else {
        $savemsg = gettext("Interface mismatch detected. Please resolve the mismatch, save and then click 'Apply Changes'. The firewall will reboot afterwards.");
        $class = "warning";
    }
}
if (file_exists("/tmp/reload_interfaces")) {
    echo "<p>\n";
    print_apply_box(gettext("The interface configuration has been changed.") . "<br />" . gettext("The changes must be applied for them to take effect."));
    echo "<br /></p>\n";
} elseif ($applymsg) {
    print_apply_box($applymsg);
} elseif ($savemsg) {
    print_info_box($savemsg, $class);
}
pfSense_handle_custom_code("/usr/local/pkg/interfaces_assign/pre_input_errors");
if ($input_errors) {
    print_input_errors($input_errors);
}
$tab_array = array();
$tab_array[] = array(gettext("Interface Assignments"), true, "interfaces_assign.php");
$tab_array[] = array(gettext("Interface Groups"), false, "interfaces_groups.php");
$tab_array[] = array(gettext("Wireless"), false, "interfaces_wireless.php");
$tab_array[] = array(gettext("VLANs"), false, "interfaces_vlan.php");
$tab_array[] = array(gettext("QinQs"), false, "interfaces_qinq.php");
$tab_array[] = array(gettext("PPPs"), false, "interfaces_ppps.php");
$tab_array[] = array(gettext("GREs"), false, "interfaces_gre.php");
Exemplo n.º 13
0
        unset($a_secret[$_GET['id']]);
        write_config();
        mark_subsystem_dirty('l2tpusers');
        pfSenseHeader("vpn_l2tp_users.php");
        exit;
    }
}
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (isset($config['l2tp']['radius']['enable'])) {
    print_info_box(gettext("Warning: RADIUS is enabled. The local user database will not be used."));
}
if (is_subsystem_dirty('l2tpusers')) {
    print_apply_box(gettext("The l2tp user list has been modified.") . "<br />" . gettext("You must apply the changes in order for them to take effect") . ".<br /><b>" . gettext("Warning: this will terminate all current l2tp sessions!") . "</b>");
}
$tab_array = array();
$tab_array[] = array(gettext("Configuration"), false, "vpn_l2tp.php");
$tab_array[] = array(gettext("Users"), true, "vpn_l2tp_users.php");
display_top_tabs($tab_array);
?>
<div class="panel panel-default">
	<div class="panel-heading"><h2 class="panel-title"><?php 
echo gettext('L2TP Users');
?>
</h2></div>
	<div class="panel-body">
		<div class="table-responsive">
			<table class="table table-striped table-hover">
				<thead>
Exemplo n.º 14
0
$tab_array[] = array(gettext("URLs"), $tab == "url" ? true : false, "/firewall_aliases.php?tab=url");
$tab_array[] = array(gettext("All"), $tab == "all" ? true : false, "/firewall_aliases.php?tab=all");
foreach ($tab_array as $dtab) {
    if ($dtab[1] == true) {
        $bctab = $dtab[0];
        break;
    }
}
$pgtitle = array(gettext("Firewall"), gettext("Aliases"), $bctab);
$shortcut_section = "aliases";
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('aliases')) {
    print_apply_box(gettext("The alias list has been changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."));
}
display_top_tabs($tab_array);
?>

<div class="panel panel-default">
	<div class="panel-heading"><h2 class="panel-title"><?php 
echo sprintf(gettext('Firewall Aliases %s'), $bctab);
?>
</h2></div>
	<div class="panel-body">

<div class="table-responsive">
<table class="table table-striped table-hover table-condensed sortable-theme-bootstrap" data-sortable>
	<thead>
		<tr>
Exemplo n.º 15
0
            mwexec("/bin/rm -r {$g['varetc_path']}/pppoe" . $a_pppoes[$_GET['id']]['pppoeid']);
        }
        unset($a_pppoes[$_GET['id']]);
        write_config();
        header("Location: services_pppoe.php");
        exit;
    }
}
$pgtitle = array(gettext("Services"), gettext("PPPoE Server"));
$shortcut_section = "pppoes";
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('vpnpppoe')) {
    print_apply_box(gettext('The PPPoE entry list has been changed.') . '<br />' . gettext('The changes must be applied for them to take effect.'));
}
?>

<div class="panel panel-default">
	<div class="panel-heading"><h2 class="panel-title"><?php 
echo gettext('PPPoE Server');
?>
</h2></div>
	<div class="panel-body">
	
	<div class="table-responsive">
	<table class="table table-striped table-hover table-condensed table-rowdblclickedit">
		<thead>
			<tr>
				<th><?php 
Exemplo n.º 16
0
    if ($a_secret[$_GET['id']]) {
        unset($a_secret[$_GET['id']]);
        write_config(gettext("Deleted IPsec Pre-Shared Key"));
        mark_subsystem_dirty('ipsec');
        header("Location: vpn_ipsec_keys.php");
        exit;
    }
}
$pgtitle = array(gettext("VPN"), gettext("IPsec"), gettext("Pre-Shared Keys"));
$shortcut_section = "ipsec";
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg);
}
if (is_subsystem_dirty('ipsec')) {
    print_apply_box(gettext("The IPsec tunnel configuration has been changed.") . "<br />" . gettext("The changes must be applied for them to take effect."));
}
$tab_array = array();
$tab_array[0] = array(gettext("Tunnels"), false, "vpn_ipsec.php");
$tab_array[1] = array(gettext("Mobile Clients"), false, "vpn_ipsec_mobile.php");
$tab_array[2] = array(gettext("Pre-Shared Keys"), true, "vpn_ipsec_keys.php");
$tab_array[3] = array(gettext("Advanced Settings"), false, "vpn_ipsec_settings.php");
display_top_tabs($tab_array);
?>

<div class="panel panel-default">
	<div class="panel-heading"><h2 class="panel-title"><?php 
echo gettext('Pre-Shared Keys');
?>
</h2></div>
	<div class="panel-body">
Exemplo n.º 17
0
$tab_array[] = array(gettext("URLs"), $tab == "url" ? true : false, "/firewall_aliases.php?tab=url");
$tab_array[] = array(gettext("All"), $tab == "all" ? true : false, "/firewall_aliases.php?tab=all");
foreach ($tab_array as $dtab) {
    if ($dtab[1] == true) {
        $bctab = $dtab[0];
        break;
    }
}
$pgtitle = array(gettext("Firewall"), gettext("Aliases"), $bctab);
$shortcut_section = "aliases";
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, $class);
}
if (is_subsystem_dirty('aliases')) {
    print_apply_box(gettext("The alias list has been changed.") . "<br />" . gettext("The changes must be applied for them to take effect."));
}
display_top_tabs($tab_array);
?>

<div class="panel panel-default">
	<div class="panel-heading"><h2 class="panel-title"><?php 
echo sprintf(gettext('Firewall Aliases %s'), $bctab);
?>
</h2></div>
	<div class="panel-body">

<div class="table-responsive">
<table class="table table-striped table-hover table-condensed sortable-theme-bootstrap" data-sortable>
	<thead>
		<tr>
Exemplo n.º 18
0
    }
    $tree .= get_interface_list_to_show();
}
$tree .= "</ul>";
if ($queue) {
    print $queue->build_javascript();
}
print $newjavascript;
if ($input_errors) {
    print_input_errors($input_errors);
}
if ($savemsg) {
    print_info_box($savemsg, $class);
}
if (is_subsystem_dirty('shaper')) {
    print_apply_box(gettext("The traffic shaper configuration has been changed.") . "<br />" . gettext("The changes must be applied for them to take effect."));
}
$tab_array = array();
$tab_array[] = array(gettext("By Interface"), true, "firewall_shaper.php");
$tab_array[] = array(gettext("By Queue"), false, "firewall_shaper_queues.php");
$tab_array[] = array(gettext("Limiters"), false, "firewall_shaper_vinterface.php");
$tab_array[] = array(gettext("Wizards"), false, "firewall_shaper_wizards.php");
display_top_tabs($tab_array);
?>
<script type="text/javascript" src="./vendor/tree/tree.js"></script>

<div class="table-responsive">
	<table class="table">
		<tbody>
			<tr class="tabcont">
				<td class="col-md-1">
        if (isset($config['voucher'][$cpzone])) {
            unset($config['voucher'][$cpzone]);
        }
        write_config();
    }
    header("Location: services_captiveportal_zones.php");
    exit;
}
$pgtitle = array(gettext("Services"), gettext("Captive Portal"));
$shortcut_section = "captiveportal";
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('captiveportal')) {
    print_apply_box(gettext("The Captive Portal entry list has been changed.") . "<br />" . gettext("The changes must be applied for them to take effect."));
}
?>
<form action="services_captiveportal_zones.php" method="post">
	<div class="panel panel-default">
	<div class="panel-heading"><h2 class="panel-title"><?php 
echo gettext('Captive Portal Zones');
?>
</h2></div>
		<div class="panel-body table-responsive">
			<table class="table table-striped table-hover table-rowdblclickedit">
				<thead>
					<tr>
						<th><?php 
echo gettext('Zone');
?>
Exemplo n.º 20
0
        }
    }
    unset($interface_addresses);
    return $iflist;
}
$pgtitle = array(gettext("Services"), gettext("DNS Resolver"), gettext("General"));
$shortcut_section = "resolver";
include_once "head.inc";
if ($input_errors) {
    print_input_errors($input_errors);
}
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('unbound')) {
    print_apply_box(gettext("The DNS Resolver configuration has been changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."));
}
$tab_array = array();
$tab_array[] = array(gettext("General settings"), true, "services_unbound.php");
$tab_array[] = array(gettext("Advanced settings"), false, "services_unbound_advanced.php");
$tab_array[] = array(gettext("Access Lists"), false, "/services_unbound_acls.php");
display_top_tabs($tab_array, true);
$form = new Form();
$section = new Form_Section('General DNS Resolver Options');
$section->addInput(new Form_Checkbox('enable', 'Enable', 'Enable DNS resolver', $pconfig['enable']));
$section->addInput(new Form_Input('port', 'Listen Port', 'number', $pconfig['port'], ['placeholder' => '53']))->setHelp('The port used for responding to DNS queries. It should normally be left blank unless another service needs to bind to TCP/UDP port 53.');
$activeiflist = build_if_list($pconfig['active_interface']);
$section->addInput(new Form_Select('active_interface', 'Network Interfaces', $activeiflist['selected'], $activeiflist['options'], true))->addClass('general')->setHelp('Interface IPs used by the DNS Resolver for responding to queries from clients. If an interface has both IPv4 and IPv6 IPs, both are used. Queries to other interface IPs not selected below are discarded. ' . 'The default behavior is to respond to queries on every available IPv4 and IPv6 address.');
$outiflist = build_if_list($pconfig['outgoing_interface']);
$section->addInput(new Form_Select('outgoing_interface', 'Outgoing Network Interfaces', $outiflist['selected'], $outiflist['options'], true))->addClass('general')->setHelp('Utilize different network interface(s) that the DNS Resolver will use to send queries to authoritative servers and receive their replies. By default all interfaces are used.');
$unbound_local_zone_types = array("deny" => gettext("Deny"), "refuse" => gettext("Refuse"), "static" => gettext("Static"), "transparent" => gettext("Transparent"), "typetransparent" => gettext("Type Transparent"), "redirect" => gettext("Redirect"), "inform" => gettext("Inform"), "inform_deny" => gettext("Inform Deny"), "nodefault" => gettext("No Default"));
Exemplo n.º 21
0
if ($_GET['act'] == "del") {
    if ($a_igmpproxy[$_GET['id']]) {
        unset($a_igmpproxy[$_GET['id']]);
        write_config();
        mark_subsystem_dirty('igmpproxy');
        header("Location: services_igmpproxy.php");
        exit;
    }
}
$pgtitle = array(gettext("Services"), gettext("IGMP Proxy"));
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('igmpproxy')) {
    print_apply_box(gettext('The IGMP entry list has been changed.') . '<br />' . gettext('You must apply the changes in order for them to take effect.'));
}
?>

<form action="services_igmpproxy.php" method="post">
	<div class="panel panel-default">
		<div class="panel-heading"><h2 class="panel-title"><?php 
echo gettext('IGMP Proxy');
?>
</h2></div>
		<div class="panel-body">
			<div class="table-responsive">
				<table class="table table-striped table-hover table-condensed">
					<thead>
						<tr>
							<th><?php