Added all option to outgoingfw.
authorChristian Schmidt <maniacikarus@ipfire.org>
Sun, 18 Oct 2009 10:56:12 +0000 (12:56 +0200)
committerChristian Schmidt <maniacikarus@ipfire.org>
Sun, 18 Oct 2009 10:56:12 +0000 (12:56 +0200)
config/outgoingfw/outgoingfw.pl
html/cgi-bin/outgoingfw.cgi

index 5344ae3..ae1f105 100644 (file)
@@ -142,6 +142,8 @@ foreach $configentry (sort @configs)
                        @proto = ("tcp");
                } elsif ($configline[3] eq 'udp') {
                        @proto = ("udp");
+               } elsif ($configline[3] eq 'all') {
+                       @proto = ("all");
                } else {
                        @proto = ("tcp", "udp");
                }
index a7260d8..0730ba2 100644 (file)
@@ -456,7 +456,7 @@ sub addrule
                    <td width='20%' align='right'>$Lang::tr{'active'}:
                    <td width='30%' align='left'><input type='checkbox' name='ENABLED' $selected{'ENABLED'} />
                <tr><td width='20%' align='right'>$Lang::tr{'protocol'}:
-                   <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>
+                   <td width='30%' align='left'><select name='PROT'><option value='tcp' $selected{'PROT'}{'all'}>All</option><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>
                    <td width='20%' align='right'>$Lang::tr{'policy'}:
                    <td width='30%' align='left'>
 END