openvpn 安卓客户端升级后报错,修改topology

2019/03/02 14:44
阅读数 163

openvpn 安卓客户端升级后报错

"ifconfig-pool" option use a /30 subnet topology net30

连接失败

服务端没有任何变化

同样的配置文件,在mac上Tunnelblick连接成功,在android 上 openvpn 报错

错误内容为

`EVENT: TUN_SETUP_FAILED info='tun_prop_error:ifconfig addresses are not in the same /30 subnet (topology net30)'`

只是更新客户端便失败了

应该是安卓客户端的默认行为变更

经查

https://community.openvpn.net/openvpn/wiki/Topology

`Possible topology choices
These are available options as values to the --topology parameter in --dev tun mode. Each topology is described further in its own section below.

subnet
The recommended topology for modern servers. Note that this is not the current default. Addressing is done by IP & netmask.
net30
This is the old topology for support with Windows clients running 2.0.9 or older clients. This is the default as of OpenVPN 2.3, but not recommended for current use. Each client is allocated a virtual /30, taking 4 IPs per client, plus 4 for the server.
p2p
This topology uses Point-to-Point networking. This is not compatible with Windows clients, though use with non-Windows allows use of the entire subnet (no "lost" IPs.)
`

net30,是兼容windows老版本客户端用的,文档明确说明不推荐用这个,这个还偏偏是默认选项

通常默认选项不都是推荐项么,这种设定也是服气了

 

明确指定客户端配置

topology subnet

android上重连,连接成功

 

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部