Esempio n. 1
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_info_box_np(gettext('The IGMP entry list has been changed.' . '<br />' . '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>
Esempio n. 2
0
if ($input_errors) {
    print_input_errors($input_errors);
}
?>

<form action="firewall_shaper.php" method="post" id="iform" name="iform">

<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
if (is_subsystem_dirty('shaper')) {
    ?>
<p>
<?php 
    print_info_box_np(gettext("The traffic shaper configuration has been changed.") . "<br>" . gettext("You must apply the changes in order for them to take effect."));
    ?>
<br>
<?php 
}
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr><td>
<?php 
$tab_array = array();
$tab_array[0] = array(gettext("By Interface"), true, "firewall_shaper.php");
$tab_array[1] = array(gettext("By Queue"), false, "firewall_shaper_queues.php");
$tab_array[2] = array(gettext("Limiter"), false, "firewall_shaper_vinterface.php");
$tab_array[3] = array(gettext("Layer7"), false, "firewall_shaper_layer7.php");
$tab_array[4] = array(gettext("Wizards"), false, "firewall_shaper_wizards.php");
display_top_tabs($tab_array);
Esempio n. 3
0
				<?php 
if (isset($input_errors) && count($input_errors) > 0) {
    print_input_errors($input_errors);
}
?>
				<?php 
if (isset($savemsg)) {
    print_info_box($savemsg);
}
?>
				<?php 
if (is_subsystem_dirty('staticmaps')) {
    ?>
<br/>
				<?php 
    print_info_box_np(gettext("The static mapping configuration has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));
    ?>
<br />
				<?php 
}
?>

			    <section class="col-xs-12">


					<?php 
/* active tabs */
$tab_array = array();
$tabscounter = 0;
$i = 0;
foreach ($iflist as $ifent => $ifname) {
<?php 
}
?>
<form action="haproxy_pools.php" method="post">
<?php 
if ($input_errors) {
    print_input_errors($input_errors);
}
if ($savemsg) {
    print_info_box($savemsg);
}
if (file_exists($d_haproxyconfdirty_path)) {
    ?>
<p>
<?php 
    print_info_box_np("The virtual pool configuration has been changed.<br>You must apply the changes in order for them to take effect.");
    ?>
<br>
<?php 
}
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr><td class="tabnavtbl">
  <?php 
/* active tabs */
$tab_array = array();
$tab_array[] = array("Settings", false, "haproxy_global.php");
$tab_array[] = array("Listener", false, "haproxy_listeners.php");
$tab_array[] = array("Server Pool", true, "haproxy_pools.php");
display_top_tabs($tab_array);
?>
<section class="page-content-main">
		<div class="container-fluid">
			<div class="row">

				<?php 
if (isset($savemsg)) {
    print_info_box($savemsg);
}
?>
				<?php 
if (is_subsystem_dirty('captiveportal')) {
    ?>
<p>
				<?php 
    print_info_box_np(gettext("The CaptivePortal entry list has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));
    ?>
				<?php 
}
?>

			    <section class="col-xs-12">

					<div class="content-box">

				    <form action="services_captiveportal_zones.php" method="post" name="iform" id="iform">

							<div class="table-responsive">
								<table class="table table-striped table-sort">

									<tr>
Esempio n. 6
0
 */
##|+PRIV
##|*IDENT=page-system-packagemanager
##|*NAME=System: Package Manager
##|*DESCR=Allow access to the 'System: Package Manager' page.
##|*MATCH=pkg_mgr.php*
##|-PRIV
ini_set('max_execution_time', '0');
require_once "globals.inc";
require_once "guiconfig.inc";
require_once "pkg-utils.inc";
/* if upgrade in progress, alert user */
if (is_subsystem_dirty('packagelock')) {
    $pgtitle = array(gettext("System"), gettext("Package Manager"));
    include "head.inc";
    print_info_box_np("Please wait while packages are reinstalled in the background.");
    include "foot.inc";
    exit;
}
$pkg_info = get_pkg_info();
$pgtitle = array(gettext("System"), gettext("Package Manager"), gettext("Available Packages"));
include "head.inc";
$tab_array = array();
$tab_array[] = array(gettext("Available Packages"), true, "pkg_mgr.php");
$tab_array[] = array(gettext("Installed Packages"), false, "pkg_mgr_installed.php");
display_top_tabs($tab_array);
if ($pkg_info) {
    //Check categories
    $categories = array();
    foreach ($pkg_info as $pkg_data) {
        if (isset($pkg_data['categories'][0])) {
Esempio n. 7
0
}
include "head.inc";
if (file_exists("/var/run/interface_mismatch_reboot_needed")) {
    if ($_POST) {
        if ($rebootingnow) {
            $savemsg = gettext("The system is now rebooting.  Please wait.");
        } else {
            $savemsg = gettext("Reboot is needed. Please apply the settings in order to reboot.");
        }
    } else {
        $savemsg = gettext("Interface mismatch detected.  Please resolve the mismatch and click 'Apply changes'.  The firewall will reboot afterwards.");
    }
}
if (file_exists("/tmp/reload_interfaces")) {
    echo "<p>\n";
    print_info_box_np(gettext("The interface configuration has been changed.<br />You must apply the changes in order for them to take effect."));
    echo "<br /></p>\n";
} elseif ($savemsg) {
    print_info_box($savemsg);
}
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");
Esempio n. 8
0
</head>
<body>
<?php 
include 'fbegin.inc';
?>

<form action="firewall_aliases.php" method="post">
<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
if (is_subsystem_dirty('aliases')) {
    ?>
<p>
<?php 
    print_info_box_np('Takma adlar listesi değiştirildi' . '<br>' . 'Değişikliklerin etkili olabilmesi için uygulamalısınız.', true);
}
pfSense_handle_custom_code("/usr/local/pkg/firewall_aliases/pre_table");
?>
<table border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td>
			<table class="tabcont" cellpadding="0" cellspacing="0">
				<tr>
					<td>
						<table width="100%" class="grids sortable">
							<tr>
								<td class="head">Ad</td>
								<td class="head">İçerik</td>
								<td class="head">Açıklama</td>
								<td class="head"></td>
Esempio n. 9
0
}
function domTT_title($title_msg)
{
    if (!empty($title_msg)) {
        $title_msg = preg_replace("/\\s+/", " ", $title_msg);
        $title_msg = preg_replace("/'/", "\\'", $title_msg);
        return "onmouseout=\"this.style.color = ''; domTT_mouseout(this, event);\" onmouseover=\"domTT_activate(this, event, 'content', '{$title_msg}', 'trail', true, 'delay', 0, 'fade', 'both', 'fadeMax', 93, 'delay', 300, 'styleClass', 'niceTitle');\"";
    }
}
$xml = htmlspecialchars($_GET['xml']);
if ($_POST['xml']) {
    $xml = htmlspecialchars($_POST['xml']);
}
$xml_fullpath = realpath('/usr/local/pkg/' . $xml);
if ($xml == "" || $xml_fullpath === false || substr($xml_fullpath, 0, strlen('/usr/local/pkg/')) != '/usr/local/pkg/') {
    print_info_box_np(gettext("ERROR: No valid package defined."));
    die;
} else {
    $pkg = parse_xml_config_pkg($xml_fullpath, "packagegui");
}
if ($pkg['include_file'] != "") {
    require_once $pkg['include_file'];
}
if (!isset($pkg['adddeleteeditpagefields'])) {
    $only_edit = true;
} else {
    $only_edit = false;
}
$id = $_GET['id'];
if (isset($_POST['id'])) {
    $id = htmlspecialchars($_POST['id']);
}
function build_priv_list()
{
    global $spriv_list, $a_user;
    $list = array();
    foreach ($spriv_list as $pname => $pdata) {
        if (in_array($pname, $a_user['priv'])) {
            continue;
        }
        $list[$pname] = $pdata['name'];
    }
    return $list;
}
/* if ajax is calling, give them an update message */
if (isAjax()) {
    print_info_box_np($savemsg, '', '', false, 'success');
}
include "head.inc";
if ($input_errors) {
    print_input_errors($input_errors);
}
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
$tab_array = array();
$tab_array[] = array(gettext("Users"), true, "system_usermanager.php");
$tab_array[] = array(gettext("Groups"), false, "system_groupmanager.php");
$tab_array[] = array(gettext("Settings"), false, "system_usermanager_settings.php");
$tab_array[] = array(gettext("Servers"), false, "system_authservers.php");
display_top_tabs($tab_array);
$form = new Form();
Esempio n. 11
0
<?php 
include "fbegin.inc";
?>
<form action="services_unbound_acls.php" method="post" name="iform" id="iform">
<?php 
if (!$savemsg) {
    $savemsg = "";
}
if ($input_errors) {
    print_input_errors($input_errors);
}
if ($savemsg) {
    print_info_box($savemsg);
}
if (is_subsystem_dirty("unbound")) {
    print_info_box_np(gettext("The settings for the DNS Resolver have changed. You must apply the configuration to take affect."));
}
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
 	<tr>
		<td class="tabnavtbl">
			<ul id="tabnav">
			<?php 
$tab_array = array();
$tab_array[] = array(gettext("General Settings"), false, "/services_unbound.php");
$tab_array[] = array(gettext("Advanced settings"), false, "services_unbound_advanced.php");
$tab_array[] = array(gettext("Access Lists"), true, "/services_unbound_acls.php");
display_top_tabs($tab_array, true);
?>
			</ul>
		</td>
Esempio n. 12
0
include 'fbegin.inc';
?>

<form action="system_routes.php" method="post">
<input type="hidden" name="y1" value="1">
	<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
?>
	<?php 
if (is_subsystem_dirty('staticroutes')) {
    ?>
<p>
	<?php 
    print_info_box_np("Sabit yönlendirme ayarları değiştirildi.<br>Değişikliklerin etkili olabilmesi için uygulamalısınız.", true);
    ?>
<br>
	<?php 
}
?>
<table border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td>
			<?php 
$tab_array = array();
$tab_array[0] = array("Ağ Geçitleri", false, "system_gateways.php");
$tab_array[1] = array("Yönlendirmeler", true, "system_routes.php");
$tab_array[2] = array("Gruplar", false, "system_gateway_groups.php");
display_top_tabs($tab_array);
?>
Esempio n. 13
0
    foreach ($aliaslist as $aliasip => $aliasif) {
        $serverbridge_interface[$aliasif . '|' . $aliasip] = $aliasip . " (" . get_vip_descr($aliasip) . ")";
    }
    foreach ($serverbridge_interface as $iface => $ifacename) {
        $list[$iface] = htmlspecialchars($ifacename);
    }
    return $list;
}
if (!$savemsg) {
    $savemsg = "";
}
if ($input_errors) {
    print_input_errors($input_errors);
}
if ($savemsg) {
    print_info_box_np($savemsg, 'success');
}
$tab_array = array();
$tab_array[] = array(gettext("Server"), true, "vpn_openvpn_server.php");
$tab_array[] = array(gettext("Client"), false, "vpn_openvpn_client.php");
$tab_array[] = array(gettext("Client Specific Overrides"), false, "vpn_openvpn_csc.php");
$tab_array[] = array(gettext("Wizards"), false, "wizard.php?xml=openvpn_wizard.xml");
add_package_tabs("OpenVPN", $tab_array);
display_top_tabs($tab_array);
require_once 'classes/Form.class.php';
$form = new Form();
if ($act == "new" || $act == "edit") {
    $section = new Form_Section('General Information');
    $section->addInput(new Form_checkbox('disable', 'Disabled', 'Disable this server', $pconfig['disable']))->setHelp('Set this option to disable this server without removing it from the list');
    $section->addInput(new Form_Select('mode', 'Server mode', $pconfig['mode'], build_mode_list()));
    $options = array();
<script type="text/javascript" src="/javascript/suggestions.js">
</script>

<form action="snort_preprocessors.php" method="post" enctype="multipart/form-data" name="iform" id="iform">
<input name="id" type="hidden" value="<?php 
echo $id;
?>
"/>
<input name="eng_id" id="eng_id" type="hidden" value=""/>

<?php 
if (is_subsystem_dirty('snort_preprocessors')) {
    ?>
<p>
<?php 
    print_info_box_np(gettext("A change has been made to the preprocessors configuration.") . "<br/>" . gettext("Click SAVE when finished to apply the change to the Snort configuration."));
}
?>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td>
<?php 
$tab_array = array();
$tab_array[0] = array(gettext("Snort Interfaces"), true, "/snort/snort_interfaces.php");
$tab_array[1] = array(gettext("Global Settings"), false, "/snort/snort_interfaces_global.php");
$tab_array[2] = array(gettext("Updates"), false, "/snort/snort_download_updates.php");
$tab_array[3] = array(gettext("Alerts"), false, "/snort/snort_alerts.php?instance={$id}");
$tab_array[4] = array(gettext("Blocked"), false, "/snort/snort_blocked.php");
$tab_array[5] = array(gettext("Pass Lists"), false, "/snort/snort_passlist.php");
$tab_array[6] = array(gettext("Suppress"), false, "/snort/snort_interfaces_suppress.php");
$tab_array[7] = array(gettext("IP Lists"), false, "/snort/snort_ip_list_mgmt.php");
Esempio n. 15
0
?>

<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php 
include "fbegin.inc";
if (!$pgtitle_output) {
    echo "<p class=\"pgtitle\"><?={$pgtitle}?></p>";
}
?>
<form action="snort_rules.php" method="post" name="iform" id="iform">
<?php 
if ($savemsg) {
    print_info_box($savemsg);
} else {
    if ($stopMsg) {
        print_info_box_np($message_reload);
    }
}
?>
<br>
</form>
<script type="text/javascript" language="javascript" src="row_toggle.js">
    <script src="/javascript/sorttable.js" type="text/javascript">
</script>

<script language="javascript" type="text/javascript">
<!--
function go()
{
    var agt=navigator.userAgent.toLowerCase();
    if (agt.indexOf("msie") != -1) {
Esempio n. 16
0
    THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
    INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
    AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    POSSIBILITY OF SUCH DAMAGE.
*/
require_once "guiconfig.inc";
$xml = $_REQUEST['xml'];
if ($xml == "") {
    print_info_box_np("HATA: Böyle bir sayfa yok.");
    exit;
} else {
    if (file_exists("/usr/local/pkg/" . $xml)) {
        $pkg = parse_xml_config_pkg("/usr/local/pkg/" . $xml, "packagegui");
    } else {
        echo "Dosya bulunamadı " . htmlspecialchars($xml);
        exit;
    }
}
if ($pkg['donotsave'] != "") {
    Header("Location: pkg_edit.php?xml=" . $xml);
    exit;
}
if ($pkg['include_file'] != "") {
    require_once $pkg['include_file'];
Esempio n. 17
0
            }
        }
    }
}
$actionHelp = '<span class="text-success"><strong>Deny:</strong></span> Stops queries from hosts within the netblock defined below.' . '<br />' . '<span class="text-success"><strong>Refuse:</strong></span> Stops queries from hosts within the netblock defined below, but sends a DNS rcode REFUSED error message back to the client.' . '<br />' . '<span class="text-success"><strong>Allow:</strong></span> Allow queries from hosts within the netblock defined below.' . '<br />' . '<span class="text-success"><strong>Allow Snoop:</strong></span> Allow recursive and nonrecursive access from hosts within the netblock defined below. Used for cache snooping and ideally should only be configured for your administrative host.';
$pgtitle = array(gettext("Services"), gettext("DNS Resolver"), gettext("Access Lists"));
$shortcut_section = "resolver";
include "head.inc";
if ($input_errors) {
    print_input_errors($input_errors);
}
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('unbound')) {
    print_info_box_np(gettext("The configuration of the DNS Resolver, 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"), false, "/services_unbound.php");
$tab_array[] = array(gettext("Advanced settings"), false, "services_unbound_advanced.php");
$tab_array[] = array(gettext("Access Lists"), true, "/services_unbound_acls.php");
display_top_tabs($tab_array, true);
if ($act == "new" || $act == "edit") {
    $form = new Form();
    $section = new Form_Section('New Access List');
    $section->addInput(new Form_Input('aclid', null, 'hidden', $id));
    $section->addInput(new Form_Input('act', null, 'hidden', $act));
    $section->addInput(new Form_Input('aclname', 'Access List name', 'text', $pconfig['aclname']))->setHelp('Provide an Access List name.');
    $section->addInput(new Form_Select('aclaction', 'Action', strtolower($pconfig['aclaction']), array('allow' => 'Allow', 'deny' => 'Deny', 'refuse' => 'Refuse', 'allow snoop' => 'Allow Snoop')))->setHelp($actionHelp);
    $section->addInput(new Form_Input('description', 'Description', 'text', $pconfig['description']))->setHelp('You may enter a description here for your reference.');
    $numrows = count($networkacl) - 1;
?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php 
include "fbegin.inc";
?>
<form action="haproxy_listeners.php" method="post">
<?php 
if ($input_errors) {
    print_input_errors($input_errors);
}
if ($savemsg) {
    print_info_box($savemsg);
}
$display_apply = file_exists($d_haproxyconfdirty_path) ? "" : "none";
echo "<div id='showapplysettings' style='display: {$display_apply};'>";
print_info_box_np("The haproxy configuration has been changed.<br/>You must apply the changes in order for them to take effect.");
echo "<br/></div>";
?>
<script type="text/javascript" language="javascript" src="/javascript/haproxy_geturl.js"></script>
<script language="javascript">
function toggle_on(button, image) {
	var item = document.getElementById(button);
	item.src = image;
}

function js_callback(req) {
	showapplysettings.style.display = 'block';
	if(req.content != '') {
		var itemsplit = req.content.split("|");
		buttonid = itemsplit[0];
		enabled = itemsplit[1];
Esempio n. 19
0
    $xml = htmlspecialchars($_POST['xml']);
}
if (empty($xml)) {
    $xml = "not_defined";
    print_info_box_np(sprintf(gettext("ERROR:  Could not open %s."), $xml));
    die;
} else {
    if (file_exists("{$g['www_path']}/wizards/{$xml}")) {
        $pkg = parse_xml_config_pkg("{$g['www_path']}/wizards/" . $xml, "pfsensewizard");
    } else {
        print_info_box_np(sprintf(gettext("ERROR:  Could not open %s."), $xml));
        die;
    }
}
if (!is_array($pkg)) {
    print_info_box_np(sprintf(gettext("ERROR: Could not parse %s/wizards/%s file."), $g['www_path'], $xml));
    die;
}
$title = preg_replace("/pfSense/i", $g['product_name'], $pkg['step'][$stepid]['title']);
$description = preg_replace("/pfSense/i", $g['product_name'], $pkg['step'][$stepid]['description']);
$totalsteps = $pkg['totalsteps'];
if ($pkg['includefile']) {
    require_once $pkg['includefile'];
}
if ($pkg['step'][$stepid]['includefile']) {
    require_once $pkg['step'][$stepid]['includefile'];
}
if ($pkg['step'][$stepid]['stepsubmitbeforesave']) {
    eval($pkg['step'][$stepid]['stepsubmitbeforesave']);
}
if ($_POST && !$input_errors) {
Esempio n. 20
0
                if (is_array($item)) {
                    $referenced_by = $item['descr'];
                }
                break;
            }
        }
    }
}
$pgtitle = array(gettext("Firewall"), gettext("Aliases"));
$shortcut_section = "aliases";
include "head.inc";
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('aliases')) {
    print_info_box_np(gettext("The alias list has been changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."));
}
$tab_array = array();
$tab_array[] = array(gettext("IP"), $tab == "ip" ? true : ($tab == "host" ? true : ($tab == "network" ? true : false)), "/firewall_aliases.php?tab=ip");
$tab_array[] = array(gettext("Ports"), $tab == "port" ? true : false, "/firewall_aliases.php?tab=port");
$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");
display_top_tabs($tab_array);
?>
<div class="table-responsive">
<table class="table table-striped table-hover">
	<thead>
		<tr>
			<th><?php 
echo gettext("Name");
?>
Esempio n. 21
0
    }
    unset($interface_addresses);
    return $iflist;
}
$closehead = false;
$pgtitle = array(gettext("Services"), gettext("DNS Resolver"));
$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_info_box_np(gettext("The configuration of the DNS Resolver has been changed. You must apply changes 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))->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))->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"));
Esempio n. 22
0
include "fbegin.inc";
?>
<p class="pgtitle"><?php 
echo $pgtitle;
?>
</p>
<form action="services_dnsmasq.php" method="post" name="iform" id="iform">
<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
if (file_exists($d_hostsdirty_path)) {
    ?>
<p>
<?php 
    print_info_box_np("DNS yönlendirici ayarları değiştirildi.<br>Değişiklikler uygulandıktan sonra etkinleşecektir.");
    ?>
<br>
<?php 
}
?>
	<table width="100%" border="0" cellpadding="6" cellspacing="0">
                <tr>
                  <td class="vtable"><p>
                      <input name="enable" type="checkbox" id="enable" value="yes" <?php 
if ($pconfig['enable'] == "yes") {
    echo "checked";
}
?>
 onClick="enable_change(false)">
                      <strong>DNS yönlendirmeyi aktifleştir<br>
Esempio n. 23
0
        mark_subsystem_dirty('loadbalancer');
        write_config("Updated load balancer pools via status screen.");
    }
}
?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php 
include "fbegin.inc";
?>
<form action="status_lb_pool.php" method="post">
<?php 
if (is_subsystem_dirty('loadbalancer')) {
    ?>
<br/>
<?php 
    print_info_box_np(sprintf(gettext("The load balancer configuration has been changed%sYou must apply the changes in order for them to take effect."), "<br />"));
    ?>
<br />
<?php 
}
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="status load balancer pools">
	<tr><td class="tabnavtbl">
	<?php 
