]>
git.ipfire.org Git - people/ummeegge/ipfire-2.x.git/blob - html/cgi-bin/outgoingfw.cgi
1a6bdb51d347ad1a9c345925e1abf6df9fa3b3af
5 # This code is distributed under the terms of the GPL
11 # enable only the following on debugging purpose
13 #use CGI::Carp 'fatalsToBrowser';
15 require '/var/ipfire/general-functions.pl' ;
16 require "${General::swroot}/lang.pl" ;
17 require "${General::swroot}/header.pl" ;
19 my %outfwsettings = ();
23 my $errormessage = "" ;
31 my $configfile = "/var/ipfire/outgoing/rules" ;
32 my $p2pfile = "/var/ipfire/outgoing/p2protocols" ;
33 my $servicefile = "/var/ipfire/outgoing/defaultservices" ;
36 my %mainsettings = ();
37 & General
:: readhash
( "${General::swroot}/main/settings" , \
%mainsettings );
38 & General
:: readhash
( "/srv/web/ipfire/html/themes/" . $mainsettings { 'THEME' }. "/include/colors.txt" , \
%color );
40 & General
:: readhash
( "${General::swroot}/ethernet/settings" , \
%netsettings );
42 & Header
:: showhttpheaders
();
44 ### Values that have to be initialized
45 $outfwsettings { 'ACTION' } = '' ;
46 $outfwsettings { 'VALID' } = 'yes' ;
47 $outfwsettings { 'EDIT' } = 'no' ;
48 $outfwsettings { 'NAME' } = '' ;
49 $outfwsettings { 'SNET' } = '' ;
50 $outfwsettings { 'SIP' } = '' ;
51 $outfwsettings { 'SPORT' } = '' ;
52 $outfwsettings { 'SMAC' } = '' ;
53 $outfwsettings { 'DIP' } = '' ;
54 $outfwsettings { 'DPORT' } = '' ;
55 $outfwsettings { 'PROT' } = '' ;
56 $outfwsettings { 'STATE' } = '' ;
57 $outfwsettings { 'DISPLAY_DIP' } = '' ;
58 $outfwsettings { 'DISPLAY_DPORT' } = '' ;
59 $outfwsettings { 'DISPLAY_SMAC' } = '' ;
60 $outfwsettings { 'DISPLAY_SIP' } = '' ;
61 $outfwsettings { 'POLICY' } = 'MODE0' ;
63 & General
:: readhash
( "${General::swroot}/outgoing/settings" , \
%outfwsettings );
64 & Header
:: getcgihash
( \
%outfwsettings );
66 if ( $outfwsettings { 'POLICY' } eq 'MODE0' ){ $selected { 'POLICY' }{ 'MODE0' } = 'selected' ; } else { $selected { 'POLICY' }{ 'MODE0' } = '' ; }
67 if ( $outfwsettings { 'POLICY' } eq 'MODE1' ){ $selected { 'POLICY' }{ 'MODE1' } = 'selected' ; } else { $selected { 'POLICY' }{ 'MODE1' } = '' ; }
68 if ( $outfwsettings { 'POLICY' } eq 'MODE2' ){ $selected { 'POLICY' }{ 'MODE2' } = 'selected' ; } else { $selected { 'POLICY' }{ 'MODE2' } = '' ; }
70 & Header
:: openpage
( 'Ausgehende Firewall' , 1 , '' );
71 & Header
:: openbigbox
( '100%' , 'left' , '' , $errormessage );
73 ############################################################################################################################
74 ############################################################################################################################
76 if ( $outfwsettings { 'ACTION' } eq $Lang :: tr
{ 'reset' })
78 $outfwsettings { 'POLICY' }= 'MODE0' ;
80 system ( "/usr/bin/touch $configfile " );
81 my $MODE = $outfwsettings { 'POLICY' };
83 $outfwsettings { 'POLICY' } = " $MODE " ;
84 & General
:: writehash
( "${General::swroot}/outgoing/settings" , \
%outfwsettings );
86 if ( $outfwsettings { 'ACTION' } eq $Lang :: tr
{ 'save' })
88 my $MODE = $outfwsettings { 'POLICY' };
90 $outfwsettings { 'POLICY' } = " $MODE " ;
91 & General
:: writehash
( "${General::swroot}/outgoing/settings" , \
%outfwsettings );
92 system ( "/usr/local/bin/outgoingfwctrl" );
94 if ( $outfwsettings { 'ACTION' } eq 'enable' )
96 open ( FILE
, "< $p2pfile " ) or die "Unable to read $p2pfile " ;
99 open ( FILE
, "> $p2pfile " ) or die "Unable to write $p2pfile " ;
100 foreach $p2pentry ( sort @p2ps )
102 @p2pline = split ( /\;/ , $p2pentry );
103 if ( $p2pline [ 1 ] eq $outfwsettings { 'P2PROT' }) {
104 print FILE
" $p2pline [0]; $p2pline [1];on; \n " ;
106 print FILE
" $p2pline [0]; $p2pline [1]; $p2pline [2]; \n " ;
110 system ( "/usr/local/bin/outgoingfwctrl" );
112 if ( $outfwsettings { 'ACTION' } eq 'disable' )
114 open ( FILE
, "< $p2pfile " ) or die "Unable to read $p2pfile " ;
117 open ( FILE
, "> $p2pfile " ) or die "Unable to write $p2pfile " ;
118 foreach $p2pentry ( sort @p2ps )
120 @p2pline = split ( /\;/ , $p2pentry );
121 if ( $p2pline [ 1 ] eq $outfwsettings { 'P2PROT' }) {
122 print FILE
" $p2pline [0]; $p2pline [1];off; \n " ;
124 print FILE
" $p2pline [0]; $p2pline [1]; $p2pline [2]; \n " ;
128 system ( "/usr/local/bin/outgoingfwctrl" );
130 if ( $outfwsettings { 'ACTION' } eq $Lang :: tr
{ 'edit' })
132 open ( FILE
, "< $configfile " ) or die "Unable to read $configfile " ;
135 open ( FILE
, "> $configfile " ) or die "Unable to write $configfile " ;
136 foreach $configentry ( sort @configs )
138 @configline = split ( /\;/ , $configentry );
139 unless (( $configline [ 0 ] eq $outfwsettings { 'STATE' }) &&
140 ( $configline [ 1 ] eq $outfwsettings { 'ENABLED' }) &&
141 ( $configline [ 2 ] eq $outfwsettings { 'SNET' }) &&
142 ( $configline [ 3 ] eq $outfwsettings { 'PROT' }) &&
143 ( $configline [ 4 ] eq $outfwsettings { 'NAME' }) &&
144 ( $configline [ 5 ] eq $outfwsettings { 'SIP' }) &&
145 ( $configline [ 6 ] eq $outfwsettings { 'SMAC' }) &&
146 ( $configline [ 7 ] eq $outfwsettings { 'DIP' }) &&
147 ( $configline [ 9 ] eq $outfwsettings { 'LOG' }) &&
148 ( $configline [ 8 ] eq $outfwsettings { 'DPORT' }))
150 print FILE
$configentry ;
154 $selected { 'SNET' }{ " $outfwsettings {'SNET'}" } = 'selected' ;
155 $selected { 'PROT' }{ " $outfwsettings {'PROT'}" } = 'selected' ;
156 $selected { 'LOG' }{ " $outfwsettings {'LOG'}" } = 'selected' ;
158 & Header
:: closebigbox
();
159 & Header
:: closepage
();
161 system ( "/usr/local/bin/outgoingfwctrl" );
163 if ( $outfwsettings { 'ACTION' } eq $Lang :: tr
{ 'delete' })
165 open ( FILE
, "< $configfile " ) or die "Unable to read $configfile " ;
168 open ( FILE
, "> $configfile " ) or die "Unable to write $configfile " ;
169 foreach $configentry ( sort @configs )
171 @configline = split ( /\;/ , $configentry );
172 unless (( $configline [ 0 ] eq $outfwsettings { 'STATE' }) &&
173 ( $configline [ 1 ] eq $outfwsettings { 'ENABLED' }) &&
174 ( $configline [ 2 ] eq $outfwsettings { 'SNET' }) &&
175 ( $configline [ 3 ] eq $outfwsettings { 'PROT' }) &&
176 ( $configline [ 4 ] eq $outfwsettings { 'NAME' }) &&
177 ( $configline [ 5 ] eq $outfwsettings { 'SIP' }) &&
178 ( $configline [ 6 ] eq $outfwsettings { 'SMAC' }) &&
179 ( $configline [ 7 ] eq $outfwsettings { 'DIP' }) &&
180 ( $configline [ 9 ] eq $outfwsettings { 'LOG' }) &&
181 ( $configline [ 8 ] eq $outfwsettings { 'DPORT' }))
183 print FILE
$configentry ;
187 system ( "/usr/local/bin/outgoingfwctrl" );
189 if ( $outfwsettings { 'ACTION' } eq $Lang :: tr
{ 'add' })
191 if ( $outfwsettings { 'VALID' } eq 'yes' ) {
192 open ( FILE
, ">> $configfile " ) or die "Unable to write $configfile " ;
194 $outfwsettings {'STATE'}; $outfwsettings {'ENABLED'}; $outfwsettings {'SNET'}; $outfwsettings {'PROT'}; $outfwsettings {'NAME'}; $outfwsettings {'SIP'}; $outfwsettings {'SMAC'}; $outfwsettings {'DIP'}; $outfwsettings {'DPORT'}; $outfwsettings {'LOG'};
198 system ( "/usr/local/bin/outgoingfwctrl" );
200 $outfwsettings { 'ACTION' } = 'Add rule' ;
203 if ( $outfwsettings { 'ACTION' } eq 'Add rule' )
209 & General
:: readhash
( "${General::swroot}/outgoing/settings" , \
%outfwsettings );
212 & Header
:: openbox
( '100%' , 'left' , $Lang :: tr
{ 'error messages' });
213 print "<class name='base'> $errormessage \n " ;
214 print " </class> \n " ;
218 ############################################################################################################################
219 ############################################################################################################################
221 if ( $outfwsettings { 'POLICY' } ne 'MODE0' ){
222 & Header
:: openbox
( '100%' , 'center' , 'Rules' );
224 <form method='post' action=' $ENV {'SCRIPT_NAME'}'>
225 <input type='submit' name='ACTION' value='Add rule' />
229 open ( FILE
, "< $configfile " ) or die "Unable to read $configfile " ;
235 <table border='0' width='100%' cellspacing='0'>
236 <tr bgcolor=' $color {'color22'}'>
237 <td width='14%' align='center'><b>Protokoll</b>
238 <td width='14%' align='center'><b>Netzwerk</b>
239 <td width='14%' align='center'><b>Ziel</b>
240 <td width='14%' align='center'><b>Anmerkung</b>
241 <td width='14%' align='center'><b>Politik</b>
242 <td width='16%' align='center'><b>Logging</b>
243 <td width='14%' align='center'><b>Aktionen</b>
246 foreach $configentry ( sort @configs )
248 @configline = split ( /\;/ , $configentry );
249 $outfwsettings { 'STATE' } = $configline [ 0 ];
250 $outfwsettings { 'ENABLED' } = $configline [ 1 ];
251 $outfwsettings { 'SNET' } = $configline [ 2 ];
252 $outfwsettings { 'PROT' } = $configline [ 3 ];
253 $outfwsettings { 'NAME' } = $configline [ 4 ];
254 $outfwsettings { 'SIP' } = $configline [ 5 ];
255 $outfwsettings { 'SMAC' } = $configline [ 6 ];
256 $outfwsettings { 'DIP' } = $configline [ 7 ];
257 $outfwsettings { 'DPORT' } = $configline [ 8 ];
258 $outfwsettings { 'LOG' } = $configline [ 9 ];
259 if ( $outfwsettings { 'DIP' } eq '' ){ $outfwsettings { 'DISPLAY_DIP' } = 'ALL' ; } else { $outfwsettings { 'DISPLAY_DIP' } = $outfwsettings { 'DIP' }; }
260 if ( $outfwsettings { 'DPORT' } eq '' ){ $outfwsettings { 'DISPLAY_DPORT' } = 'ALL' ; } else { $outfwsettings { 'DISPLAY_DPORT' } = $outfwsettings { 'DPORT' }; }
261 if ( $outfwsettings { 'STATE' } eq 'DENY' ){ $outfwsettings { 'DISPLAY_STATE' } = "<img src='/images/stock_stop.png' alt='DENY' />" ; }
262 if ( $outfwsettings { 'STATE' } eq 'ALLOW' ){ $outfwsettings { 'DISPLAY_STATE' } = "<img src='/images/stock_ok.png' alt='ALLOW' />" ; }
263 if ((( $outfwsettings { 'POLICY' } eq 'MODE1' ) && ( $outfwsettings { 'STATE' } eq 'ALLOW' )) || (( $outfwsettings { 'POLICY' } eq 'MODE2' ) && ( $outfwsettings { 'STATE' } eq 'DENY' ))){
265 <tr bgcolor=' $color {'color20'}'>
266 <td align='center'> $outfwsettings {'PROT'}
267 <td align='center'> $outfwsettings {'SNET'}
268 <td align='center'> $outfwsettings {'DISPLAY_DIP'}: $outfwsettings {'DISPLAY_DPORT'}
269 <td align='center'> $outfwsettings {'NAME'}
270 <td align='center'> $outfwsettings {'DISPLAY_STATE'}
271 <td align='center'> $outfwsettings {'LOG'}
273 <table border='0' cellpadding='0' cellspacing='0'><tr>
274 <td><form method='post' action=' $ENV {'SCRIPT_NAME'}'>
275 <input type='hidden' name='PROT' value=' $outfwsettings {'PROT'}' />
276 <input type='hidden' name='STATE' value=' $outfwsettings {'STATE'}' />
277 <input type='hidden' name='SNET' value=' $outfwsettings {'SNET'}' />
278 <input type='hidden' name='DPORT' value=' $outfwsettings {'DPORT'}' />
279 <input type='hidden' name='DIP' value=' $outfwsettings {'DIP'}' />
280 <input type='hidden' name='SIP' value=' $outfwsettings {'SIP'}' />
281 <input type='hidden' name='NAME' value=' $outfwsettings {'NAME'}' />
282 <input type='hidden' name='SMAC' value=' $outfwsettings {'SMAC'}' />
283 <input type='hidden' name='ENABLED' value=' $outfwsettings {'ENABLED'}' />
284 <input type='hidden' name='LOG' value=' $outfwsettings {'LOG'}' />
285 <input type='hidden' name='ACTION' value= $Lang ::tr{'edit'} />
286 <input type='image' src='/images/edit.gif' width="20" height="20" alt= $Lang ::tr{'edit'} />
288 <td><form method='post' action=' $ENV {'SCRIPT_NAME'}'>
289 <input type='hidden' name='PROT' value=' $outfwsettings {'PROT'}' />
290 <input type='hidden' name='STATE' value=' $outfwsettings {'STATE'}' />
291 <input type='hidden' name='SNET' value=' $outfwsettings {'SNET'}' />
292 <input type='hidden' name='DPORT' value=' $outfwsettings {'DPORT'}' />
293 <input type='hidden' name='DIP' value=' $outfwsettings {'DIP'}' />
294 <input type='hidden' name='SIP' value=' $outfwsettings {'SIP'}' />
295 <input type='hidden' name='NAME' value=' $outfwsettings {'NAME'}' />
296 <input type='hidden' name='SMAC' value=' $outfwsettings {'SMAC'}' />
297 <input type='hidden' name='ENABLED' value=' $outfwsettings {'ENABLED'}' />
298 <input type='hidden' name='LOG' value=' $outfwsettings {'LOG'}' />
299 <input type='hidden' name='ACTION' value= $Lang ::tr{'delete'} />
300 <input type='image' src='/images/delete.gif' width="20" height="20" alt= $Lang ::tr{'delete'} />
304 if (( $outfwsettings { 'SIP' }) || ( $outfwsettings { 'SMAC' })) {
305 unless ( $outfwsettings { 'SIP' }) { $outfwsettings { 'DISPLAY_SIP' } = 'ALL' ; } else { $outfwsettings { 'DISPLAY_SIP' } = $outfwsettings { 'SIP' }; }
306 unless ( $outfwsettings { 'SMAC' }) { $outfwsettings { 'DISPLAY_SMAC' } = 'ALL' ; } else { $outfwsettings { 'DISPLAY_SMAC' } = $outfwsettings { 'SMAC' }; }
308 <tr><td width='14%' align='right'>Quell-IP-Adresse:
309 <td width='14%' align='left'> $outfwsettings {'DISPLAY_SIP'}
310 <td width='14%' align='right'>Quell-MAC-Adresse:
311 <td width='14%' align='left'> $outfwsettings {'DISPLAY_SMAC'}
312 <td width='44%' colspan='2' align='center'>
331 if ( $outfwsettings { 'POLICY' } ne 'MODE0' ){
332 open ( FILE
, "< $p2pfile " ) or die "Unable to read $p2pfile " ;
335 & Header
:: openbox
( '100%' , 'center' , 'P2P-Block' );
338 <tr bgcolor=' $color {'color22'}'><td width='66%' align=center><b>Protokoll</b>
339 <td width='33%' align=center><b>Status</b>
343 foreach $p2pentry ( sort @p2ps )
345 @p2pline = split ( /\;/ , $p2pentry );
347 <form method='post' action=' $ENV {'SCRIPT_NAME'}'>
350 print " \t\t\t <tr bgcolor=' $color {'color20'}'> \n " ;
352 <td width='66%' align='center'> $p2pline [0]:
353 <td width='33%' align='center'><input type='hidden' name='P2PROT' value=' $p2pline [1]' />
356 if ( $p2pline [ 2 ] eq 'on' ) {
358 <input type='hidden' name='ACTION' value='disable' />
359 <input type='image' name='submit' src='/images/stock_ok.png' alt='' />
364 <input type='hidden' name='ACTION' value='enable' />
365 <input type='image' name='submit' src='/images/stock_stop.png' alt='' />
376 <br />Klicken Sie auf die Symbole um das entsprechende iptables P2P-Blockmodul zu (de-)aktivieren.
382 & Header
:: openbox
( '100%' , 'center' , 'Policy' );
384 <form method='post' action=' $ENV {'SCRIPT_NAME'}'>
386 <tr><td width='10%' align='left'><b>Modus 0:</b><td width='90%' align='left' colspan='2'>In diesem Modus ist es allen Rechnern im Netzwerk uneingeschraenkt moeglich Verbindungen ins Internet aufzubauen.</td></tr>
387 <tr><td width='10%' align='left'><b>Modus 1:</b><td width='90%' align='left' colspan='2'>In diesem Modus werden nur Verbindungen nach den oben definierten Regeln zugelassen.</td></tr>
388 <tr><td width='10%' align='left'><b>Modus 2:</b><td width='90%' align='left' colspan='2'>In diesem Modus werden saemtliche Verbindungen erlaubt, bis auf die oben definierten Block-Regeln.</td></tr>
389 <tr><td colspan='3'><hr /></td></tr>
390 <tr><td width='10%' align='left'> <select name='POLICY' style="width: 85px"><option value='MODE0' $selected {'POLICY'}{'MODE0'}>Modus 0</option><option value='MODE1' $selected {'POLICY'}{'MODE1'}>Modus 1</option><option value='MODE2' $selected {'POLICY'}{'MODE2'}>Modus 2</option></select>
391 <td width='45%' align='left'><input type='submit' name='ACTION' value= $Lang ::tr{'save'} />
392 <td width='45%' align='left'>
395 if ( $outfwsettings { 'POLICY' } ne 'MODE0' ) {
397 Alle Regeln loeschen: <input type='submit' name='ACTION' value= $Lang ::tr{'reset'} />
408 & Header
:: closebigbox
();
409 & Header
:: closepage
();
411 ############################################################################################################################
412 ############################################################################################################################
416 & Header
:: openbox
( '100%' , 'center' , 'Rules hinzufuegen' );
417 if ( $outfwsettings { 'EDIT' } eq 'no' ) { $selected { 'ENABLED' } = 'checked' ; }
419 <form method='post' action=' $ENV {'SCRIPT_NAME'}'>
421 <tr><td width='20%' align='right'>Anmerkung: <img src='/blob.gif' />
422 <td width='30%' align='left'><input type='text' name='NAME' maxlength='30' value=' $outfwsettings {'NAME'}' />
423 <td width='20%' align='right'>Aktiviert:
424 <td width='30%' align='left'><input type='checkbox' name='ENABLED' $selected {'ENABLED'} />
425 <tr><td width='20%' align='right'>Protokoll:
426 <td width='30%' align='left'><select name='PROT'><option value='tcp' $selected {'PROT'}{'tcp'}>TCP</option><option value='tcp&udp' $selected {'PROT'}{'tcp&udp'}>TCP & UDP</option><option value='udp' $selected {'PROT'}{'udp'}>UDP</option></select>
427 <td width='20%' align='right'>Sicherheitspolitik:
428 <td width='30%' align='left'>
431 if ( $outfwsettings { 'POLICY' } eq 'MODE1' ){
432 print " \t\t\t ALLOW<input type='hidden' name='STATE' value='ALLOW' /> \n " ;
433 } elsif ( $outfwsettings { 'POLICY' } eq 'MODE2' ){
434 print " \t\t\t DENY<input type='hidden' name='STATE' value='DENY' /> \n " ;
437 <tr><td width='20%' align='right'>Quellnetz:
438 <td width='30%' align='left'><select name='SNET'>
439 <option value='all' $selected {'SNET'}{'ALL'}>alle</option>
440 <option value='ip' $selected {'SNET'}{'ip'}>Quell-IP/MAC benutzen</option>
441 <option value='green' $selected {'SNET'}{'green'}> $Lang ::tr{'green'}</option>
444 if (& Header
:: blue_used
()){
445 print " \t\t\t <option value='blue' $selected {'SNET'}{'blue'}> $Lang ::tr{'wireless'}</option> \n " ;
447 if (& Header
:: orange_used
()){
448 print " \t\t\t <option value='orange' $selected {'SNET'}{'orange'}> $Lang ::tr{'dmz'}</option> \n " ;
452 <td width='20%' align='right'>Quell-IP-Adresse: <img src='/blob.gif' />
453 <td width='30%' align='left'><input type='text' name='SIP' maxlength='15' value=' $outfwsettings {'SIP'}' />
454 <tr><td width='20%' align='right'>Logging:
455 <td width='30%' align='left'><select name='LOG'><option value=' $Lang ::tr{'active'}' $selected{'LOG'}{$Lang::tr{'active'}}> $Lang ::tr{'active'}</option><option value='$Lang::tr{'inactive'}' $selected{'LOG'}{$Lang::tr{'inactive'}}> $Lang ::tr{'inactive'}</option></select></td>
456 <td width='20%' align='right'>Quell-MAC-Adresse: <img src='/blob.gif' />
457 <td width='30%' align='left'><input type='text' name='SMAC' maxlength='23' value=' $outfwsettings {'SMAC'}' />
458 <tr><td width='20%' align='right'>Ziel-IP-Adresse: <img src='/blob.gif' />
459 <td width='30%' align='left'><input type='text' name='DIP' maxlength='15' value=' $outfwsettings {'DIP'}' />
460 <td width='20%' align='right'>Ziel-Port: <img src='/blob.gif' />
461 <td width='30%' align='left'><input type='text' name='DPORT' maxlength='11' value=' $outfwsettings {'DPORT'}' />
463 <tr><td width='40%' align='right' colspan='2'><img src='/blob.gif' /> $Lang ::tr{'this field may be blank'}
464 <td width='60%' align='left' colspan='2'><input type='submit' name='ACTION' value= $Lang ::tr{'add'} />
470 if ( $outfwsettings { 'POLICY' } eq 'MODE1' || $outfwsettings { 'POLICY' } eq 'MODE2' )
472 & Header
:: openbox
( '100%' , 'center' , 'Quick Add' );
474 open ( FILE
, "< /var/ipfire/outgoing/defaultservices" ) or die "Unable to read default services" ;
475 my @defservices = < FILE
>;
478 print "<table width='100%'><tr bgcolor=' $color {'color20'}'><td><b> $Lang ::tr{'service'}</b></td><td><b> $Lang ::tr{'description'}</b></td><td><b> $Lang ::tr{'port'}</b></td><td><b> $Lang ::tr{'protocol'}</b></td><td><b> $Lang ::tr{'source net'}</b></td><td><b> $Lang ::tr{'logging'}</b></td><td></td></tr>" ;
479 foreach my $serviceline ( @defservices )
481 my @service = split ( /,/ , $serviceline );
483 <tr><form method='post' action=' $ENV {'SCRIPT_NAME'}'>
484 <td> $service [0]<input type='hidden' name='NAME' value=' @service [0]' /></td>
486 <td><a href='http://isc.sans.org/port_details.php?port= $service [1]' target='top'> $service [1]</a><input type='hidden' name='DPORT' value=' @service [1]' /></td>
487 <td> $service [2]<input type='hidden' name='PROT' value=' @service [2]' /></td>
488 <td><select name='SNET'><option value='all' $selected {'SNET'}{'ALL'}> $Lang ::tr{'all'}</option><option value='green' $selected{'SNET'}{'green'}> $Lang ::tr{'green'}</option>
491 if (& Header
:: blue_used
()){
492 print "<option value='blue' $selected {'SNET'}{'blue'}> $Lang ::tr{'wireless'}</option>" ;
494 if (& Header
:: orange_used
()){
495 print "<option value='orange' $selected {'SNET'}{'orange'}> $Lang ::tr{'dmz'}</option>" ;
499 <td><select name='LOG'><option value=' $Lang ::tr{'active'}'> $Lang ::tr{'active'}</option><option value=' $Lang ::tr{'inactive'}' 'selected'> $Lang ::tr{'inactive'}</option></select></td><td>
500 <input type='hidden' name='ACTION' value= $Lang ::tr{'add'} />
501 <input type='image' alt=' $Lang ::tr{'add'}' src='/images/add.gif' />
502 <input type='hidden' name='ENABLED' value='on' />
505 if ( $outfwsettings { 'POLICY' } eq 'MODE1' ){ print "<input type='hidden' name='STATE' value='ALLOW' /></form></td></tr>" ;}
506 elsif ( $outfwsettings { 'POLICY' } eq 'MODE2' ){ print "<input type='hidden' name='STATE' value='DENY' /></form></td></tr>" ;}