1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
<? local view = ... ?>
<h1>Firewall configuration</h1>
<h2>GENERAL</h2>
<dt><?= html.link{value = view.url .. "/edit?name=shorewall.conf", label="shorewall.conf" } ?></dt>
<dd>Modify global configuration settings.</dd>
<dt><?= html.link{value = view.url .. "/edit?name=params", label="params" } ?></dt>
<dd>Define variables used in the other configuratino files.</dd>
<dt><?= html.link{value = view.url .. "/edit?name=zones", label="zones" } ?></dt>
<dd>Name network partions. Firewal rules are applied to defined zones.</dd>
<dt><?= html.link{value = view.url .. "/edit?name=interfaces", label="interfaces" } ?></dt>
<dd>Map physical interfaces to named zones.</dd>
<dt><?= html.link{value = view.url .. "/edit?name=hosts", label="hosts" } ?></dt>
<dd>Map individual hosts or networks to named zones.</dd>
<h2>FIREWALLING</h2>
<dt><?= html.link{value = view.url .. "/edit?name=policy", label="policy" } ?></dt>
<dd>Set default rules (policies) for zones.</dd>
<dt><?= html.link{value = view.url .. "/edit?name=rules", label="rules" } ?></dt>
<dd>Define exceptions to policies.</dd>
<dt><?= html.link{value = view.url .. "/edit?name=routestopped", label="routestopped" } ?></dt>
<dd>Define hosts that can access this host when the firewall is "stopped".</dd>
<dt><?= html.link{value = view.url .. "/edit?name=tunnels", label="tunnels" } ?></dt>
<dd>Specify ipsec tunel endpoints.</dd>
<dt><?= html.link{value = view.url .. "/edit?name=blacklist", label="blacklist" } ?></dt>
<dd>List ip addresses or names that should be denied all access to the firewall.</dd>
<h2>NAT</h2>
<dt><?= html.link{value = view.url .. "/edit?name=masq", label="masq" } ?></dt>
<dd>Define dynamic Masquerading or DNAT tables.</dd>
<dt><?= html.link{value = view.url .. "/edit?name=nat", label="nat" } ?></dt>
<dd>Define static Network Address Translation tables.</dd>
<h2>QOS</h2>
<dt><?= html.link{value = view.url .. "/edit?name=tos", label="tos" } ?></dt>
<dd>Specify type of service markers for packets traversing the firewall.</dd>
<dt><?= html.link{value = view.url .. "/edit?name=tcdevices", label="tcdevices" } ?></dt>
<dd>Define traffic control devices.</dd>
<dt><?= html.link{value = view.url .. "/edit?name=tcclasses", label="tcclasses" } ?></dt>
<dd>Define traffic control classes.</dd>
<dt><?= html.link{value = view.url .. "/edit?name=tcrules", label="tcrules" } ?></dt>
<dd>Define traffic control rules.</dd>
<h2>SHOW CONFIG FILES</h2>
<dt><?= html.link{value = view.url .. "/list", label="View all files/configs" } ?></dt>
<dd>Provide a autogenerated list of files in '/etc/shorewall'.</dd>
<h2>SYSTEM INFO</h2>
<dt>Program version</dt>
<dd><?= view.programstats.programversion ?></dd>
<dt>Program status</dt>
<dd><?= view.programstats.programstatus ?></dd>
<dt>Program state</dt>
<dd><?= view.programstats.programstate ?></dd>
<? --[[
<dt>Show shorewall details</dt>
<dd>[connections] Displays the IP connections currently being tracked by the firewall</dd>
--]] ?>
<h2>MANAGEMENT</h2>
<dt>Preform check of configs</dt>
<dd><form name="check" action="" method="POST"><input type=submit name="cmd" value="check" style="width:100px"></form></dd>
<dt>Preform restart of firewall</dt>
<dd><form name="restart" action="" method="POST"><input type=submit name="cmd" value="restart" style="width:100px"></form><? if (view.programstats.restart) then io.write(view.programstats.restart) end ?></dd>
<? --[[
<dt>Preform refresh of configs</dt>
<dd><form action="xxx" method="POST"><input type=submit name="cmd" value="refresh" style="width:100px"></form> Involves black list, ECN control rules, and traffic shaping...</dd>
--]] ?>
<? --[[ DEBUG INFORMATION...?>
<span style='color:#D2691E;font-family:courier;'>
<h3>THIS VIEW CONTAINS THE FOLLOWING VARIABLES/TABLES</h2>
------------ START DEBUG INFORMATION ------------<BR>
<?
--print ("<span style='color:darkblue;font-family:courier;'>")
for a,b in pairs(view) do
if not (type(b) == "table") then
print ("<b>" .. a .. "</b>: ><span2 style='color:black'>" .. b .. "</span2><<BR>")
else
print ("<b>" .. a .. "</b>:...<BR>")
for c,d in pairs(view[a]) do
if not (type(d) == "table") then
print ("<b> { " .. c .. "</b>: ><span2 style='color:black'>" .. d .. "</span2>< <B> }</B><BR>")
else
print ("<b> { " .. c .. "</b>:...<BR>")
for e,f in pairs(view[a][c]) do
if not (type(f) == "table") then
print ("<b> { { " .. e .. "</b>: ><span2 style='color:black'>" .. f .. "</span2>< <B> } }</B><BR>")
else
print ("<b> { { " .. e .. "</b>:... (table is not visible at the moment)<BR>")
end
end
end
end
end
a,b,c,d,e,f,g,h,i,j = nil,nil,nil,nil,nil,nil,nil,nil,nil,nil
end
print ("------------ END DEBUG INFORMATION ------------</span>")
?>
<? --]] ?>
|