ROUTE: failed to parse/resolve route for host/network

OpenVPN needs a gateway parameter for a --route option and no default was specified by either
现象:
服务端:Openvpn.log
MULTI: no free --ifconfig-pool addresses are available
Opvpn客户端报错:
Tue Dec 22 16:31:30 2020 OpenVPN ROUTE: OpenVPN needs a gateway parameter for a --route option and no default was specified by either --route-gateway or --ifconfig options
Tue Dec 22 16:31:30 2020 OpenVPN ROUTE: failed to parse/resolve route for host/network: 10.8.10.1
在这里插入图片描述

原因:
地址池不够用,每个客户端会占用4个IP位,参考https://blog.csdn.net/weini1111/article/details/104770090
解决办法:

  1. 调整地址池,
    server 10.8.0.0 255.255.254.0
  2. 调整iptables 规则
posted @ 2020-12-25 09:28  rockstics  阅读(1154)  评论(0编辑  收藏  举报