Subversion Repositories ALCASAR

Rev

Rev 791 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 791 Rev 859
Line 17... Line 17...
17
  $l_title_antivir = "Antivirus de flux WEB";
17
  $l_title_antivir = "Antivirus de flux WEB";
18
  $l_antivir_on="L'antivirus de flux WEB est actuellement activé";
18
  $l_antivir_on="L'antivirus de flux WEB est actuellement activé";
19
  $l_antivir_off="L'antivirus de flux WEB est actuellement désactivé";
19
  $l_antivir_off="L'antivirus de flux WEB est actuellement désactivé";
20
  $l_switch_antivir_on="Activer l'antivirus";
20
  $l_switch_antivir_on="Activer l'antivirus";
21
  $l_switch_antivir_off="Désactiver l'antivirus";
21
  $l_switch_antivir_off="Désactiver l'antivirus";
22
  $l_title_lan_ext = "Filtrage de l'accès au LAN extérieur";
22
  $l_title_ip_block="Filtrage d'adresses IP";
23
  $l_lan_ext_on="L'accès au réseau situé entre ALCASAR et le routeur Internet (box) est actuellement autorisé";
23
  $l_ip_address="Adresses IP (ou addresse de réseau) bloquées";
24
  $l_lan_ext_off="L'accès au réseau situé entre ALCASAR et le routeur Internet (box) est actuellement interdit";
24
  $l_blocked_ip_address="Adresses IP";
25
  $l_switch_lan_ext_on="Autoriser l'accès";
25
  $l_blocked_ip_address_comment="Commentaires";
-
 
26
  $l_blocked="Bloquée";
-
 
27
  $l_ip_block_explain="Liste des adresses IP (ou adresses IP de réseaux) bloquées";
26
  $l_switch_lan_ext_off="Interdire l'accès";
28
  $l_remove="Retirer de la liste";
27
  $l_title_proto = "Filtrage de protocoles réseau";
29
  $l_title_proto = "Filtrage de protocoles réseau";
28
  $l_netfilter_on="Le filtrage de protocoles réseau est actuellement activé";
30
  $l_netfilter_on="Le filtrage de protocoles réseau est actuellement activé";
29
  $l_netfilter_off="Le filtrage de protocoles réseau est actuellement désactiv&eacute";
31
  $l_netfilter_off="Le filtrage de protocoles réseau est actuellement désactiv&eacute";
30
  $l_switch_on="Activer le filtrage";
32
  $l_switch_on="Activer le filtrage";
31
  $l_switch_off="Désactiver le filtrage";
33
  $l_switch_off="Désactiver le filtrage";
32
  $l_comment_on="&Agrave; l'exclusion du WEB (port 80), les protocoles r&eacute;seau sont interdits.<BR>Choisissez ci-dessous les protocoles que vous autorisez";
34
  $l_comment_on="&Agrave; l'exclusion du WEB (port 80), les protocoles r&eacute;seau sont interdits.<BR>Choisissez ci-dessous les protocoles que vous autorisez";
33
  $l_comment_off="(tous les protocoles réseau sont autoris&eacute;s)";
35
  $l_comment_off="(tous les protocoles réseau sont autoris&eacute;s)";
34
  $l_protocols="Protocoles autoris&eacute;s";
36
  $l_protocols="Protocoles autoris&eacute;s";
35
  $l_error_open_file="Erreur d'ouverture du fichier";
37
  $l_error_open_file="Erreur d'ouverture du fichier";
-
 
38
  $l_port="Numéro de port";
36
  $l_proto="Protocole";
39
  $l_proto="Nom du protocole";
37
  $l_enabled="Autoris&eacute;";
40
  $l_enabled="Autoris&eacute;";
38
  $l_delete="Supprimer de la liste";
-
 
39
  $l_add_to_list="Ajouter &agrave; la liste";
41
  $l_add_to_list="Ajouter &agrave; la liste";
40
  $l_save_modif="Enregistrer les modifications";
42
  $l_save_modif="Enregistrer les modifications";
