Oh thx guys. Now i know what's going on. For some reason the client do not uses my dns. It uses the ip from me and my gateway but not my dns...
therefore there was a resolv problem. For shortly fix i added 8.8.8.8 to /etc/resolv.conf and set this file write protected.
Now i have to look whats the problem why my dns is not pushed.
My Server file:
client-to-client
ca /etc/openvpn/ca.crt
cert /etc/openvpn/vpn-server.crt
dev tun
dh /etc/openvpn/dh2048.pem
keepalive 10 120
key /etc/openvpn/vpn-server.key
port 1194
proto udp
server 10.8.0.0 255.255.255.0
verb 3
push redirect-gateway def1
push dhcp-option DNS 192.168.1.1
push route 192.168.1.0 255.255.255.0
my client looks like:
dev tun
proto udp
log openvpn.log
verb 3
ca ca.crt
cert client_XXX.crt
key client_XXX.key
client
remote-cert-tls server
remote dyndns.XXXX.at 1194
script-security 2
up /etc/openvpn/update-resolv.conf
down /etc/openvpn/update-resolv.conf
Did i made something wrong hiere?