-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshadowsocks.skeleton
154 lines (154 loc) · 3.4 KB
/
shadowsocks.skeleton
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
{
name: `Shadowsocks`,
description: `A secure socks5 proxy, designed to protect your Internet traffic`,
images: {
x64: `shadowsocks/shadowsocks-libev`
},
uuid: `6C6D77BF-A8F5-44B1-B5E9-BEA868B9DF57`,
tags: [
`Proxy`, `VPN`, `Networking`
],
actions: [
{
type: `Header`,
title: `Configuration`
},
{
type: `EditEnvironment`,
name: `SERVER_PORT`,
description: `TCP port to access the proxy`,
id: `port`,
initValue: `{{__RANDOMPORTS(1)}}`
},
{
type: `EditEnvironment`,
name: `PASSWORD`,
description: `Password`,
id: `pass`
},
{
type: `EditEnvironment`,
name: `DNS_ADDRS`,
description: `DNS server`,
visible: `property.Advanced`
},
{
type: `EditEnvironment`,
name: `TIMEOUT`,
description: `Connection timeout (seconds)`,
visible: `property.Advanced`
},
{
type: `EditEnvironment`,
name: `ENCRYPTION_METHOD`,
description: `Encryption method`,
options: [
{
name: `aes-256-gcm`,
value: `aes-256-gcm`
},
{
name: `aes-192-gcm`,
value: `aes-192-gcm`
},
{
name: `aes-128-gcm`,
value: `aes-128-gcm`
},
{
name: `chacha20-ietf-poly1305`,
value: `chacha20-ietf-poly1305`
}
],
id: `meth`,
visible: `property.Advanced`
},
{
type: `Header`,
title: `Client Configuration`
},
{
type: `Text`,
text: `To add this proxy to a client, use the ss:// URI below:`
},
{
type: `Text`,
text: ``,
id: `ss`
},
{
type: `Text`,
text: `{{__GLOBALNAME}}`,
id: `gn`,
visible: false
},
{
type: `Script`,
script: `
const ss = document.querySelector('#ss');
const pass = document.querySelector('#pass input');
const port = document.querySelector('#port input');
const meth = document.querySelector('#meth select');
const globalname = document.querySelector('#gn').innerText;
setInterval(function() {
const uri = '<b>ss://' + btoa(
meth.value + ':' + pass.value + '@' + globalname + ':' + port.value
) + '</b>';
if (uri != ss.innerHTML) {
ss.innerHTML = uri;
}
}, 1000);`
},
{
type: `Text`,
text: `UPnP is not available on your network. Please manually forward TCP port {{SERVER_PORT}} from your router to {{__HOMEIP}}{{__HOMEIP6 ? "and " + __HOMEIP6 : ""}}.`,
visible: `!property.UPnPAvailable`
}
],
properties: [
{
type: `Feature`,
name: `localtime`
},
{
type: `Environment`,
name: `PASSWORD`
},
{
type: `Environment`,
name: `SERVER_NAME`,
value: `0.0.0.0`
},
{
type: `Environment`,
name: `SERVER_PORT`
},
{
type: `Environment`,
name: `ENCRYPTION_METHOD`,
value: `aes-256-gcm`
},
{
type: `Environment`,
name: `TIMEOUT`,
value: `300`
},
{
type: `Environment`,
name: `DNS_ADDRS`,
value: `{{__DNSSERVER}}`
},
{
type: `Port`,
name: `SERVER_PORT`,
port: `{{SERVER_PORT}}`,
protocol: `TCP`,
nat: true
},
{
type: `Network`,
name: `primary`,
value: `home`
}
]
}