公司家庭宽带(私网IP)+花生壳+OPENVPN访问公司内网
作者:互联网
1、openvpn服务器server.conf 配置
[root@openvpn ~]# cat /etc/openvpn/server.conf
local 10.236.22.253
push "route 10.236.0.0 255.255.0.0"
client-to-client
duplicate-cn
log /var/log/openvpn.log
port 52115
proto tcp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/openvpn.crt
key /etc/openvpn/keys/openvpn.key
dh /etc/openvpn/keys/dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
2、查看openvpn服务器52115端口是否正常启动
[root@openvpn ~]# netstat -anp |grep 52115
tcp 0 0 10.236.22.253:52115 0.0.0.0:* LISTEN 2313/openvpn
备注:
启动openvpn服务命令:/usr/local/sbin/openvpn --config /etc/openvpn/server.conf &
3、花生壳域名绑定动态IP转发
1)、公司局域网内找台PC机安装花生壳
2)、配置映射端口
标签:log,keys,IP,openvpn,私网,etc,花生壳,0.0,52115 来源: https://blog.csdn.net/hongkaihua1987/article/details/112187620