在openwrt中通过命令行添加shadowsocksr节点并启动

问题描述 投票:0回答:1

如何使用命令行控制shadowsocksr并更新节点

其实我尝试了好几次都成功了,很想分享一下,但还是有一些疑问:

在 /etc/config/shadowsocksr 中,这些值到底代表什么? 喜欢

option netflix_proxy '0'
option threads '0'
option dports '2'
option pdnsd_enable '1'
option monitor_enable '1'
option default_packet_encoding 'xudp'
option chnroute_url 'https://ispip.clang.cn/all_cn.txt'
option nfip_url 'https://fastly.jsdelivr.net/gh/QiuSimons/Netflix_IP/NF_only.txt'
option netflix_enable '1'
option adblock '0'
option netflix_server 'same'
option enable_switch '0'
option udp_relay_server 'same'
option run_mode 'gfw'
option gfwlist_url 'https://fastly.jsdelivr.net/gh/YW5vbnltb3Vz/domain-list-community@release/gfwlist.txt'
option tunnel_forward '8.8.8.8:53'
option global_server 'cfg064a8f'

option proxy '0'
option auto_update_time '2'
option auto_update '1'
option switch '1'
option enable_server '0'
vpn openwrt
1个回答
0
投票

因为我不知道您使用的是哪个版本,并且来自

shadowsocksr
的最新版本配置与您的配置不匹配 https://github.com/openwrt/packages/blob/master/net/shadowsocks-libev/files/shadowsocks-libev.config

根据我的经验,查看配置如何读取并输入到初始化脚本中总是更快https://github.com/openwrt/packages/blob/master/net/shadowsocks-libev/files/shadowsocks- libev.init#L88C38-L88C46

从上面的URL中可以看到配置被翻译成JSON字符串并作为运行参数。我希望这可以帮助你。

© www.soinside.com 2019 - 2024. All rights reserved.