41
}
43
}
42
else {
44
else {
43
  $l_title_antivir = "WEB antivirus";
45
  $l_title_antivir = "WEB antivirus";
44
  $l_antivir_on="Actually, the WEB antivirus is on";
46
  $l_antivir_on="Actually, the WEB antivirus is on";
45
  $l_antivir_off="Actually, the WEB antivirus is off";
47
  $l_antivir_off="Actually, the WEB antivirus is off";
46
  $l_switch_antivir_on="Switch the antivirus on";
48
  $l_switch_antivir_on="Switch the antivirus on";
47
  $l_switch_antivir_off="Switch the antivirus off";
49
  $l_switch_antivir_off="Switch the antivirus off";
48
  $l_title_lan_ext = "External LAN access filtering";
50
  $l_title_ip_block="IP address filter";
49
  $l_lan_ext_on="The access to the LAN located between ALCASAR and the Internet Gateway (box) is allowed";
51
  $l_ip_address="IP address (or network IP address)";
-
 
52
  $l_blocked_ip_address="IP addresses";
50
  $l_lan_ext_off="The access to the LAN located between ALCASAR and the Internet Gateway (box) is forbidden";
53
  $l_blocked_ip_address_comment="Comments";
51
  $l_switch_lan_ext_on="Allow access";
54
  $l_blocked="Blocked";
-
 
55
  $l_ip_block_explain="List of blocked IP addresses (or network IP adresses)";
52
  $l_switch_lan_ext_off="Deny access";
56
  $l_remove="Remove from list";
53
  $l_title_proto = "Network protocols filter";
57
  $l_title_proto = "Network protocols filter";
54
  $l_netfilter_on="Actually, the network protocols filter is enable";
58
  $l_netfilter_on="Actually, the network protocols filter is enable";
55
  $l_netfilter_off="Actually, the network protocols filter is disable";
59
  $l_netfilter_off="Actually, the network protocols filter is disable";
56
  $l_switch_on="Switch the Filter on";
60
  $l_switch_on="Switch the Filter on";
57
  $l_switch_off="Switch the Filter off";
61
  $l_switch_off="Switch the Filter off";
58
  $l_comment_on="(choose the authorized network protocols)";
62
  $l_comment_on="(choose the authorized network protocols)";
-
 
63
  $l_comment_on="Except for the WEB (port 80), all protocols are blocked.<BR>Choose in the list below, the protocols you want authorize";
59
  $l_comment_off="(all the network protocols are allowed for authenticated users)";
64
  $l_comment_off="(all the network protocols are allowed for authenticated users)";
60
  $l_protocols="Authorize protocols";
65
  $l_protocols="Authorize protocols";
61
  $l_error_open_file="Error opening the file";
66
  $l_error_open_file="Error opening the file";
62
  $l_proto="Protocol";
67
  $l_port="Port number";
63
  $l_enabled="Enable";
68
  $l_proto="protocol name";
64
  $l_delete="Delete from list";
69
  $l_enabled="Authorized";
65
  $l_add_to_list="Add to the list";
70
  $l_add_to_list="Add to the list";
66
  $l_save_modif="Save modifications";
71
  $l_save_modif="Save modifications";
67
}
72
}
-
 
73
/********************
-
 
74
*  TEST CONF FILES  *
-
 
75
*********************/
68
$services_list="/usr/local/etc/alcasar-services";
76
define ("SERVICES_LIST", "/usr/local/etc/alcasar-services");
69
$conf_file="/usr/local/etc/alcasar.conf";
77
define ("CONF_FILE", "/usr/local/etc/alcasar.conf");
-
 
78
define ("IP_BLOCKED", "/usr/local/etc/alcasar-ip-blocked");
-
 
79
$conf_files=array(SERVICES_LIST,CONF_FILE,IP_BLOCKED);
-
 
80
foreach ($conf_files as $file){
-
 
81
if (!file_exists($file)){
-
 
82
	exit("Requested file ".$file." isn't present");}
-
 
83
if (!is_readable($file)){
-
 
84
	exit("Can't read the file ".$file);}
-
 
85
}
-
 
86
 