/* active tabs */
$tab_array = array();
$tab_array[] = array(gettext("Pools"), true, "status_lb_pool.php");
$tab_array[] = array(gettext("Virtual Servers"), false, "status_lb_vs.php");
display_top_tabs($tab_array);
?>
	</td></tr>
        $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_info_box_np(gettext("The captive portal MAC address configuration has been changed.<br />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("MAC"), 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 
Esempio n. 25
0
			break;
	}
}
//]]>
</script>

	<section class="page-content-main">
		<div class="container-fluid">
			<div class="row">

				<?php 
if (isset($input_errors) && count($input_errors) > 0) {
    print_input_errors($input_errors);
}
if (isset($savemsg)) {
    print_info_box_np($savemsg);
}
?>

			    <section class="col-xs-12">

				<?php 
$tab_array = array();
$tab_array[] = array(gettext("Server"), true, "vpn_openvpn_server.php");
$tab_array[] = array(gettext("Client"), false, "vpn_openvpn_client.php");
$tab_array[] = array(gettext("Client Specific Overrides"), false, "vpn_openvpn_csc.php");
$tab_array[] = array(gettext("Client Export"), false, "vpn_openvpn_export.php");
$tab_array[] = array(gettext("Shared Key Export"), false, "vpn_openvpn_export_shared.php");
display_top_tabs($tab_array);
?>
Esempio n. 26
0
        }
        if (write_config()) {
            mark_subsystem_dirty('natconf');
        }
        header("Location: firewall_nat.php");
        exit;
    }
}
$closehead = false;
$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_info_box_np(gettext('The NAT configuration has been changed.') . '<br />' . gettext('You must apply the changes in order for them to take effect.') . '<br />');
}
$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);
?>

