server.conf
mode server
tls-server
script-security 2
local MYIP address :P (hidden)
port 1725
proto udp
server 10.10.172.0 255.255.255.0
persist-key
persist-tun
mssfix 1200
client-to-client
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
tls-auth ta.key 0
cipher BF-CBC
comp-lzo
ifconfig-pool-persist ipp.txt
push "route 192.168.0.0 255.255.255.0"
push "dhcp-option WINS 192.168.0.1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 10.10.172.1"
push "redirect-gateway"
client.ovpn
client
dev tun
remote MYIP 1725
mssfix 1200
keepalive 15 60
script-security 2
nobind
resolv-retry infinite
persist-key
persist-tun
mssfix 1200
cipher BF-CBC
comp-lzo
verb 3
<ca>
</ca>
<cert>
</cert>
<key>
</key>
key-direction 1
<tls-auth>
</tls-auth>
Server is on latest Debian x64, Client - Windows 8.1 x64
The problem push "redirect-gateway" pushes the wrong DHCP and route to client (it pushes 10.10.172.5, but it must push 10.10.172.1 - this is the ip of the tun interface in debian).
How to make it push the correct route?
push "redirect-gateway def1" does NOT push any route.
push "redirect-gateway 10.10.172.1" does NOT push any route.
Any ideas?