matt12
Hi,
I'm trying to connect openvpn in windows, but traffic is not going through vpn. Also I'm not able to ping to gateway 10.8.0.1. Please help me fix it. weird thing is that, same is working in linux client, but not in windows. Please help me
Server conf
*************************
port 1194
proto tcp
auth SHA512
dev tap
ca /etc/openvpn/ssl/ca.crt
cert /etc/openvpn/ssl/server.crt
key /etc/openvpn/ssl/server.key # This file should be kept secret
dh /etc/openvpn/ssl/dh.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
tls-auth /etc/openvpn/ssl/ta.key 0 # This file is secret
cipher AES-256-CBC
compress lz4-v2
push "compress lz4-v2"
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 3
Client conf
************************
client
dev tap
route-method exe
route-delay 2
proto tcp
port 1194
remote VPN IP 1194 tcp
remote-cert-tls server
resolv-retry infinite
nobind
persist-key
persist-tun
compress lzo
#push route-gateway 10.8.0.1
verb 3
cipher AES-256-CBC
auth SHA512
tls-client
tls-version-min 1.2
tls-cipher TLS-DHE-RSA-WITH-AES-256-GCM-SHA384
Also done traffic redirecton in linux centos
**********************************************
[root@webserver ~]# sysctl -p
net.ipv4.ip_forward = 1
[root@webserver ~]# iptables -t nat -v -L -n --line-number
Chain PREROUTING (policy ACCEPT 78611 packets, 4732K bytes)
num pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 53292 packets, 3003K bytes)
num pkts bytes target prot opt in out source destination
1 454 28533 MASQUERADE all -- * venet0 10.8.0.0/24 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 53292 packets, 3003K bytes)
num pkts bytes target prot opt in out source destination
[root@webserver ~]#
Routing rule list in windows
*************************************
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.8.0.1 10.8.0.48 21
10.8.0.0 255.255.255.0 On-link 10.8.0.48 276
10.8.0.48 255.255.255.255 On-link 10.8.0.48 276
10.8.0.255 255.255.255.255 On-link 10.8.0.48 276
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.0.0 255.255.0.0 On-link 192.168.1.101 281
192.168.1.101 255.255.255.255 On-link 192.168.1.101 281
192.168.255.255 255.255.255.255 On-link 192.168.1.101 281
VPN IP 255.255.255.255 192.168.1.1 192.168.1.101 26
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 10.8.0.48 276
224.0.0.0 240.0.0.0 On-link 192.168.1.101 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 10.8.0.48 276
255.255.255.255 255.255.255.255 On-link 192.168.1.101 281
Thank you,