OpenVPN如何打通两个局域网
环境说明:
云平台环境:
厂商: AWS
配置: CPU:1核
内存 1G
磁盘:30G
OpenVPN_Server :
内网地址: 172.50.21.155/32
外网地址: 52.83.x.x /32
本地:
厂商: Exsi
配置: CPU:1核
内存 1G
磁盘:30G
OpenVPN_Client:
内网地址: 192.168.105.8/32
# OpenVPN_Version:
[root@lido-cn-northwest-prod-vpnserver /etc/openvpn/server]#openvpn --version
OpenVPN 2.4.12 x86_64-redhat-linux-gnu [Fedora EPEL patched] [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Mar 17 2022
library versions: OpenSSL 1.0.2k-fips 26 Jan 2017, LZO 2.06
Originally developed by James Yonan
Copyright (C) 2002-2018 OpenVPN Inc <sales@openvpn.net>
Compile time defines: enable_async_push=no enable_comp_stub=no enable_crypto=yes enable_crypto_ofb_cfb=yes enable_debug=yes enable_def_auth=yes enable_dependency_tracking=no enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown enable_fast_install=yes enable_fragment=yes enable_iproute2=yes enable_libtool_lock=yes enable_lz4=yes enable_lzo=yes enable_management=yes enable_multihome=yes enable_pam_dlopen=no enable_pedantic=no enable_pf=yes enable_pkcs11=yes enable_plugin_auth_pam=yes enable_plugin_down_root=yes enable_plugins=yes enable_port_share=yes enable_selinux=yes enable_server=yes enable_shared=yes enable_shared_with_static_runtimes=no enable_small=no enable_static=yes enable_strict=no enable_strict_options=no enable_systemd=yes enable_werror=no enable_win32_dll=yes enable_x509_alt_username=yes with_aix_soname=aix with_crypto_library=openssl with_gnu_ld=yes with_mem_check=no with_sysroot=no
一、 安装OpenVPN_Server
[root@lido-cn-northwest-prod-vpnserver /etc/openvpn/server]# yum -y install epel-release
[root@lido-cn-northwest-prod-vpnserver /etc/openvpn/server]# yum install -y openvpn easy-rsa
[root@lido-cn-northwest-prod-vpnserver /etc/openvpn/server]# cp -r /usr/share/easy-rsa/ /etc/openvpn/easy-rsa
[root@lido-cn-northwest-prod
标签:打通,enable,no,openvpn,局域网,OpenVPN,yes,root
From: https://blog.csdn.net/weixin_47305040/article/details/144130454