Handle hostnames with upper-case letters
[webmin.git] / itsecur-firewall / list_syn.cgi
1 #!/usr/bin/perl
2 # list_syn.cgi
3 # Show syn attack prevention form
4
5 require './itsecur-lib.pl';
6 &can_use_error("syn");
7 &header($text{'syn_title'}, "",
8         undef, undef, undef, undef, &apply_button());
9 print "<hr>\n";
10
11 print "<form action=save_syn.cgi>\n";
12 print "<table border>\n";
13 print "<tr $tb> <td><b>$text{'syn_header'}</b></td> </tr>\n";
14 print "<tr $cb> <td><table>\n";
15
16 ($flood, $spoof, $fin) = &get_syn();
17
18 print "<tr> <td><b>$text{'syn_flood'}</b></td> <td>\n";
19 printf "<input type=radio name=flood value=1 %s> %s\n",
20         $flood ? "checked" : "", $text{'yes'};
21 printf "<input type=radio name=flood value=0 %s> %s</td> </tr>\n",
22         $flood ? "" : "checked", $text{'no'};
23
24 print "<tr> <td><b>$text{'syn_spoof'}</b></td> <td>\n";
25 printf "<input type=radio name=spoof value=1 %s> %s\n",
26         $spoof ? "checked" : "", $text{'yes'};
27 printf "<input type=radio name=spoof value=0 %s> %s</td> </tr>\n",
28         $spoof ? "" : "checked", $text{'no'};
29
30 print "<tr> <td><b>$text{'syn_fin'}</b></td> <td>\n";
31 printf "<input type=radio name=fin value=1 %s> %s\n",
32         $fin ? "checked" : "", $text{'yes'};
33 printf "<input type=radio name=fin value=0 %s> %s</td> </tr>\n",
34         $fin ? "" : "checked", $text{'no'};
35
36 print "</table></td></tr></table>\n";
37 print "<input type=submit value='$text{'save'}'></form>\n";
38 &can_edit_disable("syn");
39
40 print "<hr>\n";
41 &footer("", $text{'index_return'});