aggiunta gestione regole firewall in uscita
This commit is contained in:
@@ -10,6 +10,7 @@ if (isset($_POST['nome'])) {
|
||||
$int_port = $_POST['int_port'];
|
||||
$ext_id = $_POST['ext_id'];
|
||||
$ext_port = $_POST['ext_port'];
|
||||
$proto = $_POST['proto'];
|
||||
|
||||
$query = " INSERT INTO
|
||||
firewall_versoesterno
|
||||
@@ -19,6 +20,7 @@ if (isset($_POST['nome'])) {
|
||||
int_port = $int_port,
|
||||
id_firewall_macchine_ext = $ext_id,
|
||||
ext_port = $ext_port,
|
||||
proto = $proto,
|
||||
data = NOW(),
|
||||
attivo = 1
|
||||
";
|
||||
@@ -55,7 +57,7 @@ $query = " SELECT
|
||||
";
|
||||
$res_macchine_ext = mysql_query( $query, $DB_ID );
|
||||
|
||||
$tabella = new html (0,"90%",array(3,3,2,15,2,15,5,2,15,5,2,15,0));
|
||||
$tabella = new html (0,"90%",array(3,3,2,15,2,15,5,2,15,5,2,5,2,15,0));
|
||||
?>
|
||||
<form name="" method="post">
|
||||
<tr>
|
||||
@@ -64,10 +66,12 @@ $tabella = new html (0,"90%",array(3,3,2,15,2,15,5,2,15,5,2,15,0));
|
||||
<td class="descrizione">Nome regola</td>
|
||||
<td rowspan=2 class="spaziov"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="descrizione">Macchina interna</td>
|
||||
<td class="descrizione">Porta</td>
|
||||
<td class="descrizione_c">Porta</td>
|
||||
<td rowspan=2 class="spaziov"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="descrizione">Macchina esterna</td>
|
||||
<td class="descrizione">Porta</td>
|
||||
<td class="descrizione_c">Porta</td>
|
||||
<td rowspan=2 class="spaziov"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="descrizione_c">Proto</td>
|
||||
<td rowspan=2 colspan=3 class="spaziov"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
|
||||
|
||||
@@ -92,6 +96,13 @@ $tabella = new html (0,"90%",array(3,3,2,15,2,15,5,2,15,5,2,15,0));
|
||||
</select>
|
||||
</td>
|
||||
<td class="colip"><input type="text" size="3" name="ext_port"></td>
|
||||
<td class="colip">
|
||||
<select name="proto">
|
||||
<option value="" selected="selected">---</option>
|
||||
<option value="tcp">TCP</option>
|
||||
<option value="udp">UDP</option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</form>
|
||||
@@ -100,6 +111,7 @@ $tabella->riga();
|
||||
$query = " SELECT
|
||||
firewall_versoesterno.id,
|
||||
firewall_versoesterno.nome,
|
||||
firewall_versoesterno.proto,
|
||||
proxy_pool.ip AS int_ip,
|
||||
proxy_pool.nome AS int_nome,
|
||||
firewall_versoesterno.int_port,
|
||||
@@ -142,10 +154,12 @@ while ($dato = mysql_fetch_array ( $res )) {
|
||||
<td rowspan=2 class="descrizione"><?php print $dato['nome'] ?></td>
|
||||
<td rowspan=2 class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="descrizione"><?php print $dato['int_nome'] ?></td>
|
||||
<td rowspan=2 class="descrizione"><?php print $dato['int_port'] ?></td>
|
||||
<td rowspan=2 class="descrizione_c"><?php print $dato['int_port'] ?></td>
|
||||
<td rowspan=2 class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="descrizione"><?php print $dato['ext_nome'] ?></td>
|
||||
<td rowspan=2 class="descrizione"><?php print $dato['ext_port'] ?></td>
|
||||
<td rowspan=2 class="descrizione_c"><?php print $dato['ext_port'] ?></td>
|
||||
<td rowspan=2 class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td rowspan=2 class="descrizione_c"><?php print $dato['proto'] ?></td>
|
||||
<td rowspan=2 class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td rowspan=2 class="descrizione"><?php print $dato['data'] ?></td>
|
||||
<td rowspan=2 class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
|
||||
Reference in New Issue
Block a user