Xiaoyi
Xiaoyi
我觉得加入AS支持的想法很好,这应该可以方便bestroutetb的使用。 https://bgp.he.net/irr/as-set/AS-GOOGLE 现在不能访问,这里的数据是如何访问的?ARIN和其他NIC都只提供了ASN查询,如何找到对应的网段? 对于后边的问题,你可以直接插入网段到参数里: --route.net=CN --route.vpn=US,JP,GB,HK,64.9.224.0/24,172.217.0.0/24 虽然不如提议中的方便,但是这个功能现在就已经支持了:)
这个似乎可以解决查询问题:https://github.com/RIPE-NCC/whois/wiki/WHOIS-REST-API 大概有现成的package可以用。
@Arnie97 欢迎发 PR 给我 :)
> 迫于 tcp reset, 我又来填坑了,哈哈。 > > https://github.com/Arnie97/bestroutetb/commit/00f5ff4b5c33968c196f29970e3b40a4dae48322 这次是直接用的五大注册局(:D 原来是不是漏了其中最没有存在感的一个)官方数据,质量应该有保障 > > 是否有必要把 byASN 从 byCountry 里分出来用另一个 json key?我准备提 PR 了 直接 byASN 的可用性不强,还是需要一个可以用名称反向查询的工具。 另外,根据 https://www.apnic.net/about-apnic/corporate-documents/documents/resource-guidelines/rir-statistics-exchange-format/ extension 字段没有约束格式,所以你的写法存在潜在的可用性风险
这个项目我已经不在维护,欢迎提出 PR 对此进行修复。 >
Thanks for the contribution. I'll look into it this weekend.
请看一下[wiki](https://github.com/ashi009/bestroutetb/wiki/PPP-on-OpenWRT)上的示例。直观感觉用例是相同的。
Thanks for your contribution. I'll review the code soon (but very unlikely before Oct 1st.)
大致看了一下用自定义 formatter 应该是可以的 On May 22, 2014 10:24 AM, "pupie" [email protected] wrote: > https://gist.github.com/wen-long/8644243 > > 参考这个gist,请问bestroute有没有方法生成shadowsocks的ss-redir透明模式的iptalbes?(针对中国IP过滤默认不走代理) > > — > Reply to this email directly or view it on...
``` shell #!/bin/sh ./generate.sh route.sh \ --net=cn,hk,kr,gb,de,it,0.0.0.0/0, \ --vpn=us,ie \ --nodefaultgw=1 \ --profile=custom \ --header="#!/bin/sh iptables -t nat -N SHADOWSOCKS # 在 nat 表中创建新链 iptables -t nat -A SHADOWSOCKS -p...