<form action="firewall_nat.php" method="post" name="iform">
	<div class="panel panel-default">
		<div class="panel-heading"><?php 
echo gettext('Rules');
?>
</div>
Esempio n. 27
0
			<div class="row">
<?php 
if (isset($savemsg)) {
    print_info_box($savemsg);
}
if (isset($config['ipsec']['enable']) && is_subsystem_dirty('ipsec')) {
    print_info_box_np(gettext("The IPsec tunnel configuration has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));
}
$ph1found = false;
foreach ($config['ipsec']['phase1'] as $ph1ent) {
    if (isset($ph1ent['mobile'])) {
        $ph1found = true;
    }
}
if (!empty($pconfig['enable']) && !$ph1found) {
    print_info_box_np(gettext("Support for IPsec Mobile clients is enabled but a Phase1 definition was not found") . ".<br />" . gettext("Please click Create to define one."), gettext("create"), gettext("Create Phase1"));
}
if (isset($input_errors) && count($input_errors) > 0) {
    print_input_errors($input_errors);
}
?>
			    <section class="col-xs-12">

<? $active_tab = "/vpn_ipsec_mobile.php";
                include('vpn_ipsec_tabs.inc');
?>
					 <div class="tab-content content-box col-xs-12">
							 <form action="vpn_ipsec_mobile.php" method="post" name="iform" id="iform">
							 <div class="table-responsive">
								<table class="table table-striped table-sort">
                    <tr>
Esempio n. 28
0
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php 
include "fbegin.inc";
?>
<form action="system_routes.php" method="post">
<script type="text/javascript" src="/javascript/row_toggle.js"></script>
<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
if (is_subsystem_dirty('staticroutes')) {
    ?>
<p>
<?php 
    print_info_box_np(sprintf(gettext("The static route configuration has been changed.%sYou must apply the changes in order for them to take effect."), "<br />"));
    ?>
<br /></p>
<?php 
}
if ($input_errors) {
    print_input_errors($input_errors);
}
?>

<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="system routes">
	<tr>
		<td>
		<?php 
$tab_array = array();
$tab_array[0] = array(gettext("Gateways"), false, "system_gateways.php");
Esempio n. 29
0
{
    global $a_gateways, $if;
    $list = array("none" => "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_info_box_np(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');
}
require_once 'classes/Form.class.php';
require_once 'classes/Modal.class.php';
$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('mac', 'MAC Address', 'text', $pconfig['mac'], ['placeholder' => 'xx:xx:xx:xx:xx:xx']);
$btnmymac = new Form_Button('btnmymac', 'Copy My MAC');
$btnmymac->removeClass('btn-primary')->addClass('btn-success btn-sm');
Esempio n. 30
0
?>

<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php 
include "fbegin.inc";
?>
	<form action="system_advanced_sysctl.php" method="post">
		<?php 
if ($input_errors) {
    print_input_errors($input_errors);
}
if ($savemsg) {
    print_info_box($savemsg);
}
if (is_subsystem_dirty('sysctl') && $act != "edit") {
    print_info_box_np(gettext("The firewall tunables have changed.  You must apply the configuration to take affect."));
}
?>
	</form>
	<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="system advanced tunables">
		<tr>
			<td>
				<?php 
$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);