无法连接到 OpenVPN 服务器

无法连接到 OpenVPN 服务器

我正在尝试在 Raspberry Pi 上运行 OpenVPN 服务器。使用 apt 安装后,我想建立一个原始连接来测试它,但我无法从另一台计算机连接到服务器。服务器在 Debian 7.8 上运行 OpenVPN 2.2.1,客户端在 Windows 8.1 上运行 OpenVPN 2.3.6。服务器端:

pi@raspberrypi ~ $ sudo openvpn --dev tun1 --ifconfig 10.9.8.1 10.9.8.2 --port 20004
Thu Apr 16 19:00:22 2015 OpenVPN 2.2.1 arm-linux-gnueabihf [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Dec  1 2014
Thu Apr 16 19:00:22 2015 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu Apr 16 19:00:22 2015 ******* WARNING *******: all encryption and authentication features disabled -- all data will be tunnelled as cleartext
Thu Apr 16 19:00:22 2015 TUN/TAP device tun1 opened
Thu Apr 16 19:00:22 2015 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Thu Apr 16 19:00:22 2015 /sbin/ifconfig tun1 10.9.8.1 pointopoint 10.9.8.2 mtu 1500
Thu Apr 16 19:00:22 2015 UDPv4 link local (bound): [undef]
Thu Apr 16 19:00:22 2015 UDPv4 link remote: [undef]

客户端:

C:\Users\Adam>openvpn --remote doma.pinkiepie.cz --port 20004 --dev tun1 --ifconfig 10.9.8.2 10.9.8.1
Thu Apr 16 18:44:18 2015 OpenVPN 2.3.6 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Mar 19 2015
Thu Apr 16 18:44:18 2015 library versions: OpenSSL 1.0.1m 19 Mar 2015, LZO 2.08
Thu Apr 16 18:44:18 2015 ******* WARNING *******: all encryption and authentication features disabled -- all data will be tunnelled as cleartext
Thu Apr 16 18:44:18 2015 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Thu Apr 16 18:44:18 2015 open_tun, tt->ipv6=0
Thu Apr 16 18:44:18 2015 TAP-WIN32 device [Síť Ethernet 3] opened: \\.\Global\{C7E73F1C-C5D5-4767-84D9-563C582B9765}.tap
Thu Apr 16 18:44:18 2015 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.9.8.2/255.255.255.252 on interface {C7E73F1C-C5D5-4767-84D9-563C582B9765} [DHCP-serv: 10.9.8.1, lease-time: 31536000]
Thu Apr 16 18:44:18 2015 UDPv4 link local (bound): [undef]
Thu Apr 16 18:44:18 2015 UDPv4 link remote: [AF_INET]213.192.60.53:20004

知道我做错了什么吗?

相关内容