CentOS7 配置 VPN

来源:互联网 发布:java运输管理系统代码 编辑:程序博客网 时间:2024/05/19 23:11

网上已经有很多配置过程,我就不说了,我就是参照这篇文章配置的:
VPN配置过程

其中有点小问题
1、添加EPEL源时地址变了
最新的地址是:http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

wget http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm

2、配置完后VPN无法启动,提示
Failed to start OpenVPN Robust And Highly Flexible Tunneling Application On client

遇到这个问题,可以使用下面这个命令去检查一下,会提示具体的错误信息

openvpn /etc/openvpn/server.conf

通常是这个问题:

Fri Dec 8 14:28:30 2017 WARNING: cannot stat file ‘ta.key’: No such file or directory (errno=2)
Options error: –tls-auth fails with ‘ta.key’: No such file or directory (errno=2)
Options error: Please correct these errors.
Use –help for more information.

把/etc/openvpn/server.conf 中的 tls-auth ta.key 0 # This file is secret 并注释掉就好了

原创粉丝点击