I have a root server with openvz. (debian 7)
On that server are many virtual servers which are in their own local network 10.0.0.0/24
So I create a new VM with the IP 10.0.0.254 and installed openvpn on it, so when a client connects to it, the client shall have full access to 10.0.0.0/24
But that doesn't really work, if I connect to from my windows 10 machine to the openvpn server I lose my connection to the internet and I dont have access to the 10.0.0.0/24 network.
The strange thing is, when I connect from my android phone, I have internet access, but cant resolve domains, even if I specify a DNS in the server.conf, the client wont get that information..
what am i doing wrong?
server.conf:
Code: Select all
port 1194
proto udp
dev tun
sndbuf 0
rcvbuf 0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
tls-auth ta.key 0
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
#push "redirect-gateway def1 bypass-dhcp" //
#push "dhcp-option DNS 8.8.8.8" //
#push "dhcp-option DNS 8.8.4.4" //i played around with these options, nothing changes
keepalive 10 120
cipher AES-256-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
Code: Select all
client
dev tun
proto udp
sndbuf 0
rcvbuf 0
remote serverspublicip 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
comp-lzo
setenv opt block-outside-dns
key-direction 1
verb 3
Code: Select all
Ethernet-Adapter Ethernet 3:
Verbindungsspezifisches DNS-Suffix:
Verbindungslokale IPv6-Adresse . : who cares
IPv4-Adresse . . . . . . . . . . : 10.8.0.2
Subnetzmaske . . . . . . . . . . : 255.255.255.0
Standardgateway . . . . . . . . . :