70
if (isset($_POST['choix'])){$choix=$_POST['choix'];} else {$choix="";}
87
if (isset($_POST['choix'])){$choix=$_POST['choix'];} else {$choix="";}
71
switch ($choix)
88
switch ($choix)
72
{
89
{
73
case 'AV_On' :
90
case 'AV_On' :
74
	exec ("sudo /usr/local/sbin/alcasar-havp.sh -on");
91
	exec ("sudo /usr/local/sbin/alcasar-havp.sh -on");
75
	break;
92
	break;
76
case 'AV_Off' :
93
case 'AV_Off' :
77
	exec ("sudo /usr/local/sbin/alcasar-havp.sh -off");
94
	exec ("sudo /usr/local/sbin/alcasar-havp.sh -off");
78
	break;
95
	break;
79
case 'Lan_Ext_Filter_Off' :
-
 
80
	exec ("sudo /usr/local/sbin/alcasar-nf.sh -lan_ext_filter_off");
-
 
81
	break;
-
 
82
case 'Lan_Ext_Filter_On' :
-
 
83
	exec ("sudo /usr/local/sbin/alcasar-nf.sh -lan_ext_filter_on");
-
 
84
	break;
-
 
85
case 'NF_On' :
96
case 'NF_On' :
86
	exec ("sudo /usr/local/sbin/alcasar-nf.sh -on");
97
	exec ("sudo /usr/local/sbin/alcasar-nf.sh -on");
87
	break;
98
	break;
88
case 'NF_Off' :
99
case 'NF_Off' :
89
	exec ("sudo /usr/local/sbin/alcasar-nf.sh -off");
100
	exec ("sudo /usr/local/sbin/alcasar-nf.sh -off");
90
	break;
101
	break;
91
case 'new_proto' :
102
case 'new_port' :
92
	$_POST['add_proto'] = str_replace (CHR(32),"-",$_POST['add_proto']);
103
	$_POST['add_proto'] = str_replace (CHR(32),"-",$_POST['add_proto']);
93
	if ((trim($_POST['add_port']) != "80") and ($_POST['add_port'] != "") and ($_POST['add_proto'] != "") and (is_numeric($_POST['add_port'])))
104
	if ((trim($_POST['add_port']) != "80") and ($_POST['add_port'] != "") and ($_POST['add_proto'] != "") and (is_numeric($_POST['add_port'])))
94
		{
105
		{
95
		$tab=file($services_list);
106
		$tab=file(SERVICES_LIST);
96
		if ($tab)
107
		if ($tab)
97
			{
108
			{
98
			$pointeur=fopen($services_list,"r");
109
			$pointeur=fopen(SERVICES_LIST,"r");
99
			//on teste si le port n'est pas déjà présent
110
			// test if port doesn't already exist
100
			$insert = true;
111
			$insert = true;
101
			foreach ($tab as $ligne)
112
			foreach ($tab as $line)
102
				{
113
				{
103
				$proto_f=explode(" ", $ligne);
114
				$proto_f=explode(" ", $line);
104
				if (trim($_POST['add_port']) == trim($proto_f[1])) {$insert = false;}
115
				if (trim($_POST['add_port']) == trim($proto_f[1])) {$insert = false;}
105
				}
116
				}
106
			fclose($pointeur);
117
			fclose($pointeur);
107
			if ($insert == true) 
118
			if ($insert == true) 
108
				{
119
				{
109
				$line = "#" . trim($_POST['add_proto']) . " " . trim($_POST['add_port']);
120
				$line = "\n" . "#" . trim($_POST['add_proto']) . " " . trim($_POST['add_port']);
110
				$pointeur=fopen($services_list,"a");
121
				$pointeur=fopen(SERVICES_LIST,"a");
-
 
122
				fwrite ($pointeur, $line);
-
 
123
				fclose ($pointeur);
-
 
124
				exec ("sudo /usr/local/bin/alcasar-file-clean.sh");
-
 
125
				}
-
 
126
			}
-
 
127
		}
-
 
128
	break;
-
 
129
case 'new_ip' :
-
 
130
	if (trim($_POST['add_ip']) != "") 
-
 
131
		{
-
 
132
		$tab=file(IP_BLOCKED);
-
 
133
		if ($tab)
-
 
134
			{
-
 
135
			$pointeur=fopen(IP_BLOCKED,"r");
-
 
136
			// test if IP doesn't already exist
-
 
137
			$insert = true;
-
 
138
			foreach ($tab as $line)
-
 
139
				{
-
 
140
				$IP_f=explode("#", $line);
-
 
141
				if (trim($_POST['add_ip']) == trim($IP_f[0])) {$insert = false;}
-
 
142
				}
-
 
143
			fclose($pointeur);
-
 
144
			if ($insert == true) 
-
 
145
				{
-
 
146
				$line ="\n" . trim($_POST['add_ip']) . " # " . trim($_POST['add_comment']);
-
 
147
				$pointeur=fopen(IP_BLOCKED,"a");
111
				fwrite ($pointeur, $line);
148
				fwrite ($pointeur, $line);
112
				fclose ($pointeur);
149
				fclose ($pointeur);
113
				exec ("sudo /usr/local/sbin/alcasar-nf.sh -on");
150
				exec ("sudo /usr/local/bin/alcasar-file-clean.sh");
114
				}
151
				}
115
			}
152
			}
116
		else {echo "$l_error_open_file $services_list";}
-
 
117
		}
153
		}
118
	break;
154
	break;
119
case 'change' :
155
case 'change_port' :
120
	$tab=file($services_list);
156
	$tab=file(SERVICES_LIST);
121
	if ($tab)
157
	if ($tab)
122
		{
158
		{
123
//on active|désactive les protocoles
159
// authorize/block protocols
124
		$pointeur=fopen($services_list,"w+");
160
		$pointeur=fopen(SERVICES_LIST,"w+");
125
		foreach ($tab as $ligne)
161
		foreach ($tab as $ligne)
126
			{
162
			{
127
			$proto_f=explode(" ", $ligne);
163
			$proto_f=explode(" ", $ligne);
128
			$name_svc1=trim($proto_f[0],"#");
164
			$name_svc1=trim($proto_f[0],"#");
129
			$actif = False; $remove_line = false;
165
			$actif = False; $remove_line = false;
Line 155... Line 191...
155
				fwrite($pointeur,$line);
191
				fwrite($pointeur,$line);
156
				}
192
				}
157
			}
193
			}
158
		fclose($pointeur);
194
		fclose($pointeur);
159
		}
195
		}
