OpenVPN client (tun0) and OpenVPN server (tun1)

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
himeroos
OpenVpn Newbie
Posts: 1
Joined: Sun Jan 07, 2018 8:31 pm

OpenVPN client (tun0) and OpenVPN server (tun1)

Post by himeroos » Sun Jan 07, 2018 8:34 pm

Hello everyone,

I am currently configuring my server to connect to a paid VPN so anonymized internet as well as create openvpn server so I can connect to the local network from the outside.

When only openvpn server is started: I access the local network, everything works.
When only openvpn client is started: I access the internet via vpn, everything works.

When both are started:
- I access the internet via the paid VPN.
- I access the vpn server from a post connect to the same local network, I always access the local network, except that there is more internet connection.
- I do not access the vpn server at all from an outside station.

Desired operation:

- To be able to go on the internet on the server via the vpn paying client.
- To be able to connect me via the server of any or to the local network as well as to the internet via the vpn paying Client.

Can you help me please, Thank you all.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN client (tun0) and OpenVPN server (tun1)

Post by TinCanTech » Sun Jan 07, 2018 8:40 pm

You need Linux Policy Base Routing on your server .. googling this website alone should find you answers.

Post Reply