Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-07-2018, 03:10 PM   #1
LQ Newbie
Registered: Feb 2018
Posts: 2

Rep: Reputation: Disabled
Share VPN-Client in Network

I am not entirely new to Linux but I have no experience in configuring Linux bridgets / routers.
Recently I installed Ubuntu 16.04 on a Dell Optiplex 990.
It has two network cards and one of these is a VPN client installed.

My network contents:
- modem/router DHCP range 100-200
- Laptop (DHCP)
- Rasberry PI3
- Mediaplayer (Linux)
- Nas 192,168.40.10
Shares accessabel by Laptop, PC, Mediaplayer
- Linux machine (Ubuntu 16.04)
VPN-client installed on NIC 2
(I made a drawing but I do not know how to upload it)

The intention now is that other machines, Mediaplayer and PI3, in the network can use this VPN client.
It remains necessary for the media player to acces the share.

Is this possible and how do I do this (which steps?)?

Last edited by Volvofan63; 02-18-2018 at 03:24 PM.
Old 02-10-2018, 06:06 PM   #2
Senior Member
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Rep: Reputation: 103Reputation: 103
Where are you trying to connect exactly? What kind of VPN? Where would the VPN server be? You've only talked about the VPN client, but are you going to configure the VPN server or do you want to buy it?
Old 02-18-2018, 03:18 PM   #3
LQ Newbie
Registered: Feb 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for the reply.
My first test was to install the VPN client on my modem / router.
That was successful. Only the speed of connection was too slow.
As an alternative, I want to use the linux machine ((with the two network cards, neither of which are wireless).
All mentioned machines are in the home network.
The PC and laptop must access the internet via the router, without VPN.

The VPN connection is rented from a VPN provider.

In the original post I tried to upload the network design.

Last edited by Volvofan63; 02-18-2018 at 03:25 PM.
Old 02-18-2018, 03:36 PM   #4
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
The machine with VPN is the client. Usually, if you want different devices to use the vpn, you put a client on each one, and use the same credentials.
Old 02-19-2018, 09:44 AM   #5
Senior Member
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Rep: Reputation: 103Reputation: 103
You do either what AwesomeMachine says, or you use the linux machine as a router for the other machines in your network and add a permanent static vpn route. The problem with this setup is that you'd end up with nat within nat, which isn't exactly what you'd want, although it's possible.

By the way, you don't install a vpn client on a NIC, you install it on a machine and then you set up the routes. It's improper to say that a vpn client is installed on a certain NIC.

Last edited by vincix; 02-19-2018 at 09:46 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't ping/connect to network share from VPN tunnel jsav CentOS 1 09-18-2015 10:53 AM
Share VPN connection in Home network zzy Linux - Networking 6 01-25-2012 10:50 PM
client cannot access VPN network evo_trust Linux - Networking 1 06-17-2010 10:56 AM
Client connecting to network via VPN mbourne Linux - Security 1 10-13-2004 10:52 AM
Cannot see Samba share through VPN tunnel from win98 client gaagaagui Linux - Software 1 01-19-2004 06:25 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration