I want OpenVPN Community Edition on my Debian 9 vserver as my own alternative hamatchi use.
In addition, I would like to include a website that can only be accessed via the vpn server. I'm not at this point yet.
Openvpn-Server funktioniert. Ich und meine Leute können eine Verbindung herstellen und jeder hat Internet über openvpn,
I don't want internet to work through vpn.
I already know how to do that.
The problem:
Windows 10 still routs all traffic over the VPN.
How can I prevent this?
/etc/openvpn/server/server.conf:
Code: Select all
local 185.73.242.60
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-crypt tc.key
topology subnet
server 10.8.0.0 255.255.255.0
server-ipv6 fddd:1194:1194:1194::/64
push "redirect-gateway def1 ipv6 bypass-dhcp"
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
verb 0
crl-verify crl.pem
explicit-exit-notify
client-to-client
explicit-exit-notify 1
Client:
desktop shortcut openvpn -> "C:\Program Files\OpenVPN Connect\OpenVPNConnect.exe" --pull-filter ignore redirect-gateway
and
Server (server.conf | everything individually and tested together):
#push "redirect-gateway def1 ipv6 bypass-dhcp"
push "redirect-gateway def1 bypass-dhcp"
#push "dhcp-option DNS 208.67.222.222"
#push "dhcp-option DNS 208.67.220.220"
push "route 10.8.0.0 255.255.255.255"
#push "redirect-gateway def1 ipv6 bypass-dhcp"
push "redirect-gateway def1"
#push "redirect-gateway def1 ipv6 bypass-dhcp"
push "redirect-gateway
push "route 10.8.0.0 255.255.255.255"
push "route 10.8.0.100 255.255.255.255"
#push "redirect-gateway def1 ipv6 bypass-dhcp"
push "redirect-gateway local def1"
I don't know what else I can test.
I hope someone can help me.
Many Thanks Regards