|
@@ -19,24 +19,20 @@ redir_fast_open='true' # TCP Fast Open
|
|
|
redir_verbose='false' # 记录详细日志
|
|
redir_verbose='false' # 记录详细日志
|
|
|
redir_log='/var/log/ss-redir.log' # 日志文件路径
|
|
redir_log='/var/log/ss-redir.log' # 日志文件路径
|
|
|
|
|
|
|
|
-## ss-tunnel 配置
|
|
|
|
|
-tunnel_addr='0.0.0.0' # 监听地址
|
|
|
|
|
-tunnel_port='60053' # 监听端口
|
|
|
|
|
-tunnel_upstream='8.8.8.8:53' # 上游dns服务器
|
|
|
|
|
-tunnel_udp_relay='true' # udp 转发
|
|
|
|
|
-tunnel_no_delay='true' # 禁用Nagle算法
|
|
|
|
|
-tunnel_reuse_port='true' # 允许端口重用
|
|
|
|
|
-tunnel_verbose='false' # 记录详细日志
|
|
|
|
|
-tunnel_log='/var/log/ss-tunnel.log' # 日志文件路径
|
|
|
|
|
|
|
+## dnsforwarder 配置
|
|
|
|
|
+dnsfwd_log='false' # 开启日志记录
|
|
|
|
|
+dnsfwd_logdir='/var/log/' # 日志文件目录
|
|
|
|
|
+dnsfwd_listen='0.0.0.0:60053' # 监听地址 (UDP)
|
|
|
|
|
+dnsfwd_upstream='8.8.8.8:53' # 上游 DNS (TCP)
|
|
|
|
|
|
|
|
## chinadns 配置
|
|
## chinadns 配置
|
|
|
-chinadns_addr='0.0.0.0' # 监听地址
|
|
|
|
|
-chinadns_port='65353' # 监听端口
|
|
|
|
|
-chinadns_upstream="114.114.114.114,127.0.0.1:${tunnel_port}" # 上游dns服务器
|
|
|
|
|
-chinadns_chnroute='/etc/tproxy/chnroute.txt' # 大陆地址段列表
|
|
|
|
|
-chinadns_mutation='true' # DNS 压缩指针
|
|
|
|
|
-chinadns_verbose='false' # 记录详细日志
|
|
|
|
|
-chinadns_log='/var/log/chinadns.log' # 日志文件路径
|
|
|
|
|
|
|
+chinadns_addr='0.0.0.0' # 监听地址
|
|
|
|
|
+chinadns_port='65353' # 监听端口
|
|
|
|
|
+chinadns_upstream="114.114.114.114,127.0.0.1:60053" # 上游dns服务器
|
|
|
|
|
+chinadns_chnroute='/etc/tproxy/chnroute.txt' # 大陆地址段列表
|
|
|
|
|
+chinadns_mutation='true' # DNS 压缩指针
|
|
|
|
|
+chinadns_verbose='false' # 记录详细日志
|
|
|
|
|
+chinadns_log='/var/log/chinadns.log' # 日志文件路径
|
|
|
|
|
|
|
|
## pdnsd 配置
|
|
## pdnsd 配置
|
|
|
pdnsd_global_conf='/etc/tproxy/pdnsd.conf' # 配置文件
|
|
pdnsd_global_conf='/etc/tproxy/pdnsd.conf' # 配置文件
|
|
@@ -66,13 +62,7 @@ pdnsd_source_file='/etc/hosts' # hosts 文件路径
|
|
|
ipset_save_file='/etc/tproxy/chnroute.ipset' # chnip列表文件
|
|
ipset_save_file='/etc/tproxy/chnroute.ipset' # chnip列表文件
|
|
|
|
|
|
|
|
## iptables 配置
|
|
## iptables 配置
|
|
|
-iptables_tproxy_mark='0x2333/0x2333' # tproxy_mark
|
|
|
|
|
-iptables_tproxy_ip='127.0.0.1' # tproxy_on_ip
|
|
|
|
|
-iptables_tproxy_port="${redir_port}" # tproxy_on_port
|
|
|
|
|
-iptables_intranet=(192.168.0.0/16) # 内网网段,多个空格隔开
|
|
|
|
|
-
|
|
|
|
|
-## pbr 配置
|
|
|
|
|
-pbr_table=100 # 路由表-表号
|
|
|
|
|
|
|
+iptables_intranet=(192.168.0.0/16) # 内网网段,多个空格隔开
|
|
|
|
|
|
|
|
## dns 配置
|
|
## dns 配置
|
|
|
dns_original=(114.114.114.114 119.29.29.29 180.76.76.76) # 正常网络的 DNS,最多 3 个
|
|
dns_original=(114.114.114.114 119.29.29.29 180.76.76.76) # 正常网络的 DNS,最多 3 个
|