Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 192.168.40.1 DHCP range 100-200
- Laptop (DHCP)
- PC (DHCP)
- Rasberry PI3 192.168.40.36
- Mediaplayer (Linux) 192.168.40.25
- Nas 192,168.40.10
Shares accessabel by Laptop, PC, Mediaplayer
- Linux machine (Ubuntu 16.04)
NIC 1 192.168.40.40
NIC 2 192.168.40.41
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.