Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new generator for routeros #53

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Conversation

tomasen
Copy link

@tomasen tomasen commented Jan 6, 2016

routeros

  • 下载 chnroutes.py
  • 从终端进入下载目录, 执行 python chnroutes.py -p routeros, 执行之后会生成 router.txt.
  • 粘贴 router.txt 中的脚本至 routeros 的命令行,会生成名为 chnroutes 的 address-list.

tomasen and others added 18 commits January 6, 2016 18:49
add a golang version to list the public IP that not in Asia
修改了not-asia,从原来的用正则抓取改为从0.0.0.0~255.255.255.255中减去asia(包括CN)的IP段,并去掉了私有段
。但是仍然可能存在一些问题。在掩码imask上出现了一些类似254.255.255.0或者223.255.255.2这样不是高位全1低位全0的掩
码。在ip段的合并上,not-asia已经做了合并的处理,但是aisa和cn上的合并还没有想好,没有进行处理。
@stevemorrisLian
Copy link

stevemorrisLian commented Aug 1, 2016

router.txt 应该是router.rsc文件,这样放进路由器后可以直接执行。对于许多内存小的设备,copy整个txt文件7000条记录会造成死机,脚本文件就不会,还可以用其他脚本来运行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants