centos - win下连接openvpn失败
PHPz
PHPz 2017-04-24 15:59:01
0
1
932

win下可以不安装openvpn客户端直接通过网上邻居新建vpn通道来连接吗?
1.我的server端是同网段的一个虚拟机 用的桥接连接到交换机的
2.server端的环境是centos 6.4的
3.我配置环境的log指明在/var/log/openvpn.log(该log中只有服务成功的log 没有errorlog)
4./etc/openvpn/目录下有一个状态log没有看到任何连接请求log
5.service openvpn restart 关闭 开启服务都是正常反馈 都是OK

------------------------

下面是server.conf 配置信息

----------------------------

  • cal 125.125.126.12 #11.22.33.44为VPS的IP

2 port 1194 #端口,需要与客户端配置保持一致,并保证与其他软件无共用
3 proto udp #使用协议,需要与客户端配置保持一致
4 dev tap
5 mode server
6 #dev tun #也可以选择tap模式
7 ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
8 cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
9 ifconfig-pool 125.125.126.1 125.125.126.254
10 dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
11 ifconfig-pool-persist ipp.txt
12 server 125.125.126.0 255.255.255.0 #给客户的分配的局域网IP段,注意不要与客户端网段冲突!
13 push "redirect-gateway"
14 push "dhcp-option DNS 8.8.8.8"
15 push "dhcp-option DNS 8.8.4.4"
16
17
18 log /var/log/openvpn.log
19
20 client-to-client
21
22 duplicate-cn #若不止一人同时使用该证书,请去掉前面的;
23
24 keepalive 20 60
25 comp-lzo
26 max-clients 50
27 persist-key
28 persist-tun
29 status openvpn-status.log
30 #log-append openvpn.log
31
32 verb 3
33 mute 20
34
-------------------------------------------------------------------------

我认为可能连接未被发起请求进来(因为server端没有log)
客户端是win 2003的环境 通过网上邻居新建vpn通道进行连接的
返回的是800错误 连接失败 还未涉及到证书问题 因为没有连接log

Q:1.是否是因为openvpn的客户端连接必须安装openvpn客户端 否则是无法连接的 没道理啊 按道理至少应该是有请求的
2.我在server端netstat -nl (没有server.conf里面的监听端口) 那是不是我的服务端也存在问题
请高手指点

