1 <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML
4.0//EN'
>
4 Copyright (C) 2006-2010 Jonathan Zarate
5 http://www.polarcloud.com/tomato/
7 For use with Tomato Firmware only.
8 No part of this file may be used without permission.
12 <meta http-equiv='content-type' content='text/html;charset=utf-
8'
>
13 <meta name='robots' content='noindex,nofollow'
>
14 <title>[<%
ident(); %>] Advanced: Firewall
</title>
15 <link rel='stylesheet' type='text/css' href='tomato.css'
>
16 <link rel='stylesheet' type='text/css' href='color.css'
>
17 <script type='text/javascript' src='tomato.js'
></script>
21 <script type='text/javascript' src='debug.js'
></script>
23 <script type='text/javascript'
>
25 // <% nvram("block_wan,multicast_pass,nf_loopback,ne_syncookies"); %>
27 function verifyFields(focused
, quiet
)
36 if (!verifyFields(null, 0)) return;
39 fom
.block_wan
.value
= E('_f_icmp').checked
? 0 : 1;
40 fom
.multicast_pass
.value
= E('_f_multicast').checked
? 1 : 0;
41 fom
.ne_syncookies
.value
= E('_f_syncookies').checked
? 1 : 0;
48 <form id='_fom' method='post' action='tomato.cgi'
>
49 <table id='container' cellspacing=
0>
50 <tr><td colspan=
2 id='header'
>
51 <div class='title'
>Tomato
</div>
52 <div class='version'
>Version <%
version(); %></div>
54 <tr id='body'
><td id='navi'
><script type='text/javascript'
>navi()</script></td>
56 <div id='ident'
><%
ident(); %></div>
60 <input type='hidden' name='_nextpage' value='advanced-firewall.asp'
>
61 <input type='hidden' name='_service' value='firewall-restart'
>
63 <input type='hidden' name='block_wan'
>
64 <input type='hidden' name='multicast_pass'
>
65 <input type='hidden' name='ne_syncookies'
>
67 <div class='section-title'
>Firewall
</div>
69 <script type='text/javascript'
>
70 createFieldTable('', [
71 { title
: 'Respond to ICMP ping', name
: 'f_icmp', type
: 'checkbox', value
: nvram
.block_wan
== '0' },
72 { title
: 'Allow multicast', name
: 'f_multicast', type
: 'checkbox', value
: nvram
.multicast_pass
== '1' },
73 { title
: 'NAT loopback', name
: 'nf_loopback', type
: 'select', options
: [[0,'All'],[1,'Forwarded Only'],[2,'Disabled']], value
: fixInt(nvram
.nf_loopback
, 0, 2, 1) },
74 { title
: 'Enable SYN cookies', name
: 'f_syncookies', type
: 'checkbox', value
: nvram
.ne_syncookies
!= '0' },
82 <tr><td id='footer' colspan=
2>
83 <span id='footer-msg'
></span>
84 <input type='button' value='Save' id='save-button' onclick='save()'
>
85 <input type='button' value='Cancel' id='cancel-button' onclick='reloadPage();'
>
89 <script type='text/javascript'
>verifyFields(null, 1);</script>