-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
149 lines (109 loc) · 4.48 KB
/
index.html
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<title translate="yes">Iptables UI</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.min.css">
</head>
<body>
<span id="message-board"></span>
<h3> <i class="fa fa-tasks"> </i>guiptables
<button class="btn-default top-button" id="config-button"
type="button" data-target="#configModal" data-toggle="modal">
<i class="fa fa-cog"></i>
</button>
<button class="btn-default top-button" id="log-button"
type="button" data-target="#logModal" data-toggle="modal">
<i class="fa fa-file-text-o"></i>
</button>
</h3>
<div class="panel panel-default" id="iptablesui">
<div class="panel-heading">
<h2 class="panel-title">Filter</h2>
<div class="panel-actions">
<span class="table-message" id="filter-message"></span>
<label for="filter-chain-menu">Chain:</label>
<select id="filter-chain-menu" class="ct-select">
</select>
<button id="filter-add-rule" class="pf-c-button pf-m-secondary network-privileged"
data-target="#ruleModal" data-toggle="modal" data-test-stable="yes">
<i class="fa fa-plus-circle"></i> Add rule
</button>
<button id="filter-flush-table" class="pf-c-button pf-m-danger network-privileged" data-toggle="modal"
data-target="#dangerModal" data-test-stable="yes">
<i class="fa fa-trash"></i> Flush table
</button>
</div>
</div>
<table id="table" class="table table-hover">
<thead>
<th></th>
<th>#</th>
<th>Packets</th>
<th>Bytes</th>
<th>Chain</th>
<th>Job</th>
<th>Protocol</th>
<th>Options</th>
<th>Input</th>
<th>Output</th>
<th>Source</th>
<th>Destination</th>
<th></th>
</thead>
<tbody id="filter-rules-table">
</tbody>
</table>
</div>
<div class="panel panel-default" id="networking-interfaces">
<div class="panel-heading">
<h2 class="panel-title">NAT</h2>
<div class="panel-actions">
<div class="panel-actions">
<span class="table-message" id="nat-message"></span>
<label for="nat-chain-menu">Chain:</label>
<select id="nat-chain-menu" class="ct-select">
</select>
<button id="nat-add-rule" class="pf-c-button pf-m-secondary network-privileged"
data-test-stable="yes" data-toggle="modal" data-target="#ruleModal">
<i class="fa fa-plus-circle"></i> Add rule
</button>
<button id="nat-flush-table" class="pf-c-button pf-m-danger network-privileged" data-toggle="modal"
data-target="#dangerModal" data-test-stable="yes">
<i class="fa fa-trash"></i> Flush table
</button>
</div>
</div>
</div>
<table class="table table-hover">
<thead>
<th></th>
<th>#</th>
<th>Packets</th>
<th>Bytes</th>
<th>Chain</th>
<th>Job</th>
<th>Protocol</th>
<th>Options</th>
<th>Input</th>
<th>Output</th>
<th>Source</th>
<th>Destination</th>
<th></th>
</thead>
<tbody id="nat-rules-table">
</tbody>
</table>
</div>
</div>
<span id="modal-content"></span>
<script src="jquery.min.js"></script>
<script src="cockpit.min.js"></script>
<script type="module" src="./js/iptablesui.js" defer></script>
<script type="module" src="./js/widgets.js" defer></script>
</body>
</html>