160
	else {echo "$l_error_open_file $services_list";}
-
 
161
	exec ("sudo /usr/local/sbin/alcasar-nf.sh -on");
196
	exec ("sudo /usr/local/sbin/alcasar-nf.sh -on");
162
	break;
197
	break;
-
 
198
case 'change_ip' :
-
 
199
	$tab=file(IP_BLOCKED);
-
 
200
	if ($tab)
-
 
201
		{
-
 
202
// authorize/block IPs 
-
 
203
		$pointeur=fopen(IP_BLOCKED,"w+");
-
 
204
		foreach ($tab as $ligne)
-
 
205
			{
-
 
206
			$ip_f=explode(" ", $ligne);
-
 
207
			$ip_blocked1=trim($ip_f[0],"#");
-
 
208
			$actif = False; $remove_line = false;
-
 
209
			foreach ($_POST as $key => $value)
-
 
210
				{
-
 
211
				if (strstr($key,'del-'))
-
 
212
					{
-
 
213
					$ip_blocked2 = str_replace('del-','',$key);
-
 
214
					if ($ip_blocked1 == $ip_blocked2)
-
 
215
				       		{
-
 
216
						$remove_line = True;
-
 
217
						break;
-
 
218
						}
-
 
219
					}
-
 
220
				if (strstr($key,'chk-'))
-
 
221
					{
-
 
222
					$ip_blocked2 = str_replace('chk-','',$key);
-
 
223
					if ($ip_blocked1 == $ip_blocked2)
-
 
224
				       		{
-
 
225
						$actif = True;
-
 
226
						break;
-
 
227
						}
-
 
228
					}
-
 
229
				}
-
 
230
			if (! $remove_line)
-
 
231
				{
-
 
232
				if (! $actif) {	$line="#$ip_blocked1 $ip_f[1]";}
-
 
233
				else { $line="$ip_blocked1 $ip_f[1]";}
-
 
234
				fwrite($pointeur,$line);
-
 
235
				}
-
 
236
			}
-
 
237
		fclose($pointeur);
-
 
238
		}
