Sollembum78 wroteAll traffic BYPASS VPN, and certain sites routed through vpn
Sollembum78 wroteCan someone provide few lines I need to add to config for this? Like
route blockedsite.com vpn
route alltraffic notvpn
Like so
- Remove all --redirect-gateway options from server and client
- Add routes for domain to use VPN either pushed from server or in client config
eg: route 10.11.12.0 255.255.255.0
push "route 10.11.12.0 255.255.255.0"
or route 10.11.12.0 255.255.255.0route 10.11.12.0 255.255.255.0
If you mean to route something like
my.domain.org, I don't recommend this but like so:
There are other steps you need to ensure things work like using iptables to NAT your client packets.
Please read the howto.
Sollembum78 wroteP.S. Minor problem. When I disconnect from openvpn and try to connect next day it doesn't connect, so I have to restart server side with "sudo service openvpn restart", and then it works. I'm running xubuntu 14.04 on server.
Please see:
HOWTO: Request Help !