3 # Show syn attack prevention form
5 require './itsecur-lib.pl';
7 &header($text{'syn_title'}, "",
8 undef, undef, undef, undef, &apply_button());
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";
16 ($flood, $spoof, $fin) = &get_syn();
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'};
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'};
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'};
36 print "</table></td></tr></table>\n";
37 print "<input type=submit value='$text{'save'}'></form>\n";
38 &can_edit_disable("syn");
41 &footer("", $text{'index_return'});