Yes, ideally the VPN should connect at boot and stay that way permanently. Thanks for the link, I'll check it out.
I don't understand what you mean. Can you rephrase the question?
The purpose is to encrypt my internet connection on my server, so that the connection is secure when I download stuff from the internet directly onto my server.
My server is on my LAN (same subnet, local IP) and it gets its internet connection through my LAN and I can access it directly via my LAN. Now I don't need to use a VPN from my PC to my server, because I am on my LAN, so that is not the issue nor am I trying to accomplish this. What I need is, my server to have a secure connection to my VPN provider when it is downloading something so that my ISP can't see the servers internet traffic but it should still be accessible on my LAN via local IP.
So I need to route ALL internet traffic through my VPN - and the ALL LAN traffic should go through LAN.
Does that make sense?
Alright, thanks for your help anyway.
Hm.. but why does it then work without any problems on my desktop PC?
10.8.0.1 - Yes
18.104.22.168 - No, unknown host
Added - now there's no internet connection again.
Ok, now the VPN is connected and I have an internet connection, the problem is that the internet traffic isn't going through the VPN, which was the entire point. My true IP on the Server is still visible.
So it should be: My Home Server --> VPN service --> Internet
If it is your vpn server check his config cause pushing default routes let run many clients into this problem
No it's not my server, it's a paid service and this was the default config that I got from them, which works fine on my PC with Fedora.
I will try what you suggested, thanks.
Sorry I didn't connect the first time. Here it is:Code
Hi, thanks for the reply.
Here is my VPN config file:Code
And here is the routing table:
I'm trying to setup a secure connection on my OMV server using the OpenVPN client with the command:
Which seems to work fine as I get:
But once this happens my server loses internet connectivity (the local network connection still works), and as a result, after a few minutes the VPN connection drops.
Anyone can tell me what am I doing wrong?