Hi,
I installed OpenVPN Server 2.3.11 and the connection and navigate works fine. All my traffic is redirected in the vpn tunnel but not my domain which use for authentication.
I explain: in my client configuration file, the remote directive have "mydomain.com 80". On my laptop, if I go on google.com, my traffic passes through my VPN but if I go on my website
http://www.example.com, the traffic do not pass through my vpn but in the real connection.
Below, my server and client configuration:
#Client
client
dev tun
proto tcp
sndbuf 0
rcvbuf 0
remote example.com 80
nobind
resolv-retry infinite
persist-key
persist-tun
comp-lzo
verb 4
cipher AES-256-CBC
remote-cert-tls server
key-direction 1
<tls-auth></tls-auth>
<ca></ca>
<cert></cert>
<key></key>
#Server
port 80
proto tcp
dev tun
topology subnet
server 172.16.2.0 255.255.255.0
tls-server
port-share 127.0.0.1 8080
ca ca.crt
cert d8-apps.crt
key d8-apps.key
dh dh.pem
crl-verify crl.pem
tls-auth ta.key 0
sndbuf 0
rcvbuf 0
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
client-to-client
keepalive 10 120
cipher AES-256-CBC
comp-lzo
user openvpn
group openvpn
persist-key
persist-tun
status openvpn-status.log 30
status-version 3
log openvpn.log
mute 20
verb 4
I have no rules iptables in the server which host the VPN but my firewall redirect the vpn traffic (it filters the traffic) with a route.
Anyway, in my laptop, when I run wireshark and look the traffic, all passes through tun0 and my domain example.com in wlp3s0.
Do you have any idea?
Thanks in advance
PS: sorry for my bad english 🙂