Page 1 of 1

Routing question

Posted: Sun Dec 03, 2017 11:40 am
by erich74
Sorry about the question but I'm very new to it.

I have configured my synology NAS at home with a VPN Server.
The idea is to be able to access internal lan ressources from outside using vpn.(I have checked the box in OpenVPN conf of the nas to allow accessing lan devices)

I have configure OpenVPN on my iPhone and everything works fine.

My question is: How do I control that the VPN connection is only used when tryin to access LAN ressources?
I have checked the trafic on my router and it seems to be ok (streaming my IP cam does go through VPN but streaming a youtube video does not seem to go through my NAS).
This is what I want but I don't understand why, the VPN client being active, not all the trafic is going through my NAS.

Thanks
Eric

Re: Routing question

Posted: Sun Dec 03, 2017 2:03 pm
by Pippin
In the exported client config through the OpenVPN Package, there is a directive "#redirect-gateway def1"
If you remove the # then the client will send all traffic through the tunnel (except DNS).

See --redirect-gateway in OpenVPN manual 2.3 (2.3.x is version that Synology uses)
https://community.openvpn.net/openvpn/w ... n23ManPage

Re: Routing question

Posted: Sun Dec 03, 2017 2:29 pm
by erich74
Thank you very very much for your answer!