Open VPN client cant connect , not even see a "syn" packet
Posted: Fri Feb 27, 2015 1:58 am
I have installed openvpn server in centos 7, below is my config :
Server config
---------------
;local a.b.c.d
proto tcp
;proto udp
;dev tap
dev tun
;dev-node MyTap
ca root.crt
cert vpnserver.crt
key vpnserver.key
dh dh2048.pem
;topology subnet
server 10.138.7.0 255.255.255.0
ifconfig-pool-persist ipp.txt
;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
;server-bridge
push "route 10.138.0.0 255.255.248.0"
;push "route 192.168.20.0 255.255.255.0"
;client-config-dir ccd
;route 192.168.40.128 255.255.255.248
;client-config-dir ccd
;route 10.9.0.0 255.255.255.252
;learn-address ./script
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 10.138.8.61"
;client-to-client
duplicate-cn
keepalive 10 120
;tls-auth ta.key 0 # This file is secret
;cipher BF-CBC # Blowfish (default)
;cipher AES-128-CBC # AES
;cipher DES-EDE3-CBC # Triple-DES
comp-lzo
;max-clients 100
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
;log-append openvpn.log
verb 9
;mute 20
------------------------------------
netstat -tanp | grep openvpn
tcp 0 0 0.0.0.0:1194 0.0.0.0:* LISTEN 11110/openvpn
Client config
---------------------
vpnclient
dev tun
proto tcp
remote 10.138.0.20 1194
resolv-retry infinite
nobind
persist-key
persist-tun
comp-lzo
verb 3
ca "C:\\Program Files\\OpenVPN\\\config\\root.crt"
cert "C:\\Program Files\\OpenVPN\\\config\\vpnclient.crt"
key "C:\\Program Files\\OpenVPN\\\config\\vpnclient.key"
Symptom
----------
1) Server tcpdump, does not receive any incoming packet
2) client turn on wireshark, click connect, does not see any tcp sync packet, then finally the client connect fail
3) no log in client.log file
I believe the issue is on the client side, as it does not even send the "syn" packet to destination host ( client and server are in the same subnet, ping no problem ).
Appreciate if anyone here can give advise what should i troubleshoot next..
Server config
---------------
;local a.b.c.d
proto tcp
;proto udp
;dev tap
dev tun
;dev-node MyTap
ca root.crt
cert vpnserver.crt
key vpnserver.key
dh dh2048.pem
;topology subnet
server 10.138.7.0 255.255.255.0
ifconfig-pool-persist ipp.txt
;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
;server-bridge
push "route 10.138.0.0 255.255.248.0"
;push "route 192.168.20.0 255.255.255.0"
;client-config-dir ccd
;route 192.168.40.128 255.255.255.248
;client-config-dir ccd
;route 10.9.0.0 255.255.255.252
;learn-address ./script
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 10.138.8.61"
;client-to-client
duplicate-cn
keepalive 10 120
;tls-auth ta.key 0 # This file is secret
;cipher BF-CBC # Blowfish (default)
;cipher AES-128-CBC # AES
;cipher DES-EDE3-CBC # Triple-DES
comp-lzo
;max-clients 100
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
;log-append openvpn.log
verb 9
;mute 20
------------------------------------
netstat -tanp | grep openvpn
tcp 0 0 0.0.0.0:1194 0.0.0.0:* LISTEN 11110/openvpn
Client config
---------------------
vpnclient
dev tun
proto tcp
remote 10.138.0.20 1194
resolv-retry infinite
nobind
persist-key
persist-tun
comp-lzo
verb 3
ca "C:\\Program Files\\OpenVPN\\\config\\root.crt"
cert "C:\\Program Files\\OpenVPN\\\config\\vpnclient.crt"
key "C:\\Program Files\\OpenVPN\\\config\\vpnclient.key"
Symptom
----------
1) Server tcpdump, does not receive any incoming packet
2) client turn on wireshark, click connect, does not see any tcp sync packet, then finally the client connect fail
3) no log in client.log file
I believe the issue is on the client side, as it does not even send the "syn" packet to destination host ( client and server are in the same subnet, ping no problem ).
Appreciate if anyone here can give advise what should i troubleshoot next..