-
 
239
	#exec ("sudo /usr/local/bin/alcasar-iptables.sh");
-
 
240
	break;
163
	}
241
	}
164
# default values
242
# default values
165
if (is_file ($conf_file))
243
if (is_file (CONF_FILE))
166
	{
244
	{
167
	$tab=file($conf_file);
245
	$tab=file(CONF_FILE);
168
	if ($tab)
246
	if ($tab)
169
		{
247
		{
170
		foreach ($tab as $line)
248
		foreach ($tab as $line)
171
			{
249
			{
172
			$field=explode("=", $line);
250
			$field=explode("=", $line);
173
			if ($field[0] == "PROTOCOLS_FILTERING")	{$PROTOCOLS_FILTERING=trim($field[1]);}
251
			if ($field[0] == "PROTOCOLS_FILTERING")	{$PROTOCOLS_FILTERING=trim($field[1]);}
174
			if ($field[0] == "EXT_LAN_FILTERING")	{$EXT_LAN_FILTERING=trim($field[1]);}
-
 
175
			if ($field[0] == "WEB_ANTIVIRUS")	{$WEB_ANTIVIRUS=trim($field[1]);}
252
			if ($field[0] == "WEB_ANTIVIRUS")	{$WEB_ANTIVIRUS=trim($field[1]);}
176
			}
253
			}
177
		}
254
		}
178
	}
255
	}
179
else { echo "$l_error_open_file $conf_file";}
-
 
180
echo "<tr><th>$l_title_antivir</th></tr>";
256
echo "<tr><th>$l_title_antivir</th></tr>";
181
?>
257
?>
182
<tr bgcolor=#FFCC66><td><img src=/images/pix.gif width=1 height=2></td></tr>
258
<tr bgcolor=#FFCC66><td><img src=/images/pix.gif width=1 height=2></td></tr>
183
</TABLE>
259
</TABLE>
184
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
260
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
Line 201... Line 277...
201
?>
277
?>
202
</FORM>
278
</FORM>
203
</td></tr>
279
</td></tr>
204
</table>
280
</table>
205
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
281
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
206
<tr><th><?echo "$l_title_lan_ext";?></th></tr>
282
<tr><th><?echo "$l_title_ip_block";?></th></tr>
207
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
283
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
208
</table>
284
</table>
209
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
285
<table width="100%" border=1 cellspacing=0 cellpadding=1>
210
	<tr><td valign="middle" align="left">
286
<tr><td colspan=2 align="center">
211
<?php
287
<?
212
if ($EXT_LAN_FILTERING == "on")
288
echo "$l_ip_block_explain</td></tr>";
213
	{
-
 
214
	echo "<CENTER><H3>$l_lan_ext_off</H3></CENTER>";
289
echo "<tr><td align='center' valign='middle'>";
215
 	echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
290
echo "<FORM action='$_SERVER[PHP_SELF]' method='POST'>";
216
	echo "<input type=hidden name='choix' value=\"Lan_Ext_Filter_Off\">";
291
echo "<input type=hidden name='choix' value=\"IP_block_filter\">";
217
	echo "<input type=submit value=\"$l_switch_lan_ext_on\">";
292
echo "<table cellspacing=2 cellpadding=2 border=1>";
218
}
-
 
-
 
293
echo "<tr><th>$l_blocked_ip_address<th>$l_blocked_ip_address_comment<th>$l_blocked<th>$l_remove</tr>";
219
else
294
// Read the "IP_block" file
-
 
295
$tab=file(IP_BLOCKED);
-
 
296
if ($tab)  # the file isn't empty
220
	{
297
	{
-
 
298
	foreach ($tab as $line)
-
 
299
		{
-
 
300
		if (trim($line) != '') # the line isn't empty
-
 
301
			{
-
 
302
			$blocked_ip=explode(" ", $line);
-
 
303
			$ip_addr=trim($blocked_ip[0],"#");
221
	echo "<CENTER><H3>$l_lan_ext_on</H3></CENTER>";
304
			echo "<tr><td>$ip_addr<td>$blocked_ip[1]";
222
 	echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
305
			echo "<td><input type='checkbox' name='chk-$ip_addr'";
223
	echo "<input type=hidden name='choix' value=\"Lan_Ext_Filter_On\">";
306
			// if the line is commented -> IP adress is not blocked
-
 
307
			if (preg_match('/^#/',$line, $r)) {
-
 
308
				echo ">";}
-
 
309
			else {
-
 
310
				echo "checked>";}
224
	echo "<input type=submit value=\"$l_switch_lan_ext_off\">";
311
			echo "<td><input type='checkbox' name='del-$ip_addr'>";
-
 
312
			echo "</tr>";
-
 
313
			}
-
 
314
		}
225
	}
315
	}
