找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 36998|回复: 69

K3改版官方固件添加SS支持

  [复制链接]
发表于 2017-4-19 16:24 | 显示全部楼层 |阅读模式
本帖最后由 shutup 于 2017-4-19 17:47 编辑

首先,方法还不算完美。但可以用,毕竟在官方固件的基础上,必须妥协一下。论坛关键字处理了,大家明白什么意思就行了。基本要按最原始的方式配置。建议小白多看看相关资料再说。
首先我是按照tianbaoha的帖子,直接在telnet下刷写了他基成了entware的包,理论上是可以直接在官方的基础上做这些的,不过我没由尝试。
下面我们谈谈如何开启ss。基于tianbaoha的基础。
目前entware的包默认配置是作为本地代理,对于我来说没什么用,我还是喜欢透明代理。题外话,其实目前K3的lede已经很不错了,就是屏幕比较纠结,希望后期可以找方法控制它。
  1. opkg install s-s-libev
  2. opkg install china-dns
复制代码
下面开始具体配置
配置ss-redir:
  1. [K3 /tmp/media/nand/opt/etc/init.d]# cat S23s-s_redir
  2. #!/bin/sh

  3. ENABLED=yes
  4. #ENABLED=no
  5. PROCS=ss-redir
  6. ARGS="-c /opt/etc/s-s.json -l 1234 --mtu 1492 -f /var/run/ss-redir-1.pid"
  7. PREARGS=""
  8. DESC=$PROCS
  9. PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

  10. . /opt/etc/init.d/rc.func
复制代码
配置ss-tunnel:
  1. [K3 /tmp/media/nand/opt/etc/init.d]# cat S24s-s_tunnel
  2. #!/bin/sh

  3. ENABLED=yes
  4. #ENABLED=no
  5. PROCS=ss-tunnel
  6. ARGS="-c /opt/etc/s-s.json -u -l 5300 -L 8.8.4.4:53 --mtu 1492 -f /var/run/ss-tunnel-1.pid"
  7. PREARGS=""
  8. DESC=$PROCS
  9. PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

  10. . /opt/etc/init.d/rc.func
复制代码
配置china-dns:
  1. [K3 /tmp/media/nand/opt/etc/init.d]# cat S56china-dns
  2. #!/bin/sh

  3. ENABLED=yes
  4. #ENABLED=no
  5. PROCS=china-dns
  6. ARGS="-p 5353 -s 223.5.5.5,127.0.0.1:5300 -c /opt/etc/china-dns_chnroute.txt -d -m"
  7. PREARGS=""
  8. DESC=$PROCS
  9. PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

  10. . /opt/etc/init.d/rc.func
复制代码


配置dnsmasq:
  1. [K3 /tmp/media/nand/opt/etc/init.d]# cat S25dnsmasq
  2. #!/bin/sh

  3. ENABLED=yes
  4. #ENABLED=no
  5. PROCS=dnsmasq
  6. ARGS="-i br0 -C /opt/etc/dnsmasq.conf"
  7. PREARGS=""
  8. DESC=$PROCS
  9. PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

  10. . /opt/etc/init.d/rc.func
复制代码
由于斐讯官方固件在启动时就会开启dnsmasq,因此,我们需要杀掉它在重新启动。
  1. /tmp/media/nand/opt]# cat started_script.sh
  2. #!/bin/sh
  3. # add by tianbaoha

  4. sh /opt/etc/iptables-return-cn.sh && killall dnsmasq && dnsmasq -i br0 -C /opt/etc/dnsmasq.conf
复制代码
对了sh /opt/etc/iptables-return-cn.sh 是进行iptables规则添加,不过目前发现一个问题,看起来添加了,但没生效,必须重新添加一遍。不知道是不是执行的时机不对。由了解的朋友帮忙解答一下。
目前可以确定的是ss和china-dns/dnsmasq都可以自启动,就是规则添加不正常。希望大神解惑。
  1. [K3 /tmp/media/nand/opt/etc]# cat dnsmasq.conf
  2. no-hosts
  3. no-resolv
  4. server=127.0.0.1#5353
  5. #server=127.0.0.1:5353
复制代码



下面是透明代理的规则



大神修改固件地址
https://www.right.com.cn/forum/thread-212725-1-1.html


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

评分

参与人数 5恩山币 +5 收起 理由
2711106269 + 1 我来恩山就是为了看你!
routerbox + 1 我来恩山就是为了看你!
zhengxinhn + 1 亲,你这么厉害,我想做你的经纪人!
zhete + 1 亲,你太牛逼了,走,我请你吃鳇鱼头去~~~
8850 + 1 亲,你太牛逼了,走,我请你吃鳇鱼头去~~~

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
发表于 2017-4-19 16:25 | 显示全部楼层
感谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-4-19 16:27 | 显示全部楼层
感谢辛勤劳动!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-4-19 16:28 | 显示全部楼层
支持一波        
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-4-19 16:34 | 显示全部楼层
本帖最后由 8850 于 2017-4-19 16:38 编辑

仍然像看天书一样,,,,,都不知道去哪儿配置,,,,,,,楼主可以说的更清楚一些吗?实在汗颜。莫非是所有代码都是直接复制,回车就成????无论怎样,先给楼主加个分再说
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-4-19 17:06 | 显示全部楼层
好,记住你了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-4-19 17:36 来自手机 | 显示全部楼层
不知道两个月后有没有能用的梅林
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-4-19 18:06 | 显示全部楼层
entware平台没有$$客户端和阿里DDNS客户端。。。。  我对$$不感兴趣。

目前装了FTP 但是不会配置用户密码暂时不能用,部署了两个下载工具和广告过滤。

只想问一下,能不能装阿里DDNS插件,自带的DDNS花生壳映射怎么用。。。。主机名称填什么。。。。。  
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-4-19 20:21 | 显示全部楼层
谢谢楼主经验共享啊!!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-4-19 20:27 | 显示全部楼层
谢谢分享~!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-4-20 09:11 | 显示全部楼层
才人辈出啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-4-20 10:32 | 显示全部楼层
谢谢分享,试一试效果。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-4-20 11:29 来自手机 | 显示全部楼层
不懂,ss到底咋用。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-4-20 13:46 | 显示全部楼层
本帖最后由 wmjan 于 2017-4-20 13:49 编辑

1、ss-redir、dnsmasq和ss-tunnel都需要额外安装吗???没找到相关配置文件。
2、china-dns配置文件中ARGS="-l /opt/etc/china-dns_iplist.txt -c /opt/etc/china-dns_chnroute.txt -p 5353"这行为什么不用china-dns_iplist.txt ??
3、也没看到你配置opt/etc/s-s.json文件

点评

shadow socks-libev 装好之后就会有ss-redir、ss-tunnel等文件。  详情 回复 发表于 2017-4-22 20:29
1,ss自己装 2,我搞的是chnroute 3,ss的服务器配置没必要贴吧。。。  详情 回复 发表于 2017-4-20 15:08
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-4-20 15:08 来自手机 | 显示全部楼层
wmjan 发表于 2017-4-20 13:46
1、ss-redir、dnsmasq和ss-tunnel都需要额外安装吗???没找到相关配置文件。
2、china-dns配置文件中ARG ...

1,ss自己装
2,我搞的是chnroute
3,ss的服务器配置没必要贴吧。。。

点评

因为看你安装命令是安装s-s-libev 配置又是ss-redir /opt/etc/dnsmasq.conf也没看到这个 哎,总之还是没有搞定 另外请教下有没有openv p n的安装方案?》  详情 回复 发表于 2017-4-20 15:19
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-28 23:26

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表