lightwind630
my openvpn client and server are in local network, use a cable connect client to server.
Client
tun2: inet addr:100.8.0.6 P-t-P:100.8.0.5 Mask:255.255.255.255
Server
tun0: inet addr:100.8.0.1 P-t-P:100.8.0.2 Mask:255.255.255.255
when ping from client to server virtual IP(tun0) 100.8.0.1:
64 bytes from 100.8.0.1: icmp_seq=1097 ttl=64 time=390.0 ms
64 bytes from 100.8.0.1: icmp_seq=1098 ttl=64 time=2.1 ms
64 bytes from 100.8.0.1: icmp_seq=1099 ttl=64 time=2.0 ms
64 bytes from 100.8.0.1: icmp_seq=1100 ttl=64 time=2.0 ms
64 bytes from 100.8.0.1: icmp_seq=1101 ttl=64 time=2.1 ms
64 bytes from 100.8.0.1: icmp_seq=1102 ttl=64 time=403.0 ms
64 bytes from 100.8.0.1: icmp_seq=1103 ttl=64 time=2.0 ms
64 bytes from 100.8.0.1: icmp_seq=1104 ttl=64 time=2.0 ms
64 bytes from 100.8.0.1: icmp_seq=1105 ttl=64 time=2.0 ms
64 bytes from 100.8.0.1: icmp_seq=1106 ttl=64 time=2.1 ms
64 bytes from 100.8.0.1: icmp_seq=1107 ttl=64 time=552.9 ms
64 bytes from 100.8.0.1: icmp_seq=1108 ttl=64 time=2.0 ms
64 bytes from 100.8.0.1: icmp_seq=1109 ttl=64 time=2.0 ms
64 bytes from 100.8.0.1: icmp_seq=1110 ttl=64 time=2.0 ms
64 bytes from 100.8.0.1: icmp_seq=1111 ttl=64 time=2.0 ms
64 bytes from 100.8.0.1: icmp_seq=1112 ttl=64 time=430.0 ms
64 bytes from 100.8.0.1: icmp_seq=1113 ttl=64 time=2.0 ms
64 bytes from 100.8.0.1: icmp_seq=1114 ttl=64 time=2.1 ms
64 bytes from 100.8.0.1: icmp_seq=1115 ttl=64 time=2.0 ms
64 bytes from 100.8.0.1: icmp_seq=1116 ttl=64 time=2.0 ms
64 bytes from 100.8.0.1: icmp_seq=1117 ttl=64 time=390.0 ms
64 bytes from 100.8.0.1: icmp_seq=1118 ttl=64 time=2.0 ms
every 5 packet, appear a packet with big delay..
if I ping the listened ip by server from client , no delay at all .:
PING 192.16.1.2 (192.16.1.2): 56 data bytes
64 bytes from 192.16.1.2: icmp_seq=0 ttl=64 time=1.0 ms
64 bytes from 192.16.1.2: icmp_seq=1 ttl=64 time=1.0 ms
64 bytes from 192.16.1.2: icmp_seq=2 ttl=64 time=1.0 ms
64 bytes from 192.16.1.2: icmp_seq=3 ttl=64 time=1.0 ms
64 bytes from 192.16.1.2: icmp_seq=4 ttl=64 time=1.0 ms
64 bytes from 192.16.1.2: icmp_seq=5 ttl=64 time=1.0 ms
64 bytes from 192.16.1.2: icmp_seq=6 ttl=64 time=1.0 ms
64 bytes from 192.16.1.2: icmp_seq=7 ttl=64 time=1.0 ms
client vpn version is the same as the server : both is OpenVPN 2.0.9. even if I change the server version to 2.3.x ,the delay still appear.
the config of client:
config 'openvpn' 'client2'
option 'tun_mtu' '1400'
option 'username' '132aaa'
option 'pwd' '132aaa'
option 'comp_lzo' '0'
option 'auth_user_pass' '/tmp/appexcfg/etc/config/client2'
option 'dev' 'tun2'
option 'id' '2'
option 'defGw' '0'
option 'client' '1'
option 'resolv_retry' '5'
option 'nobind' '1'
option 'persist_key' '1'
option 'persist_tun' '1'
option 'ca' '/etc/easy-rsa/keys/ca.crt'
option 'cert' '/etc/easy-rsa/keys/defclient.crt'
option 'key' '/etc/easy-rsa/keys/defclient.key'
option 'verb' '3'
option 'up' '/appex/bin/vpn_up.sh'
option 'down' '/appex/bin/vpn_down.sh'
option 'up_restart' '1'
option 'name' '132aa'
list 'remote' '192.16.1.2 2194'
option 'proto' 'tcp'
option 'enable' '1'
The config of server:
config 'openvpn' 'server'
option 'port' '2194'
option 'dev' 'tun0'
option 'ca' '/etc/easy-rsa/keys/ca.crt'
option 'cert' '/etc/easy-rsa/keys/server.crt'
option 'key' '/etc/easy-rsa/keys/server.key'
option 'dh' '/etc/easy-rsa/keys/dh1024.pem'
option 'client_config_dir' '/tmp/appexcfg/etc/config/vpn'
option 'client_to_client' '1'
option 'comp_lzo' '0'
option 'persist_key' '1'
option 'persist_tun' '1'
option 'verb' '3'
option 'tmp_dir' '/var/log/openvpn'
option 'auth_user_pass_verify' '/tmp/appexcfg/bin/verify via-file'
option 'client_cert_not_required' '1'
option 'username_as_common_name' '1'
option 'tun_mtu' '1400'
option 'up' '/appex/bin/vpn_up.sh'
option 'down' '/appex/bin/vpn_down.sh'
option 'up_restart' '1'
option 'log' '/var/log/openvpn/server'
option 'name' 'Server'
option 'max_clients' '100'
option 'authType' 'local'
option 'ifconfig_pool_persist' '/var/log/server/ipp.txt'
option 'status' '/var/log/openvpn/openvpn-status.log 5'
option 'client_connect' '/appex/bin/client_up'
option 'client_disconnect' '/appex/bin/client_down'
option 'proto' 'tcp'
option 'keepalive' '50 600'
option 'server' '100.8.0.0 255.255.255.0'
option 'enable' '1'
list 'push' 'route 192.16.2.0 255.255.255.0'
the client system is
Linux 2.6.18.8 #362 SMP Tue Dec 2 13:20:07 CST 2014 i686 unknown
the server system is
Linux 2.6.32 #6 SMP Mon Mar 16 18:14:48 CST 2015 x86_64 GNU/Linux
please help me.