V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  lenovo  ›  全部回复第 19 页 / 共 30 页
回复总数  594
1 ... 15  16  17  18  19  20  21  22  23  24 ... 30  
2015-05-06 09:37:21 +08:00
回复了 lenovo 创建的主题 问与答 这样弄 ocserv 的 no-route 路由表有问题吗?
@kkxxxxxxx 服务器端要修改src/vpn.h后重新编译才行,要不就是只接收96条,你发的链接里刚好是96条

为尽可能实现精准的国内外智能分流,需要修改src/vpn.h,增大路由表数量:找到#define MAX_CONFIG_ENTRIES 96这一行(第417行),把96改成200以上(Cisco AnyConnect最多只能接收200条路由表)
2015-05-05 17:15:27 +08:00
回复了 lenovo 创建的主题 问与答 这样弄 ocserv 的 no-route 路由表有问题吗?
@bellchu 部署在 /t/187793 里的VPS上了,你可以试试...
2015-05-05 15:23:28 +08:00
回复了 lenovo 创建的主题 问与答 这样弄 ocserv 的 no-route 路由表有问题吗?
@LazyZhu 含内网的只有192.160.0.0/11这一条有问题,最后分开弄了,要不然PC端整条都接收不到
2015-05-05 15:21:04 +08:00
回复了 lenovo 创建的主题 问与答 这样弄 ocserv 的 no-route 路由表有问题吗?
@kkxxxxxxx 这个路由表是指定哪些IP不走VPN,没在这里列出的全部走VPN了,Instagram应该没有国内的IP吧
2015-05-05 00:55:47 +08:00
回复了 lenovo 创建的主题 问与答 这样弄 ocserv 的 no-route 路由表有问题吗?
@LazyZhu 多谢,最终结果:
不含内网147行: https://cnlic.com/wp-content/uploads/2015/04/cn-no-route.txt
包含内网155行: https://cnlic.com/wp-content/uploads/2015/04/cn-no-route2.txt