------------------下面是netstat -nl的信息--------------------------
[root@Carson ~]# netstat -nl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address Stat e
tcp 0 0 0.0.0.0:111 0.0.0.0:* LIST EN
tcp 0 0 192.168.122.1:53 0.0.0.0:* LIST EN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LIST EN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LIST EN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LIST EN
tcp 0 0 0.0.0.0:50884 0.0.0.0:* LIST EN
tcp 0 0 :::111 :::* LIST EN
tcp 0 0 :::42897 :::* LIST EN
tcp 0 0 :::22 :::* LIST EN
tcp 0 0 ::1:631 :::* LIST EN
tcp 0 0 ::1:25 :::* LIST EN
udp 0 0 0.0.0.0:806 0.0.0.0:*
udp 0 0 0.0.0.0:1194 0.0.0.0:*
udp 0 0 192.168.122.1:53 0.0.0.0:*
udp 0 0 0.0.0.0:67 0.0.0.0:*
udp 0 0 0.0.0.0:997 0.0.0.0:*
udp 0 0 0.0.0.0:111 0.0.0.0:*
udp 0 0 0.0.0.0:631 0.0.0.0:*
udp 0 0 0.0.0.0:46082 0.0.0.0:*
udp 0 0 :::806 :::*
udp 0 0 :::111 :::*
udp 0 0 :::60670 :::*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 68216 /tmp/.ICE-unix/28715
unix 2 [ ACC ] STREAM LISTENING 68024 @/tmp/dbus-yCE1smxpSn
unix 2 [ ACC ] STREAM LISTENING 60931 /tmp/orbit-root/linc-65 e2-0-500eb1927f8d1
unix 2 [ ACC ] STREAM LISTENING 65274 /var/run/abrt/abrt.sock et
unix 2 [ ACC ] STREAM LISTENING 8535 @/com/ubuntu/upstart
unix 2 [ ACC ] STREAM LISTENING 66222 /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 66712 @/tmp/gdm-session-fjaVo JKo
unix 2 [ ACC ] STREAM LISTENING 63569 /var/run/rpcbind.sock
unix 2 [ ACC ] STREAM LISTENING 68257 /tmp/orbit-Carson/linc- 702b-0-3f0e121682f50
unix 2 [ ACC ] STREAM LISTENING 68424 /tmp/orbit-Carson/linc- 701f-0-2c5003a26601
unix 2 [ ACC ] STREAM LISTENING 63652 /var/run/dbus/system_bu s_socket
unix 2 [ ACC ] STREAM LISTENING 68428 /tmp/keyring-lh7fTA/soc ket.ssh
unix 2 [ ACC ] STREAM LISTENING 68430 /tmp/keyring-lh7fTA/soc ket.pkcs11
unix 2 [ ACC ] STREAM LISTENING 68442 /tmp/orbit-Carson/linc- 70b5-0-77c7107947b98
unix 2 [ ACC ] STREAM LISTENING 65096 public/cleanup
unix 2 [ ACC ] STREAM LISTENING 114941 /var/run/cups/cups.sock
unix 2 [ ACC ] STREAM LISTENING 68553 /tmp/orbit-Carson/linc- 70b8-0-65533ee5dd278
unix 2 [ ACC ] STREAM LISTENING 65103 private/tlsmgr
unix 2 [ ACC ] STREAM LISTENING 66221 @/tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 65107 private/rewrite
unix 2 [ ACC ] STREAM LISTENING 65111 private/bounce
unix 2 [ ACC ] STREAM LISTENING 65115 private/defer
unix 2 [ ACC ] STREAM LISTENING 65119 private/trace
unix 2 [ ACC ] STREAM LISTENING 64053 /var/run/acpid.socket
unix 2 [ ACC ] STREAM LISTENING 65123 private/verify
unix 2 [ ACC ] STREAM LISTENING 65127 public/flush
unix 2 [ ACC ] STREAM LISTENING 65131 private/proxymap
unix 2 [ ACC ] STREAM LISTENING 65137 private/proxywrite
unix 2 [ ACC ] STREAM LISTENING 67755 /tmp/keyring-lh7fTA/soc ket
unix 2 [ ACC ] STREAM LISTENING 65141 private/smtp
unix 2 [ ACC ] STREAM LISTENING 65145 private/relay
unix 2 [ ACC ] STREAM LISTENING 65149 public/showq
unix 2 [ ACC ] STREAM LISTENING 65153 private/error
unix 2 [ ACC ] STREAM LISTENING 65157 private/retry
unix 2 [ ACC ] STREAM LISTENING 65161 private/discard
unix 2 [ ACC ] STREAM LISTENING 65165 private/local
unix 2 [ ACC ] STREAM LISTENING 65169 private/virtual
unix 2 [ ACC ] STREAM LISTENING 70960 /tmp/orbit-Carson/linc- 7204-0-81a23957367a
unix 2 [ ACC ] STREAM LISTENING 65173 private/lmtp
unix 2 [ ACC ] STREAM LISTENING 65177 private/anvil
unix 2 [ ACC ] STREAM LISTENING 65182 private/scache
unix 2 [ ACC ] STREAM LISTENING 68832 /tmp/orbit-Carson/linc- 70d2-0-31600472d9187
unix 2 [ ACC ] STREAM LISTENING 69693 /tmp/orbit-Carson/linc- 70dc-0-2ca6fd1e2ca3b
unix 2 [ ACC ] STREAM LISTENING 66584 @/tmp/gdm-greeter-oPtcQ YXP
unix 2 [ ACC ] STREAM LISTENING 68675 /tmp/orbit-Carson/linc- 70c7-0-1c9ec71eab136
unix 2 [ ACC ] STREAM LISTENING 68697 /tmp/.esd-500/socket
unix 2 [ ACC ] STREAM LISTENING 68700 /home/Carson/.pulse/c57 90ec8ce601227cbd7bfbe00000039-runtime/native
unix 2 [ ACC ] STREAM LISTENING 68803 /tmp/orbit-Carson/linc- 70d3-0-1091c125402ec
unix 2 [ ACC ] STREAM LISTENING 68931 /tmp/orbit-Carson/linc- 70de-0-7ccde0ded1b09
unix 2 [ ACC ] STREAM LISTENING 181128 /tmp/orbit-Carson/linc- 23ff-0-5d71c44dc2e72
unix 2 [ ACC ] STREAM LISTENING 180714 /tmp/orbit-Carson/linc- 23d4-0-61b64b2acc187
unix 2 [ ACC ] STREAM LISTENING 70482 /tmp/orbit-Carson/linc- 7104-0-3d758adc8e877
unix 2 [ ACC ] STREAM LISTENING 181286 /tmp/orbit-Carson/linc- 2415-0-10c9b291d4912
unix 2 [ ACC ] STREAM LISTENING 70015 /tmp/orbit-Carson/linc- 70ed-0-6730ce5ac361f
unix 2 [ ACC ] STREAM LISTENING 181381 /tmp/orbit-Carson/linc- 2426-0-783a810024c1
unix 2 [ ACC ] STREAM LISTENING 69907 /tmp/orbit-Carson/linc- 70e7-0-34b2865b4a50a
unix 2 [ ACC ] STREAM LISTENING 70040 /tmp/orbit-Carson/linc- 70f1-0-617353d3e7194
unix 2 [ ACC ] STREAM LISTENING 70523 /tmp/orbit-Carson/linc- 713a-0-6ab0553712866
unix 2 [ ACC ] STREAM LISTENING 70527 /tmp/orbit-Carson/linc- 713b-0-3b21a14113227
unix 2 [ ACC ] STREAM LISTENING 65847 /var/run/libvirt/libvir t-sock
unix 2 [ ACC ] STREAM LISTENING 70565 /tmp/orbit-Carson/linc- 70f3-0-3cc795372149
unix 2 [ ACC ] STREAM LISTENING 65849 /var/run/libvirt/libvir t-sock-ro
unix 2 [ ACC ] STREAM LISTENING 70603 /tmp/orbit-Carson/linc- 713d-0-1dcaf50f13b63
unix 2 [ ACC ] STREAM LISTENING 70614 /tmp/orbit-Carson/linc- 70e5-0-271f54ab21621
unix 2 [ ACC ] STREAM LISTENING 70656 /tmp/orbit-Carson/linc- 70f4-0-850e7da542b0
unix 2 [ ACC ] STREAM LISTENING 70674 /tmp/orbit-Carson/linc- 7139-0-62191ca8769ff
unix 2 [ ACC ] STREAM LISTENING 71219 /tmp/orbit-Carson/linc- 72b8-0-12d781da7e3d4
unix 2 [ ACC ] STREAM LISTENING 68215 @/tmp/.ICE-unix/28715
unix 2 [ ACC ] STREAM LISTENING 165601 /tmp/orbit-Carson/linc- 1a12-0-7efe3312e1340
unix 2 [ ACC ] STREAM LISTENING 64096 @/var/run/hald/dbus-QAG slyjvKQ
unix 2 [ ACC ] STREAM LISTENING 64089 @/var/run/hald/dbus-TxT 9XYP8sW
--------------------------------------------

~
~

PHPz
PHPz

学习是最好的投资!

全員に返信(1)
洪涛

いいえ、OpenVPN クライアントをインストールする必要があります

いいねを押す +0
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート