-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
264 lines (252 loc) · 23.3 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="content"></div>
<h1><p align="center" style="margin-bottom: 0px">Cloak+Wireguard IP VPN Gateway Helper</p></h1>
<p align="center" style="margin-top: 0px">Version <b>1.2</b>, sources on: <a href="https://github.com/mcfly722/cloak-vpn-helper">guthub.com</a></p>
<hr align="center" width="90%" color="#dddddd" />
<div class="main">
<div class="container left" >
<table>
<tr>
<td colspan="2">
<h2 align="center">1. Local VPN Gateway</h2>
<br>
</td>
</tr>
<tr>
<td>Architecture</td>
<td>
<select id="clientArch" style="width:150px" oninput="onChange(this.id, this.value);">
<option value="not specified">not specified</option>
<option value="amd64">amd64</option>
<option value="arm64">arm64</option>
<option value="arm">arm</option>
<option value="386">386</option>
</select>
</td>
</tr>
<tr>
<td>OS</td>
<td>
<select id="clientOS" style="width:150px" oninput="onChange(this.id, this.value);">
<option value="linux">linux</option>
</select>
</td>
</tr>
<tr>
<td>
<br>
</td>
</tr>
<tr>
<td>IP for new tunneling gateway</td>
<td width="100%">
<input id="cloakClient" type="text" style="width:100%" value="ENTER YOUR NEW LOCAL TUNNELING GATEWAY IP HERE" oninput="onChange(this.id, this.value);">
</td>
</tr>
<tr>
<td>Current internal network gateway IP</td>
<td width="100%">
<input id="cloakGateway" type="text" style="width:100%" value="192.168.0.1" oninput="onChange(this.id, this.value);">
</td>
</tr>
<tr>
<td>
<br>
</td>
</tr>
<tr>
<td>Cloak encryption method</td>
<td>
<select id="cloakEncryptionMethod" style="width:150PX" oninput="onChange(this.id, this.value);">
<option value="aes-128-gcm">aes-128-gcm</option>
<option value="aes-256-gcm">aes-256-gcm</option>
<option value="chacha20-poly1305">chacha20-poly1305</option>
<option value="plain">plain</option>
</select>
</td>
</tr>
<tr>
<td>Cloak connetions</td>
<td><input id="cloakNumberOfConnections" name="cloakNumberOfConnections" style="width:50px" value="30" type="number" min="1" max="512" data-com.dwl.browser.user-edited="yes" oninput="onChange(this.id, this.value);"></td>
</tr>
<tr>
<td>
<br>
</td>
</tr>
<tr>
<td>
<br>
</td>
</tr>
<tr>
<td>
<br>
</td>
</tr>
<tr>
<td>
<br>
</td>
</tr>
<tr>
<td>Wireguard MTU</td>
<td>
<input id="wireguardMTU" name="wireguardMTU" style="width:50px" value="1420" type="number" min="1" max="65535" data-com.dwl.browser.user-edited="yes" oninput="onChange(this.id, this.value);">
</td>
</tr>
<tr>
<td>Wireguard client private key</td>
<td width="100%">
<input id="wireguardClientPrivate" type="text" style="width:100%" value="" oninput="updateWGClient(this.value);">
</td>
</tr>
<tr>
<td>Wireguard client public key</td>
<td width="100%">
<input id="wireguardClientPublic" type="text" style="width:100%" value="" readonly>
</td>
</tr>
<tr>
<td />
<td>
<button type="button" onClick="regenerateWGClient();">regenerate</button>
</td>
</tr>
<tr>
<td>NTP Server IP</td>
<td width="100%">
<input id="clientNTP" type="text" style="width:100%" value="162.159.200.123" oninput="onChange(this.id, this.value);">
</td>
</tr>
</table>
<br>
</div>
<div class="container right">
<table>
<tr>
<td colspan="2">
<h2 align="center">2. External VM</h2>
<br>
</td>
</tr>
<tr>
<td>Architecture</td>
<td>
<select id="serverArch" style="width:150px" oninput="onChange(this.id, this.value);">
<option value="not specified">not specified</option>
<option value="amd64">amd64</option>
<option value="arm64">arm64</option>
<option value="arm">arm</option>
<option value="386">386</option>
</select>
</td>
</tr>
<tr>
<td>OS</td>
<td>
<select id="serverOS" style="width:150px" oninput="onChange(this.id, this.value);">
<option value="linux">linux</option>
</select>
</td>
</tr>
<tr>
<td>
<br>
</td>
</tr>
<tr>
<td>IP address</td>
<td width="100%">
<input type="text" style="width:100%" value="ENTER YOUR EXTERNAL VM IP HERE" id="cloakServer" oninput="onChange(this.id, this.value);">
</td>
</tr>
<tr>
<td>Unauthorized HTTPS queries forward to</td>
<td width="100%">
<input type="text" style="width:100%" value="google.com" id="fakehost" oninput="onChange(this.id, this.value);">
</td>
</tr>
<tr>
<td>
<br>
</td>
</tr>
<tr>
<td>Cloak server private key</td>
<td width="100%">
<input type="text" style="width:100%" value="" id="cloakServerPrivate" oninput="updateCloakServer(this.value);">
</td>
</tr>
<tr>
<td>Cloak server public key</td>
<td width="100%"><input type="text" style="width:100%" value="" id="cloakServerPublic" readonly></td>
</tr>
<tr>
<td></td>
<td>
<button type="button" onClick="regenerateCloakServer();">regenerate</button>
</td>
</tr>
<tr>
<td>Cloak Bypass UID (hex)</td>
<td width="100%">
<input type="text" style="width:100%" value="" id="cloakUID" oninput="updateCloakUID(this.value);">
</td>
</tr>
<tr>
<td>Cloak Bypass UID (base64)</td>
<td width="100%">
<input type="text" style="width:100%" value="" id="cloakUIDBase" readonly>
</td>
</tr>
<tr>
<td></td>
<td>
<button type="button" onClick="regenerateCloakUID();">regenerate</button>
</td>
</tr>
<tr>
<td>
<br>
</td>
</tr>
<tr>
<td>Wireguard server private key</td>
<td width="100%">
<input type="text" style="width:100%" value="" id="wireguardServerPrivate" oninput="updateWGServer(this.value);">
</td>
</tr>
<tr>
<td>Wireguard server public key</td>
<td width="100%">
<input type="text" style="width:100%" value="" id="wireguardServerPublic" readonly>
</td>
</tr>
<tr>
<td />
<td>
<button type="button" onClick="regenerateWGServer();">regenerate</button>
</td>
</tr>
</table>
</div>
</div>
<hr align="center" width="90%" color="#dddddd" />
<h2 id="configs" align="center"></h2>
<div class="main">
<div class="container left" id="client">
<textarea style="width: 50%; height: 100%;" id="client"></textarea>
</div>
<div class="container right" id="server">
<textarea style="width: 50%; height: 100%;" id="server"></textarea>
</div>
</div>
<script type="text/javascript" src="curve25519.js"></script>
<script type="text/javascript" src="cloak.js"></script>
<script type="text/javascript" src="config.js"></script>
</html>