Hi there,
Here what I want to do :
- Access to a remote network through OpenVPN
- Use client gateway to access internet (so I DON'T want to redirect all through VPN)
- Use remote DNS through VPN, because I have many intranet websites
- Have a server configuration file for every client (Windows/Mac/Linux)
So, I can access to internet and DNS through remote network (thanks to push "redirect-gateway def1 bypass-dhcp"), OR I can have internet through client gateway but I can't get remote DNS...
How can I do this trick ?
Here my server.conf :
port 1194
proto udp
dev tun
ca ca.crt
cert cert.crt
key key.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.90.0 255.255.255.0"
route 192.168.90.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 192.168.90.22"
push "dhcp-option DNS 8.8.8.8"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
My client.conf is the default one, with custom IP and keys.
Thank you very much !
Florent