Posts

Showing posts from March, 2022

OpenWrt 访问光猫 简单稳定

Image
测试可通过SSH连接并运行 ifconfig eth1 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255   iptables -I forwarding_rule -d 192.168.1.1 -j ACCEPT iptables -t nat -I postrouting_rule -d 192.168.1.1 -j MASQUERADE  eth1 为接光猫的口,自行修改即可。 图 但是,iptables是在内存中的,所以重启会失效。个人不敢通过ssh添加开机项,因为Linux发行版不一样,开机启动项的书写方法也会不一样,之前有过一次惨痛教训,配置NPS的时候,导致设备‘失联’。 所以可以 通过自启动命令运行 。 配置开机启动 完美运行

通过Cloudflare Workers转换订阅

Image
 我去年7月6号发布了个利用Python分享订阅的,其实部署起来非常不稳定。 所以我又弄了个基于Cloudflare Workers 的,很久以前就弄好了,但是忘了有这事,今天整理Blog,来补充一下。 这个意图是使被贡献者不用天天换订阅链接,只要workers里改改就行了。 addEventListener( "fetch" , event => { event.respondWith(handleRequest(event.request)) }) async function handleRequest(request) { let { pathname } = new URL (request.url); if (pathname== "/example" ||pathname== "/example/" ) { return new Response ( "Hello worker!" , { headers: { "content-type" : "text/plain" }}) } //fast-fish if (pathname== "/archived/fast-fish/v2ray" ||pathname== "/archived/fast-fish/v2ray/" ) { return fetch( `https://bigairport.icu/api/v1/client/subscribe?token=98` ); } if (pathname== "/fast-fish/v2ray" ||pathname== "/fast-fish/v2ray/" ||pathname== "/fast-fish/ssr" ||pathname== "/fast-fish/ssr/" ) { return fetch( `https://bigairport.icu/api/v1/client/subscribe?token=98`...

CASIO fx-991CN X Bug

Image
  Fully Dead Demo From Danny