LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-29-2020, 05:08 PM   #1
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Rep: Reputation: 61
Talking OpenVPN quick sanity check.


Hey LQ,

I've got a nextcloud VM running on my home server. I want to give my parents access to it through the nextcloud desktop client app but I don't want to leave an http/s port open on my system. I'd much prefer to have them connect into my network through a VPN.

So my theory is I'll spin up a small VM whose only purpose in life is to receive VPN connections and that way all of my parents internet traffic is routed as if it were on my home network. They'll be able to access the nextcloud Vm by typing in a local address.

Is this the right idea? Any pros or cons you want me to be aware of?

Thanks in advance!

Also, if anyone can suggest a good windows vpn client (is there one built in yet?) that'd be great too.
 
Old 04-29-2020, 06:21 PM   #2
IlyaK
Member
 
Registered: Jun 2017
Location: The Netherlands
Distribution: Debian
Posts: 118

Rep: Reputation: 72
I am not familiar with nextcloud, but generally you are right: VPN is the right solution to give your parents access to services of your network. Just make sure that your VPN server would be accessible from the Internet.
Some people have private IP addresses, so they can't create VPN server.

Also make sure that their local network has different addresses. If your server happens to have same IP as their router (192.168.1.1 for example) you will be in trouble)


Another approach would be Windows machine with RDP access (I assume they are using Windows), but VPN is better.

Windows only supports IPSec/IKEv2 out of the box. On Linux side you can use StrongSWAN for IKE, but there is a free OpenVPN client for Windows.

While IKE is more flexible, it is much more complex and harder to configure and debug. So, install OpenVPN client on Windows and use it

Here are some ideas no how to secure it:
* Use Server Mode instead of p2p (static key) mode. With Server mode OpenVPN implements Perfect Forward Security: keys are changed automatically.
* If you know your parents IP address, then only allow access to your VPN from their IP (using iptables or something like that).
* Use some random port: not 443 and not 8443. Networks are scanned by robots constantly
 
1 members found this post helpful.
Old 04-29-2020, 07:05 PM   #3
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Original Poster
Rep: Reputation: 61
Quote:
Originally Posted by IlyaK View Post
I am not familiar with nextcloud, but generally you are right: VPN is the right solution to give your parents access to services of your network. Just make sure that your VPN server would be accessible from the Internet.
Some people have private IP addresses, so they can't create VPN server.

Also make sure that their local network has different addresses. If your server happens to have same IP as their router (192.168.1.1 for example) you will be in trouble)


Another approach would be Windows machine with RDP access (I assume they are using Windows), but VPN is better.

Windows only supports IPSec/IKEv2 out of the box. On Linux side you can use StrongSWAN for IKE, but there is a free OpenVPN client for Windows.

While IKE is more flexible, it is much more complex and harder to configure and debug. So, install OpenVPN client on Windows and use it

Here are some ideas no how to secure it:
* Use Server Mode instead of p2p (static key) mode. With Server mode OpenVPN implements Perfect Forward Security: keys are changed automatically.
* If you know your parents IP address, then only allow access to your VPN from their IP (using iptables or something like that).
* Use some random port: not 443 and not 8443. Networks are scanned by robots constantly
Thank you!

NextCloud is a fork of OwnCloud, and it's trying so hard to be Google Docs/Drive etc.
 
  


Reply



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
ncurses-5.3 configure error - fails sanity check itsjustme Linux From Scratch 3 10-04-2003 05:34 PM
Quick Sanity Check sub-genius Slackware 5 07-15-2003 11:28 AM
glibc configure: fails sanity check Mr. Eek Linux From Scratch 4 05-19-2003 01:24 AM
IPTables Sanity Check Crashed_Again Linux - Networking 3 03-06-2003 08:49 PM
Sanity check please: Can I install glibc on Irix? system Linux - General 0 04-15-2002 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:22 AM.

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