Hi guys I'm having the following problem, my openvpn server works great, to access my local servers, and devices.
However I want to route all my traffic over the VPN, this works for a minute or so with my configuration and then stops working.
The question is what is wrong?
My lan is on subnet 10.15.1.0/24
My vpn is on 10.8.0.0/24
My router knows how to route the traffic, I can ping everything when connected to the VPN.
http://prntscr.com/446dqn
The line that I have added to route my traffic over the VPN is as following:
push "redirect-gateway def1"
Can somebody tell me what I'm doing wrong? Thanks!
This is my OpenVPN config:
sup4y0sh1@HOMESRV:/etc/openvpn$ grep -v '^$\|^\s*\#' server.conf
;local a.b.c.d
port 1194
;proto tcp
proto udp
;dev tap
dev tun
;dev-node MyTap
ca ca.crt
cert HOMESRV.crt
key HOMESRV.key # This file should be kept secret
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
;server-bridge
;push "route 192.168.10.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"
push "redirect-gateway def1"
;client-config-dir ccd
;route 10.15.1.0 255.255.255.0
;client-config-dir ccd
;route 10.9.0.0 255.255.255.252
;learn-address ./script
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
;route 10.15.1.0 255.255.255.0
push "route 10.15.1.0 255.255.255.0"
;client-to-client
;duplicate-cn
keepalive 10 120
;tls-auth ta.key 0 # This file is secret
;cipher BF-CBC # Blowfish (default)
;cipher AES-128-CBC # AES
;cipher DES-EDE3-CBC # Triple-DES
comp-lzo
;max-clients 100
user nobody
group nogroup
persist-key
;persist-tun
status openvpn-status.log
log /var/log/openvpn.log
;log-append openvpn.log
verb 3
mute 20
topology subnet
sup4y0sh1@HOMESRV:/etc/openvpn$