226
?>
316
?>
-
 
317
</table>
-
 
318
<input type='hidden' name='choix' value='change_ip'>
-
 
319
<input type='submit' value='<?echo"$l_save_modif";?>'>
-
 
320
</form></td><td valign='middle' align='center'>
-
 
321
<form action='<?echo"$_SERVER[PHP_SELF]"?>' method='POST'>
-
 
322
<table cellspacing=2 cellpadding=3 border=1>
-
 
323
<tr><th><?echo"$l_ip_address<th>$l_blocked_ip_address_comment";?>
-
 
324
<td></td></tr>
-
 
325
<tr><td>exemple1 : 15.25.26.27 <br>exemple2 : 18.20.20.0/24</td><td>exemple1 : CERT alert<br>exemple2 : LAN of zombies</td><td></td></tr>
-
 
326
<tr><td><input type='text' name='add_ip' size='17'></td>
-
 
327
<td><input type='text' name='add_comment' size='10'></td>
-
 
328
<input type='hidden' name='choix' value='new_ip'>
-
 
329
<td><input type='submit' value='<?echo"$l_add_to_list";?>'></td>
-
 
330
</tr></table>
227
</FORM>
331
</form>
228
</td></tr>
332
</td></tr>
229
</table>
333
</table>
230
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
334
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
231
<tr><th><?echo "$l_title_proto";?></th></tr>
335
<tr><th><?echo "$l_title_proto";?></th></tr>
232
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
336
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
233
</table>
337
</table>
234
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
338
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
235
<tr><td valign="middle" align="left">
339
<tr>
236
<?
340
<?
237
if ($PROTOCOLS_FILTERING == "on")
341
if ($PROTOCOLS_FILTERING == "on")
238
	{
342
	{
-
 
343
	echo "<td colspan=\"2\" valign=\"middle\" align=\"left\">";
239
	echo "<CENTER><H3>$l_netfilter_on</H3>$l_comment_on</CENTER>";
344
	echo "<CENTER><H3>$l_netfilter_on</H3>$l_comment_on</CENTER>";
240
	echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
345
	echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
241
	echo "<input type=hidden name='choix' value=\"NF_Off\">";
346
	echo "<input type=hidden name='choix' value=\"NF_Off\">";
242
	echo "<input type=submit value=\"$l_switch_off\">";
347
	echo "<input type=submit value=\"$l_switch_off\">";
-
 
348
	echo "</FORM></td></tr>";
-
 
349
	require ('net_filter2.php');
243
	}
350
	}
244
else
351
else
245
	{
352
	{
-
 
353
	echo "<td valign=\"middle\" align=\"left\">";
246
	echo "<CENTER><H3>$l_netfilter_off</H3>$l_comment_off</CENTER>";
354
	echo "<CENTER><H3>$l_netfilter_off</H3>$l_comment_off</CENTER>";
247
 	echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
355
 	echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
248
	echo "<input type=hidden name='choix' value=\"NF_On\">";
356
	echo "<input type=hidden name='choix' value=\"NF_On\">";
249
	echo "<input type=submit value=\"$l_switch_on\">";
357
	echo "<input type=submit value=\"$l_switch_on\">";
-
 
358
	echo "</FORM></td></tr>";
-
 
359
	echo "</table></body></html>";
250
	}
360
	}
251
echo "</FORM>";
-
 
252
echo "</td></tr>";
-
 
253
echo "</TABLE>";
-
 
254
if ($PROTOCOLS_FILTERING == "on") require ('net_filter2.php');
-
 
255
?>
361
?>
256
</BODY>
-
 
257
</HTML>
-