summaryrefslogtreecommitdiffstats
path: root/shorewall-read-html.lsp
blob: 21f614ff9fdc8ab74220f6d543bc009589dc4a29 (plain)
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
<? local view = ... ?>

<h1>Firewall configuration</h1>

<h2>GENERAL</h2>

<dt>shorewall.conf</dt>
<dd>Modify global configuration settings.</dd>

<dt>params</dt>
<dd>Define variables used in the other configuratino files.</dd>

<dt>zones</dt>
<dd>Name network partions. Firewal rules are applied to defined zones.</dd>

<dt>interfaces</dt>
<dd>Map physical interfaces to named zones.</dd>

<dt>hosts</dt>
<dd>Map individual hosts or networks to named zones.</dd>

<h2>FIREWALLING</h2>

<dt>policy</dt>
<dd>Set default rules (policies) for zones.</dd>

<dt>rules</dt>
<dd>Define exceptions to policies.</dd>

<dt>routestopped</dt>
<dd>Define hosts that can access this host when the firewall is "stopped".</dd>

<dt>tunnels</dt>
<dd>Specify ipsec tunel endpoints.</dd>

<dt>blacklist</dt>
<dd>List ip addresses or names that should be denied all access to the firewall.</dd>

<h2>NAT</h2>

<dt>masq</dt>
<dd>Define dynamic Masquerading or DNAT tables.</dd>

<dt>nat</dt>
<dd>Define static Network Address Translation tables.</dd>

<h2>QOS</h2>

<dt>tos</dt>
<dd>Specify type of service markers for packets traversing the firewall.</dd>

<dt>tcdevices</dt>
<dd>Define traffic control devices.</dd>

<dt>tcclasses</dt>
<dd>Define traffic control classes.</dd>

<dt>tcrules</dt>
<dd>Define traffic control rules.</dd>

<h2>OTHER</h2>

<dt>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.version ?></dd>

<h2>MANAGEMENT</h2>
<dt>Program Status</dt>
<dd>[running|not]</dd>


<? --Status Block
    for i,item in ipairs(view.note or {}) do
        ?><p class='error'><?= item.content ?></p><?
    end
?>

<table border=0>
<? local sct=""
for i,item in ipairs(view.list) do
    if item.section ~= sct then
        ?><tr><td colspan='3'><h2><?= item.section ?></td></tr><?
        sct = item.section
    end
    ?><tr><td><?= item.status or '' ?><?
    ?><td><?= html.link{
        value = view.script .. view.prefix .. view.controller .. "/"
        .. view.action .. "?id=" .. tostring(item.id),
        label=item.name
    }
    ?></td><td><?= item.descr
    ?></td></tr><? 
end -- vim: set filetype=lua : ?>
</table>