Git Product home page Git Product logo

plan_c's Introduction

[merlinclash]

此项目提供用于paldier带软件中心固件路由器的merlinclash。

安装包放在bin目录对应架构下,可以看下面的列表查找对应架构

history_package目录为备份


架构查看方法: 以http://router.asus.com/Main_Soft_center.asp为准

机型/固件支持

mips离线安装包仅能在mips架构机器上使用!具体支持机型如下:

注意:

  • 目前此系列必须挂载U盘才能开启软件中心,同时因为驱动bug的原因无法支持fat格式,优先推荐ext格式,且推荐读写速度高的U盘
  • 强烈建议使用chrome或者chrouium内核的或者firefox浏览器!以保证最佳兼容性!

arm离线安装包仅能在博通平台,且cpu为bcm4708/bcm4709的armv7架构的机器上使用!

arm支持机型如下:

注意:

  • 强烈建议使用chrome或者chrouium内核的或者firefox浏览器!以保证最佳兼容性!

arm64离线安装包支持所有arm64/aarch64架构的机器上使用!

arm64支持机型如下:

注意:

  • 目前此系列当jffs小于40m时必须挂载U盘才能开启软件中心,同时因为驱动bug的原因无法支持fat格式,优先推荐ext格式,且推荐读写速度高的U盘
  • 强烈建议使用chrome或者chrouium内核的或者firefox浏览器!以保证最佳兼容性!

armng离线安装包能在内核为4.1和3.14的armv7架构的机器上使用!

armng支持机型如下:

注意:

  • 目前此系列当jffs小于40m时必须挂载U盘才能开启软件中心,同时因为驱动bug的原因无法支持fat格式,优先推荐ext格式,且推荐读写速度高的U盘
  • 强烈建议使用chrome或者chrouium内核的或者firefox浏览器!以保证最佳兼容性!

mipsel离线安装包仅能在mipsel架构的机器上使用!

mipsel支持机型:

注意:

  • 目前此系列必须挂载U盘才能开启软件中心,同时因为驱动bug的原因无法支持fat格式,优先推荐ext格式,且推荐读写速度高的U盘
  • 强烈建议使用chrome或者chrouium内核的或者firefox浏览器!以保证最佳兼容性!

plan_c's People

Contributors

paldier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

plan_c's Issues

armng 1.2 无法添加配置

无论手动上传yaml,导入机场订阅链接或是订阅转换都无法添加配置,尽管显示成功,但是merlinclash下的文件都没有改动

clash bug

订阅的yaml没有替换head和dns,
clash_yaml_sub.sh 里的yaml_tmp和clash_online_yaml.sh 保存的路径不一致

清除绕行规则导致的清除了其他的iptables规则

clashconfig.shflush_nat方法里面,有一段是清除绕行规则的,源码如下。

#20200725清除设备绕行,测试++
ipt_1=$(echo $lan_ipaddr | awk -F"." '{print $1}')
ipt_2=$(echo $lan_ipaddr | awk -F"." '{print $2}')
ipt_3=$ipt_1.$ipt_2
pass_indexs=$(iptables -nvL PREROUTING -t nat | sed 1,2d |  grep 'RETURN' | sed -n "/$ipt_3/=" | sort -r)
for pass_index in $pass_indexs; do
	iptables -t nat -D PREROUTING $pass_index >/dev/null 2>&1
	iptables -t mangle -D PREROUTING $pass_index >/dev/null 2>&1
done

这一段代码中筛选绕行设备的grep 'RETURN'会导致sed的行数出错。接下来导致删除绕行规则时删除了不相干的规则。

路由器执行示例:

执行脚本:
iptables -nvL PREROUTING -t nat --line-number|sed 1,2d

执行结果:

1        0     0 cloud_music  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            match-set music dst
2    25623 1411K KOOLPROXY  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           
3     2268  365K ACCEPT     all  --  eth0   *       0.0.0.0/0            224.0.0.0/4         
4     333K   32M GAME_VSERVER  all  --  *      *       0.0.0.0/0            马赛克       
5     333K   32M VSERVER    all  --  *      *       0.0.0.0/0            马赛克       
6     296K   30M GAME_VSERVER  all  --  *      *       0.0.0.0/0            马赛克       
7        0     0 VSERVER    all  --  *      *       0.0.0.0/0            192.168.1.3         
8        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:21
9     7806  417K merlinclash  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           
10     105  6540 clash_dns  udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:53

这里是正确的行号。假设我们加上grep就会发现行号和预期不一致了。(由于我的规则已经手工清除了绕行RETURN,这里用ACCEPT代替)。

执行脚本:
iptables -nvL PREROUTING -t nat|sed 1,2d|grep 'ACCEPT'|sed -n '/0.0/='

执行结果:

1
2

1和2已经不是我们期望的行号结果了,真实我们想要的其实是3和8。

我的思路打印出nat的行号,然后使用awk拿到第一列的结果作为行号的输出,不知是否兼容性很好。

执行脚本:
iptables -nvL PREROUTING -t nat --line-number|sed 1,2d|grep 'ACCEPT'|grep '0.0'|awk '{print $1}'|sort -r

执行结果:

8
3

对应源代码中的修改,可能就是改为如下。

#20200725清除设备绕行,测试++
ipt_1=$(echo $lan_ipaddr | awk -F"." '{print $1}')  
ipt_2=$(echo $lan_ipaddr | awk -F"." '{print $2}')  
ipt_3=$ipt_1.$ipt_2  
pass_indexs=$(iptables -nvL PREROUTING -t nat --line-number | sed 1,2d |  grep 'RETURN' | grep "$ipt_3" | awk '{print $1}' | sort -r)  
for pass_index in $pass_indexs; do  
	iptables -t nat -D PREROUTING $pass_index >/dev/null 2>&1  
	iptables -t mangle -D PREROUTING $pass_index >/dev/null 2>&1  
done  

未经过严谨测试。

离线安装失败,路径错误

2020年08月11日 03:02:25】: ====================== step 1 ===========================
【2020年08月11日 03:02:25】: 开启软件离线安装!
【2020年08月11日 03:02:25】: /tmp/upload目录下检测到上传的离线安装包merlinclash.tar.gz,大小:11.3M
【2020年08月11日 03:02:25】: 尝试解压离线安装包离线安装包
【2020年08月11日 03:02:26】: 解压完成!
【2020年08月11日 03:02:26】: 准备安装merlinclash插件!
【2020年08月11日 03:02:26】: 找到安装脚本!
【2020年08月11日 03:02:26】: 运行安装脚本...
【2020年08月11日 03:02:26】: ====================== step 2 ===========================
/tmp/merlinclash/install.sh: source: line 3: can't open '/jffs/softcenter/scripts/base.sh'
【2020年08月11日 03:02:27】: 因为merlinclash插件安装失败!退出离线安装!
【2020年08月11日 03:02:27】: ======================== end ============================

我的AC86U Merlin改版不存在/jffs/softcenter这个路径,软件中心版本1.6.1,正确的路径应该是/jffs/.koolshare/scripts吧?

无法开启clash

上传完配置文件,打开时,会自己关闭,开了看门狗也没用

无法启用ipv6

配置文件名称.yaml里添加了ipv6:true,但是仍然无法连接ipv6节点

07.07 b1 bug

订阅成功,但是没有yaml文件
手动复制yaml到yaml_bak下开启提示 :Clash文件头必要字段缺失,请检查port、socks-port、redir-port、allow-lan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.