-
Notifications
You must be signed in to change notification settings - Fork 2
/
default
351 lines (290 loc) · 7.38 KB
/
default
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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
# -*- mode: sh; -*-
# port=22
# intra_host='[email protected]'
# intra_port='22'
##### opkg #####
config_opkg_enabled=0
##### pubkey #####
config_pubkey_enabled=1
##### bin #####
config_bin_enabled=1
##### freeradius #####
config_freeradius_enabled=0
config_freeradius_eap_peap_enabled=0
config_freeradius_clients=''
config_freeradius_secret=''
config_freeradius_ca=''
config_freeradius_cert=''
config_freeradius_dh=''
config_freeradius_users='
# user1 pass1
# user2 pass2
'
##### network #####
config_network_enabled=1
config_network="
## merge network, commit network, and reload network if commit changed
# package network
## example for dhcp on wan
# config interface 'wan'
# option proto 'pppoe'
## example for pppoe on wan
# config interface 'wan'
# option proto 'pppoe'
# option username ''
# option password ''
# option ipv6 '0'
"
config_wireless_country='CN'
config_wireless="
## merge wireless, commit wireless, and reload network if commit changed
# package wireless # network
# config wifi-device 'radio0'
# option channel '13'
# option htmode 'HT40'
# option disabled '0'
# config wifi-device 'radio1'
# option channel '149'
# option htmode 'VHT80'
# option disabled '0'
# config wifi-iface 'iface0'
# option ssid ''
# option encryption 'psk2'
# option key ''
# option disabled '0'
# config wifi-iface 'iface1'
# option ssid ''
# option encryption 'wpa2'
# option server '127.0.0.1'
# option key ''
# option disabled '0'
"
config_ieee80211r_enabled='0'
## config both iface0 and iface1
# config_ieee80211r_ifaces='0 1'
## config for iface0
# config_ieee80211r_bssid0='11:11:11:11:11:11' ## bssid of iface0
# config_ieee80211r_macs0='11:11:11:11:11:11 22:22:22:22:22:22' ## bssid of all nodes in the same ieee80211r domain
# config_ieee80211r_key0='00000000000000000000000000000000' ## use `openssl rand -hex 16` to generate
## config for iface1
# config_ieee80211r_bssid1='33:33:33:33:33:33' ## bssid of iface1
# config_ieee80211r_macs1='33:33:33:33:33:33 44:44:44:44:44:44' ## bssid of all nodes in the same ieee80211r domain
# config_ieee80211r_key1='00000000000000000000000000000001' ## use `openssl rand -hex 16` to generate
##### network6 #####
config_network6_enabled=1
config_network6="
# package network
# config interface 'wan6'
# option proto 'none'
# config interface 'wan6'
# option proto '6to4'
"
config_henet="
# package network
# config interface 'henet'
# option peeraddr ''
# option ip6addr ''
# option ip6prefix ''
# option tunnelid ''
# option username ''
# option password ''
"
##### common #####
config_common_enabled=1
config_system="
package system
config system 'system'
option hostname 'OpenWrt'
"
config_packages_common='diffutils wpa-cli'
config_packages=''
config_root_password='' # mkpasswd -m md5
config_dhcp_host='
# 192.168.1.100 11:11:11:11:11:11
# 192.168.1.101 22:22:22:22:22:22 33:33:33:33:33:33
'
##### adblock #####
config_adblock_enabled=0
##### firewall #####
config_firewall_enabled=0
config_firewall_flow_offloading=0
config_firewall="
# package firewall
# config zone 'zone_lan'
# option masq '1'
# option masq_dest '192.168.1.100/32 192.168.1.101/32'
"
config_redirect='
# tcp 22220
# tcp 22221 - 22
# tcp 22222 192.168.1.2
# tcpudp 22223 192.168.1.2 22
# udp 22224:22229 192.168.1.2
'
##### ddns #####
config_ddns_enabled=0
config_ddns="
# package ddns
# config service 'duckdns'
# option enabled '1'
# option service_name 'duckdns.org'
# option use_https '1'
# option cacert '/etc/ssl/certs/ca-certificates.crt'
# option domain ''
# option username ''
# option password ''
# option ip_network 'pppoe-wan'
# option interface 'pppoe-wan'
"
##### sqm #####
config_sqm_enabled=0
config_sqm="
## merge sqm, but no commit and no reload
# package sqm # -
# config queue 'wan'
# option enabled '1'
# option script 'piece_of_cake.qos'
# option download ''
# option upload ''
"
##### guest #####
config_guest_enabled=0
config_guest="
# package network
# config interface 'guest'
# option type 'bridge'
# option proto 'static'
# option ipaddr '192.168.10.1'
# option netmask '255.255.255.0'
# package wireless # network
# config wifi-iface 'iface0'
# option device 'radio0'
# option mode 'ap'
# option ssid ''
# option key ''
# option network 'guest'
# option encryption 'psk2'
# option isolate '1'
"
config_guest_download='800' # download means router <- client
config_guest_upload='8000' # upload means router -> client
##### iptv #####
config_iptv_enabled=0
config_iptv="
# package network
# config interface 'iptv'
# option type 'bridge'
# option ifname 'eth0.3'
# option proto 'static'
# option ipaddr '192.168.1.3'
# option netmask '255.255.255.0'
# option ipv6 '0'
# package firewall
# config zone 'zone_wan'
# list network 'iptv'
"
##### watchcat #####
config_watchcat_enabled=0
config_watchcat_pinghosts='www.baidu.com'
##### shadowsocks #####
config_shadowsocks_enabled=0
config_shadowsocks="
# config ss_rules 'ss_rules'
# option redir_tcp 'redir0'
# option redir_udp 'redir0'
# option local_default 'checkdst'
# option src_default 'checkdst'
# option dst_ips_bypass_file '/etc/chn-cidr'
# option ipt_args '-p tcp -m multiport --dports 22,53,80,443,587,993'
# config ss_redir 'redir0'
# option server 'server0'
# option local_address '0.0.0.0'
# option local_port '1100'
# option mode 'tcp_and_udp'
# option timeout '60'
# option fast_open '1'
# option reuse_port '1'
# config server 'server0'
# option server ''
# option server_port ''
# option password ''
# option method ''
"
##### unbound #####
config_unbound_enabled=0
config_unbound_forwarder='8.8.8.8'
config_unbound_tcp='yes'
##### chn_domains #####
config_chn_domains_enabled=0
config_chn_domains_remote_dns='127.0.0.1#5453'
config_chn_domains_dnsmasq_full='1'
##### vlmcsd #####
config_vlmcsd_enabled=0
##### mwan #####
config_mwan_enabled=0
config_mwan=0
config_mwan_cron_url=http://www.189.cn
##### miniupnpd #####
config_miniupnpd_enabled=0
##### wireguard #####
config_wireguard_enabled=0
config_wireguard=''
##### asterisk #####
config_asterisk_enabled=0
config_asterisk_use_pjsip=0
config_asterisk_sip_port=5060
config_asterisk_rtp_start=10000
config_asterisk_rtp_end=20000
config_asterisk_sip_peers='
# 001 pass001
# 002 pass002
'
##### yate #####
config_yate_enabled=0
config_yate_sip_port=5060
config_yate_sip_type='udp' # udp, tcp, tls
config_yate_sip_useragent='YATE/2.0.0'
config_yate_sip_realm='Yate'
config_yate_rtp_minport=10000
config_yate_rtp_maxport=20000
config_yate_cert=''
config_yate_users='
# 001 pass001
# 002 pass002
'
##### acme #####
config_acme_enabled=0
config_acme="
# package acme
# config acme 'acme'
# option account_email ''
# option debug '0'
# config cert 'foo'
# option enabled '1'
# option use_staging '0'
# option keylength '2048'
# option update_uhttpd '0'
# option dns 'dns_dynu'
# list domains -
# list domains 'foo.dynu.net'
# list domains '*.foo.dynu.net'
"
##### avahi #####
config_avahi_enabled=0
##### fwknop #####
config_fwknop_enabled=0
##### disable_uhttpd #####
config_disable_uhttpd_enabled=1
##### clean_conffiles #####
config_clean_conffiles_enabled=1
##### pcap_dnsproxy #####
# config_pcap_dnsproxy_dns=''
# config_pcap_dnsproxy_protocol=''
##### tether #####
config_tether_enabled=0
# config_tether_rndis=usb0
# config_tether_wlan=iface0
##### sysupgrade #####
# sysupgrade='mw4530r-v1'
# sysupgrade='zbt-wg3526-16M'