Routing question

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
erich74
OpenVpn Newbie
Posts: 2
Joined: Sun Dec 03, 2017 11:35 am

Routing question

Post by erich74 » Sun Dec 03, 2017 11:40 am

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

User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: Routing question

Post by Pippin » Sun Dec 03, 2017 2:03 pm

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

erich74
OpenVpn Newbie
Posts: 2
Joined: Sun Dec 03, 2017 11:35 am

Re: Routing question

Post by erich74 » Sun Dec 03, 2017 2:29 pm

Thank you very very much for your answer!

Post Reply