-
Notifications
You must be signed in to change notification settings - Fork 2
/
clash.config
59 lines (47 loc) · 2.03 KB
/
clash.config
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
#!/system/bin/sh
#Jika Anda tidak mengerti efeknya, tolong jangan di ubah
ipv6="false"
pref_id="5000"
mark_id="2022"
table_id="2022"
mode="blacklist"
static_dns="8.8.8.8"
# update subconvert
update_interval="0 2 * * *"
# date
date_day=`date "+%a %b %d [%R:%M] %Z %Y"`
# Nama kernel Clash
Clash_bin_name="clash"
Clash_data_dir="/data/adb/clash"
busybox_path="/data/adb/modules/busybox-ndk/system/bin/busybox"
system_packages_file="/data/system/packages.list"
# lokasi Log
Clash_run_path="${Clash_data_dir}/run"
CFM_logs_file="${Clash_run_path}/run.logs"
appuid_file="${Clash_run_path}/appuid.list"
Clash_pid_file="${Clash_run_path}/clash.pid"
# lokasi kernel Clash
Clash_bin_path="${Clash_data_dir}/core/${Clash_bin_name}"
# Lokasi config Clash
Clash_config_file="${Clash_data_dir}/nosignal2.yaml"
Clash_geoip_file="${Clash_data_dir}/Country.mmdb"
filter_packages_file="${Clash_data_dir}/packages.list"
temporary_config_file="${Clash_config_file}"
template_file="${Clash_config_file}"
# Subconvert
auto_subscription="false"
subscription_url=""
# Secara otomatis melewati IP lokal, jangan membuka filter_local dengan mudah, ini dapat menyebabkan perangkat restart lembut setelah dibuka, jika ponsel Anda telah memperoleh IP jaringan publik.
# Restart cfm dulu, bisa bypass ip local, cek apakah normal, lalu pilih try open filter_local, jika perangkat soft restart silahkan close.
# filter_local default "false"
filter_local="false"
# set permissions
Clash_permissions="6755"
Clash_user_group="root:net_admin"
# grep
iptables_wait="iptables -w 100"
Clash_group=`echo ${Clash_user_group} | awk -F ':' '{print $2}'`
Clash_dns_port=`grep "listen" ${template_file} | awk -F ':' '{print $3}'`
Clash_tproxy_port=`grep "tproxy-port" ${template_file} | awk -F ':' '{print $2}'`
# pilih ip di bawah untuk mode fake-ip, dan hapus ip tersebut dari list di bawah
reserved_ip=(0.0.0.0/8 10.0.0.0/8 100.64.0.0/10 127.0.0.0/8 169.254.0.0/16 172.16.0.0/12 192.0.0.0/24 192.0.2.0/24 192.168.0.0/16 198.18.0.0/15 198.51.100.0/24 203.0.113.0/24 224.0.0.0/4 255.255.255.255/32 240.0.0.0/4)