最后贴个在线转换合并的工具网页,很不错:)
http://www.stopforumspam.com/aggregate
2015-05-05 00:00:07 +08:00
回复了 lisonfan 创建的主题 微软 微软发布 Office 2016 预览版 现已可下载
已经用上2个多月了,企业版的可以去 https://cnlic.com/share/office.html#o2016 下载安装。
2015-05-04 23:12:34 +08:00
回复了 lenovo 创建的主题 问与答 这样弄 ocserv 的 no-route 路由表有问题吗?
@LazyZhu 内网好像自动丢弃了,192.160.0.0/11 含了192.168.x.x,就不接收
排除以后好了
192.160.0.0/255.248.0.0
192.169.0.0/255.255.0.0
192.170.0.0/255.254.0.0
192.172.0.0/255.252.0.0
192.176.0.0/255.240.0.0
2015-05-04 22:48:24 +08:00
回复了 lenovo 创建的主题 问与答 这样弄 ocserv 的 no-route 路由表有问题吗?
@LazyZhu PC客户端不知为何少一条192.160.0.0/11,iOS上是正常的
http://i.imgur.com/K8d9hIo.png
2015-05-04 22:13:29 +08:00
回复了 lenovo 创建的主题 问与答 这样弄 ocserv 的 no-route 路由表有问题吗?
CIDR不行:(

no-route = 1.0.0.0/255.128.0.0
no-route = 1.160.0.0/255.224.0.0
no-route = 1.192.0.0/255.224.0.0
no-route = 14.0.0.0/255.224.0.0
no-route = 14.96.0.0/255.224.0.0
no-route = 14.128.0.0/255.224.0.0
no-route = 14.192.0.0/255.224.0.0
no-route = 27.0.0.0/255.192.0.0
no-route = 27.96.0.0/255.224.0.0
no-route = 27.128.0.0/255.128.0.0
no-route = 36.0.0.0/255.192.0.0
no-route = 36.96.0.0/255.224.0.0
no-route = 36.128.0.0/255.128.0.0
no-route = 39.0.0.0/255.224.0.0
no-route = 39.64.0.0/255.192.0.0
no-route = 39.128.0.0/255.192.0.0
no-route = 42.0.0.0/255.0.0.0
no-route = 43.224.0.0/255.224.0.0
no-route = 45.64.0.0/255.192.0.0
no-route = 47.64.0.0/255.192.0.0
no-route = 49.0.0.0/255.128.0.0
no-route = 49.128.0.0/255.224.0.0
no-route = 49.192.0.0/255.192.0.0
no-route = 54.192.0.0/255.224.0.0
no-route = 58.0.0.0/255.128.0.0
no-route = 58.128.0.0/255.224.0.0
no-route = 58.192.0.0/255.192.0.0
no-route = 59.32.0.0/255.224.0.0
no-route = 59.64.0.0/255.192.0.0
no-route = 59.128.0.0/255.128.0.0
no-route = 60.0.0.0/255.192.0.0
no-route = 60.160.0.0/255.224.0.0
no-route = 60.192.0.0/255.192.0.0
no-route = 61.0.0.0/255.192.0.0
no-route = 61.64.0.0/255.224.0.0
no-route = 61.128.0.0/255.192.0.0
no-route = 61.224.0.0/255.224.0.0
no-route = 101.0.0.0/255.128.0.0
no-route = 101.128.0.0/255.224.0.0
no-route = 101.192.0.0/255.192.0.0
no-route = 103.0.0.0/255.192.0.0
no-route = 103.224.0.0/255.224.0.0
no-route = 106.0.0.0/255.128.0.0
no-route = 106.224.0.0/255.224.0.0
no-route = 110.0.0.0/254.0.0.0
no-route = 112.0.0.0/255.128.0.0
no-route = 112.128.0.0/255.224.0.0
no-route = 112.192.0.0/255.192.0.0
no-route = 113.0.0.0/255.128.0.0
no-route = 113.128.0.0/255.224.0.0
no-route = 113.192.0.0/255.192.0.0
no-route = 114.0.0.0/255.128.0.0
no-route = 114.128.0.0/255.224.0.0
no-route = 114.192.0.0/255.192.0.0
no-route = 115.0.0.0/255.0.0.0
no-route = 116.0.0.0/255.0.0.0
no-route = 117.0.0.0/255.128.0.0
no-route = 117.128.0.0/255.192.0.0
no-route = 118.0.0.0/255.224.0.0
no-route = 118.64.0.0/255.192.0.0
no-route = 118.128.0.0/255.128.0.0
no-route = 119.0.0.0/255.128.0.0
no-route = 119.128.0.0/255.192.0.0
no-route = 119.224.0.0/255.224.0.0
no-route = 120.0.0.0/255.192.0.0
no-route = 120.64.0.0/255.224.0.0
no-route = 120.128.0.0/255.224.0.0
no-route = 120.192.0.0/255.192.0.0
no-route = 121.0.0.0/255.128.0.0
no-route = 121.192.0.0/255.192.0.0
no-route = 122.0.0.0/254.0.0.0
no-route = 124.0.0.0/255.0.0.0
no-route = 125.0.0.0/255.128.0.0
no-route = 125.160.0.0/255.224.0.0
no-route = 125.192.0.0/255.192.0.0
no-route = 139.0.0.0/255.224.0.0
no-route = 139.128.0.0/255.128.0.0
no-route = 140.64.0.0/255.224.0.0
no-route = 140.128.0.0/255.224.0.0
no-route = 140.192.0.0/255.192.0.0
no-route = 144.0.0.0/255.192.0.0
no-route = 144.96.0.0/255.224.0.0
no-route = 144.224.0.0/255.224.0.0
no-route = 150.0.0.0/255.224.0.0
no-route = 150.96.0.0/255.224.0.0
no-route = 150.128.0.0/255.224.0.0
no-route = 150.192.0.0/255.192.0.0
no-route = 152.96.0.0/255.224.0.0
no-route = 153.0.0.0/255.192.0.0
no-route = 153.96.0.0/255.224.0.0
no-route = 157.0.0.0/255.192.0.0
no-route = 157.96.0.0/255.224.0.0
no-route = 157.128.0.0/255.224.0.0
no-route = 157.224.0.0/255.224.0.0
no-route = 159.224.0.0/255.224.0.0
no-route = 161.192.0.0/255.224.0.0
no-route = 162.96.0.0/255.224.0.0
no-route = 163.0.0.0/255.192.0.0
no-route = 163.96.0.0/255.224.0.0
no-route = 163.128.0.0/255.192.0.0
no-route = 163.192.0.0/255.224.0.0
no-route = 166.96.0.0/255.224.0.0
no-route = 167.128.0.0/255.192.0.0
no-route = 168.160.0.0/255.224.0.0
no-route = 171.0.0.0/255.128.0.0
no-route = 171.192.0.0/255.224.0.0
no-route = 175.0.0.0/255.128.0.0
no-route = 175.128.0.0/255.192.0.0
no-route = 180.64.0.0/255.192.0.0
no-route = 180.128.0.0/255.128.0.0
no-route = 182.0.0.0/255.0.0.0
no-route = 183.0.0.0/255.192.0.0
no-route = 183.64.0.0/255.224.0.0
no-route = 183.128.0.0/255.128.0.0
no-route = 192.96.0.0/255.224.0.0
no-route = 192.160.0.0/255.224.0.0
no-route = 202.0.0.0/255.128.0.0
no-route = 202.128.0.0/255.192.0.0
no-route = 202.192.0.0/255.224.0.0
no-route = 203.0.0.0/255.128.0.0
no-route = 203.128.0.0/255.192.0.0
no-route = 203.192.0.0/255.224.0.0
no-route = 210.0.0.0/255.192.0.0
no-route = 210.64.0.0/255.224.0.0
no-route = 210.160.0.0/255.224.0.0
no-route = 210.192.0.0/255.224.0.0
no-route = 211.64.0.0/255.192.0.0
no-route = 211.128.0.0/255.192.0.0
no-route = 218.0.0.0/255.128.0.0
no-route = 218.160.0.0/255.224.0.0
no-route = 218.192.0.0/255.192.0.0
no-route = 219.64.0.0/255.224.0.0
no-route = 219.128.0.0/255.224.0.0
no-route = 219.192.0.0/255.192.0.0
no-route = 220.96.0.0/255.224.0.0
no-route = 220.128.0.0/255.128.0.0
no-route = 221.0.0.0/255.224.0.0
no-route = 221.96.0.0/255.224.0.0
no-route = 221.128.0.0/255.128.0.0
no-route = 222.0.0.0/255.0.0.0
no-route = 223.0.0.0/255.224.0.0
no-route = 223.64.0.0/255.192.0.0
no-route = 223.128.0.0/255.128.0.0
2015-05-04 21:54:26 +08:00
回复了 lenovo 创建的主题 问与答 这样弄 ocserv 的 no-route 路由表有问题吗?
@LazyZhu 转完之后又超过200行了,最后弄成/11,143行,你的是对的

no-route = 1.0.0.0/9
no-route = 1.160.0.0/11
no-route = 1.192.0.0/11
no-route = 14.0.0.0/11
no-route = 14.96.0.0/11
no-route = 14.128.0.0/11
no-route = 14.192.0.0/11
no-route = 27.0.0.0/10
no-route = 27.96.0.0/11
no-route = 27.128.0.0/9
no-route = 36.0.0.0/10
no-route = 36.96.0.0/11
no-route = 36.128.0.0/9
no-route = 39.0.0.0/11
no-route = 39.64.0.0/10
no-route = 39.128.0.0/10
no-route = 42.0.0.0/8
no-route = 43.224.0.0/11
no-route = 45.64.0.0/10
no-route = 47.64.0.0/10
no-route = 49.0.0.0/9
no-route = 49.128.0.0/11
no-route = 49.192.0.0/10
no-route = 54.192.0.0/11
no-route = 58.0.0.0/9
no-route = 58.128.0.0/11
no-route = 58.192.0.0/10
no-route = 59.32.0.0/11
no-route = 59.64.0.0/10
no-route = 59.128.0.0/9
no-route = 60.0.0.0/10
no-route = 60.160.0.0/11
no-route = 60.192.0.0/10
no-route = 61.0.0.0/10
no-route = 61.64.0.0/11
no-route = 61.128.0.0/10
no-route = 61.224.0.0/11
no-route = 101.0.0.0/9
no-route = 101.128.0.0/11
no-route = 101.192.0.0/10
no-route = 103.0.0.0/10
no-route = 103.224.0.0/11
no-route = 106.0.0.0/9
no-route = 106.224.0.0/11
no-route = 110.0.0.0/7
no-route = 112.0.0.0/9
no-route = 112.128.0.0/11
no-route = 112.192.0.0/10
no-route = 113.0.0.0/9
no-route = 113.128.0.0/11
no-route = 113.192.0.0/10
no-route = 114.0.0.0/9
no-route = 114.128.0.0/11
no-route = 114.192.0.0/10
no-route = 115.0.0.0/8
no-route = 116.0.0.0/8
no-route = 117.0.0.0/9
no-route = 117.128.0.0/10
no-route = 118.0.0.0/11
no-route = 118.64.0.0/10
no-route = 118.128.0.0/9
no-route = 119.0.0.0/9
no-route = 119.128.0.0/10
no-route = 119.224.0.0/11
no-route = 120.0.0.0/10
no-route = 120.64.0.0/11
no-route = 120.128.0.0/11
no-route = 120.192.0.0/10
no-route = 121.0.0.0/9
no-route = 121.192.0.0/10
no-route = 122.0.0.0/7
no-route = 124.0.0.0/8
no-route = 125.0.0.0/9
no-route = 125.160.0.0/11
no-route = 125.192.0.0/10
no-route = 139.0.0.0/11
no-route = 139.128.0.0/9
no-route = 140.64.0.0/11
no-route = 140.128.0.0/11
no-route = 140.192.0.0/10
no-route = 144.0.0.0/10
no-route = 144.96.0.0/11
no-route = 144.224.0.0/11
no-route = 150.0.0.0/11
no-route = 150.96.0.0/11
no-route = 150.128.0.0/11
no-route = 150.192.0.0/10
no-route = 152.96.0.0/11
no-route = 153.0.0.0/10
no-route = 153.96.0.0/11
no-route = 157.0.0.0/10
no-route = 157.96.0.0/11
no-route = 157.128.0.0/11
no-route = 157.224.0.0/11
no-route = 159.224.0.0/11
no-route = 161.192.0.0/11
no-route = 162.96.0.0/11
no-route = 163.0.0.0/10
no-route = 163.96.0.0/11
no-route = 163.128.0.0/10
no-route = 163.192.0.0/11
no-route = 166.96.0.0/11
no-route = 167.128.0.0/10
no-route = 168.160.0.0/11
no-route = 171.0.0.0/9
no-route = 171.192.0.0/11
no-route = 175.0.0.0/9
no-route = 175.128.0.0/10
no-route = 180.64.0.0/10
no-route = 180.128.0.0/9
no-route = 182.0.0.0/8
no-route = 183.0.0.0/10
no-route = 183.64.0.0/11
no-route = 183.128.0.0/9
no-route = 192.96.0.0/11
no-route = 192.160.0.0/11
no-route = 202.0.0.0/9
no-route = 202.128.0.0/10
no-route = 202.192.0.0/11
no-route = 203.0.0.0/9
no-route = 203.128.0.0/10
no-route = 203.192.0.0/11
no-route = 210.0.0.0/10
no-route = 210.64.0.0/11
no-route = 210.160.0.0/11
no-route = 210.192.0.0/11
no-route = 211.64.0.0/10
no-route = 211.128.0.0/10
no-route = 218.0.0.0/9
no-route = 218.160.0.0/11
no-route = 218.192.0.0/10
no-route = 219.64.0.0/11
no-route = 219.128.0.0/11
no-route = 219.192.0.0/10
no-route = 220.96.0.0/11
no-route = 220.128.0.0/9
no-route = 221.0.0.0/11
no-route = 221.96.0.0/11
no-route = 221.128.0.0/9
no-route = 222.0.0.0/8
no-route = 223.0.0.0/11
no-route = 223.64.0.0/10
no-route = 223.128.0.0/9
2015-05-04 20:28:37 +08:00
回复了 lenovo 创建的主题 问与答 这样弄 ocserv 的 no-route 路由表有问题吗?
@LazyZhu 我这样弄不知道对不对?
把所有/13及以上都弄成/12,然后合并,是150条
把所有/14及以上都弄成/13,然后合并,是230条

看来/12是最优?谁给专程CIDR格式?
1.0.0.0-1.95.255.255
1.112.0.0-1.127.255.255
1.176.0.0-1.207.255.255
14.0.0.0-14.31.255.255
14.96.0.0-14.159.255.255
14.192.0.0-14.223.255.255
27.0.0.0-27.63.255.255
27.96.0.0-27.159.255.255
27.176.0.0-27.239.255.255
36.0.0.0-36.63.255.255
36.96.0.0-36.223.255.255
36.240.0.0-36.255.255.255
39.0.0.0-39.15.255.255
39.64.0.0-39.111.255.255
39.128.0.0-39.191.255.255
42.0.0.0-42.15.255.255
42.48.0.0-42.63.255.255
42.80.0.0-42.255.255.255
43.224.0.0-43.255.255.255
45.64.0.0-45.79.255.255
45.112.0.0-45.127.255.255
47.80.0.0-47.127.255.255
49.0.0.0-49.15.255.255
49.48.0.0-49.95.255.255
49.112.0.0-49.159.255.255
49.208.0.0-49.255.255.255
54.208.0.0-54.223.255.255
58.0.0.0-58.159.255.255
58.192.0.0-58.223.255.255
58.240.0.0-58.255.255.255
59.32.0.0-59.111.255.255
59.144.0.0-60.31.255.255
60.48.0.0-60.63.255.255
60.160.0.0-61.63.255.255
61.80.0.0-61.95.255.255
61.128.0.0-61.191.255.255
61.224.0.0-61.255.255.255
101.0.0.0-101.159.255.255
101.192.0.0-101.207.255.255
101.224.0.0-101.255.255.255
103.0.0.0-103.63.255.255
103.224.0.0-103.255.255.255
106.0.0.0-106.127.255.255
106.224.0.0-106.239.255.255
110.0.0.0-110.127.255.255
110.144.0.0-111.95.255.255
111.112.0.0-111.239.255.255
112.0.0.0-112.143.255.255
112.192.0.0-112.207.255.255
112.224.0.0-113.143.255.255
113.192.0.0-113.255.255.255
114.16.0.0-114.31.255.255
114.48.0.0-114.143.255.255
114.192.0.0-114.255.255.255
115.16.0.0-115.127.255.255
115.144.0.0-115.239.255.255
116.0.0.0-116.31.255.255
116.48.0.0-116.95.255.255
116.112.0.0-117.191.255.255
118.16.0.0-118.31.255.255
118.64.0.0-118.159.255.255
118.176.0.0-119.191.255.255
119.224.0.0-120.95.255.255
120.128.0.0-120.143.255.255
120.192.0.0-121.111.255.255
121.192.0.0-121.207.255.255
121.224.0.0-122.15.255.255
122.48.0.0-122.159.255.255
122.176.0.0-122.207.255.255
122.224.0.0-123.15.255.255
123.48.0.0-123.207.255.255
123.224.0.0-124.47.255.255
124.64.0.0-124.175.255.255
124.192.0.0-124.255.255.255
125.16.0.0-125.127.255.255
125.160.0.0-125.175.255.255
125.208.0.0-125.223.255.255
125.240.0.0-125.255.255.255
139.0.0.0-139.15.255.255
139.128.0.0-139.239.255.255
140.64.0.0-140.79.255.255
140.128.0.0-140.143.255.255
140.192.0.0-140.255.255.255
144.0.0.0-144.15.255.255
144.48.0.0-144.63.255.255
144.112.0.0-144.127.255.255
144.240.0.0-144.255.255.255
150.0.0.0-150.15.255.255
150.112.0.0-150.143.255.255
150.208.0.0-150.223.255.255
150.240.0.0-150.255.255.255
152.96.0.0-152.111.255.255
153.0.0.0-153.15.255.255
153.32.0.0-153.47.255.255
153.96.0.0-153.127.255.255
157.0.0.0-157.31.255.255
157.48.0.0-157.63.255.255
157.112.0.0-157.127.255.255
157.144.0.0-157.159.255.255
157.240.0.0-157.255.255.255
159.224.0.0-159.239.255.255
161.192.0.0-161.207.255.255
162.96.0.0-162.111.255.255
163.0.0.0-163.15.255.255
163.32.0.0-163.63.255.255
163.112.0.0-163.143.255.255
163.176.0.0-163.207.255.255
166.96.0.0-166.111.255.255
167.128.0.0-167.143.255.255
167.176.0.0-167.191.255.255
168.160.0.0-168.175.255.255
171.0.0.0-171.15.255.255
171.32.0.0-171.47.255.255
171.80.0.0-171.127.255.255
171.208.0.0-171.223.255.255
175.0.0.0-175.111.255.255
175.144.0.0-175.191.255.255
180.64.0.0-180.239.255.255
182.16.0.0-182.63.255.255
182.80.0.0-182.175.255.255
182.192.0.0-182.207.255.255
182.224.0.0-183.95.255.255
183.128.0.0-183.255.255.255
192.112.0.0-192.127.255.255
192.176.0.0-192.191.255.255
202.0.0.0-202.207.255.255
203.0.0.0-203.223.255.255
210.0.0.0-210.95.255.255
210.176.0.0-210.207.255.255
211.64.0.0-211.111.255.255
211.128.0.0-211.175.255.255
218.0.0.0-218.31.255.255
218.48.0.0-218.111.255.255
218.176.0.0-218.207.255.255
218.240.0.0-218.255.255.255
219.64.0.0-219.95.255.255
219.128.0.0-219.159.255.255
219.208.0.0-219.255.255.255
220.96.0.0-220.127.255.255
220.144.0.0-220.207.255.255
220.224.0.0-221.15.255.255
221.112.0.0-221.143.255.255
221.160.0.0-221.239.255.255
222.16.0.0-222.95.255.255
222.112.0.0-222.143.255.255
222.160.0.0-222.223.255.255
222.240.0.0-223.31.255.255
223.64.0.0-223.175.255.255
223.192.0.0-223.223.255.255
223.240.0.0-223.255.255.255
2015-05-04 19:07:57 +08:00
回复了 lenovo 创建的主题 问与答 这样弄 ocserv 的 no-route 路由表有问题吗?
@LazyZhu 那也没办法啊,有什么好的解决方案么?
2015-05-04 15:33:03 +08:00
回复了 lenovo 创建的主题 问与答 这样弄 ocserv 的 no-route 路由表有问题吗?
@bellchu 这样处理是精确点,但是路由表太长了,据说客户端接收不全?
curl 'http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' | grep ipv4 | grep CN | awk -F\| '{ printf("%s/%d\n", $4, 32-log($5)/log(2)) }' > chnroute.txt
2015-05-04 15:00:31 +08:00
回复了 lenovo 创建的主题 问与答 这样弄 ocserv 的 no-route 路由表有问题吗?
@bellchu 要是支持ACL分流就精确多了
2015-05-04 14:11:02 +08:00
回复了 lenovo 创建的主题 问与答 这样弄 ocserv 的 no-route 路由表有问题吗?
@LazyZhu @regeditms 我的route是空的

@ddqp 放ocserv.conf里
1 ... 15  16  17  18  19  20  21  22  23  24 ... 30  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1058 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 35ms · UTC 19:20 · PVG 03:20 · LAX 11:20 · JFK 14:20
Developed with CodeLauncher
♥ Do have faith in what you're doing.