Server Side: More message when the openvpn command was executed.
root@OpenWrt:~# openvpn --ifconfig 10.200.0.1 10.200.0.2 --dev tun --secret secr
et.key
Sun Nov 24 18:27:01 2013 OpenVPN 2.2.2 mips-openwrt-linux [SSL] [LZO2] [EPOLL] built on Mar 14 2013
Sun Nov 24 18:27:01 2013 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Sun Nov 24 18:27:01 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sun Nov 24 18:27:01 2013 TUN/TAP device tun0 opened
Sun Nov 24 18:27:01 2013 /sbin/ifconfig tun0 10.200.0.1 pointopoint 10.200.0.2 mtu 1500
Sun Nov 24 18:27:01 2013 UDPv4 link local (bound): [undef]:1194
Sun Nov 24 18:27:01 2013 UDPv4 link remote: [undef]
Sun Nov 24 18:38:45 2013 Peer Connection Initiated with 218.250.7.110:59085
Sun Nov 24 18:38:45 2013 Initialization Sequence Completed
複製代碼
From the server side, we ping the remote client virtual ip address 10.200.0.2
root@OpenWrt:~# ping -c 4 10.200.0.2
PING 10.200.0.2 (10.200.0.2): 56 data bytes
64 bytes from 10.200.0.2: seq=0 ttl=64 time=7.178 ms
64 bytes from 10.200.0.2: seq=1 ttl=64 time=7.936 ms
64 bytes from 10.200.0.2: seq=2 ttl=64 time=6.849 ms
64 bytes from 10.200.0.2: seq=3 ttl=64 time=6.353 ms
--- 10.200.0.2 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 6.353/7.079/7.936 ms
root@OpenWrt:~#
複製代碼
作者: 角色 時間: 2013-11-24 19:09
本帖最後由 角色 於 2013-11-24 19:17 編輯
Client side: More message when the openvpn command was invoked.
C:\Program Files\OpenVPN\bin>openvpn --ifconfig 10.200.0.2 10.200.0.1 --dev tun
--secret secret.key --remote 119.237.22.222
Sun Nov 24 18:38:40 2013 OpenVPN 2.2.2 Win32-MSVC++ [SSL] [LZO2] [PKCS11] built
on Dec 15 2011
Sun Nov 24 18:38:40 2013 IMPORTANT: OpenVPN's default port number is now 1194, b
ased on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earl
ier used 5000 as the default port.
Sun Nov 24 18:38:40 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or hig
her to call user-defined scripts or executables
Sun Nov 24 18:38:40 2013 TAP-WIN32 device [本地连接 2] opened: \\.\Global\{A2FCF
4EE-7BB0-4C7D-AFC0-7F041F4D21FA}.tap
Sun Nov 24 18:38:40 2013 Notified TAP-Win32 driver to set a DHCP IP/netmask of 1
0.200.0.2/255.255.255.252 on interface {A2FCF4EE-7BB0-4C7D-AFC0-7F041F4D21FA} [D
HCP-serv: 10.200.0.1, lease-time: 31536000]
Sun Nov 24 18:38:40 2013 Successful ARP Flush on interface [131077] {A2FCF4EE-7B
B0-4C7D-AFC0-7F041F4D21FA}
Sun Nov 24 18:38:40 2013 UDPv4 link local (bound): [undef]:1194
Sun Nov 24 18:38:40 2013 UDPv4 link remote: 119.237.22.222:1194
Sun Nov 24 18:39:11 2013 Peer Connection Initiated with 119.237.22.222:1194
Sun Nov 24 18:39:17 2013 Initialization Sequence Completed
複製代碼
From the client side, we could access the remote server virtual IP 10.200.0.1
C:\Documents and Settings\Administrator>ping 10.200.0.1
Pinging 10.200.0.1 with 32 bytes of data:
Reply from 10.200.0.1: bytes=32 time=6ms TTL=64
Reply from 10.200.0.1: bytes=32 time=5ms TTL=64
Reply from 10.200.0.1: bytes=32 time=6ms TTL=64
Reply from 10.200.0.1: bytes=32 time=5ms TTL=64
Ping statistics for 10.200.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),