LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-19-2023, 06:37 AM   #1
elsmandino
Member
 
Registered: Oct 2009
Posts: 100

Rep: Reputation: 0
Options for remotely accessing Linux server


Hi there.

I would be really grateful for some advice on how to safely connect to my Linux when outside of my home network.

I am running Openmediavault 6.

Are there any free ways to securely access my server from a mobile phone or PC, remotely?

I have been looking at VPNs (OpenVPN and Wireguard).

I have also been looking at Reverse Proxies like Cloudflare.

I cannot really tell the difference between them.

Any assistance would be much appreciated.
 
Old 05-19-2023, 09:54 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,253
Blog Entries: 4

Rep: Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777
I recommend using OpenVPN with unique digital certificates and tls-auth. This gives you a very well-protected entryway which is concealed from view: those "scanning" your system will not detect that anything is there. So, there will be zero "unauthorized access attempts." Yet, to an authorized user, opening the tunnel is as quick and easy as clicking a button. Every piece of data that passes between the systems – each of which can securely identify the other – will be encrypted automagically.

Last edited by sundialsvcs; 05-19-2023 at 09:55 AM.
 
2 members found this post helpful.
Old 05-19-2023, 05:35 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,704

Rep: Reputation: 3584Reputation: 3584Reputation: 3584Reputation: 3584Reputation: 3584Reputation: 3584Reputation: 3584Reputation: 3584Reputation: 3584Reputation: 3584Reputation: 3584
Your home router may have a VPN too.
 
1 members found this post helpful.
Old 05-23-2023, 10:43 AM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,982

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
as that distro supports ssh, open that port and configure the sshd to accecpt X11 forwarding if you want access to the webUI without opening that to the world. Id also configure passwordless connection and mandate RSA token for login.

As for your phone getting access to the webUI, for that you will require a VPN. As mentioned above OpenVPN would be free and eventhough not easy, is still something you can find good documentations to install/configure/test.

Most phones also have the option of installing a Terminal that can be used to issue ssh commands. dont think the X11 forwarding will work on a phone, but i know ssh does work without to much issue, at least in the Android world. Cannot say for iOS devices.
 
1 members found this post helpful.
Old 05-23-2023, 12:59 PM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 20,257

Rep: Reputation: 6838Reputation: 6838Reputation: 6838Reputation: 6838Reputation: 6838Reputation: 6838Reputation: 6838Reputation: 6838Reputation: 6838Reputation: 6838Reputation: 6838
did you try ddns already?
 
1 members found this post helpful.
Old 05-23-2023, 01:47 PM   #6
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,089

Rep: Reputation: 462Reputation: 462Reputation: 462Reputation: 462Reputation: 462
I use Tailscale to connect to my home server from my laptop or phone. Setup is stupid easy, but has all the security of Wireguard that it is build on.
Plus I have my NAS set to run as an end-point, so I can use it as a VPN exit from my other devices.
 
1 members found this post helpful.
Old 05-24-2023, 08:41 AM   #7
elsmandino
Member
 
Registered: Oct 2009
Posts: 100

Original Poster
Rep: Reputation: 0
Thanks guys - much appreciated.

I am really not very good when it comes to networking, so I have been looking up some of the above. Am a bit out of depth on this one!

Is Cloudflare worth considering as an option?

I am not quite sure whether that counts as a VPN or not.
 
Old 05-24-2023, 09:20 AM   #8
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 347
Blog Entries: 2

Rep: Reputation: Disabled
How are you accessing the files? You might get away with inbound (dmz) and iptables depending on the protocol.
 
Old 05-24-2023, 02:40 PM   #9
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,253
Blog Entries: 4

Rep: Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777Reputation: 3777
I once again recommend OpenVPN precisely because it is a (digital-certificate secured) tunnel. Functionally, it behaves as a TCP/IP router (or switch), but which is cryptographically secured. It is therefore exactly what the name implies: a truly-private and reliable network connection that is also "virtual," taking place over an insecure public network. The users of the system not only do not need to "know how the trick is done," but they don't even need to know that "trick" is being done at all. And, unlike a simple "password," a digital certificate cannot be "hacked."

Authorized users bearing non-revoked certificates simply click on the icon at the top of their screen and wait a few seconds for it to turn from gray to black. They then think nothing further of it ...

Last edited by sundialsvcs; 05-24-2023 at 02:44 PM.
 
Old 05-24-2023, 07:50 PM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 18,239

Rep: Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712
Apart from the technical issues, keep in mind that unless you pay for a static (aka Business ctc) IP from your ISP, many will block home based servers / ports.
You should check with them before you try to implement a soln.
 
Old 05-25-2023, 09:33 AM   #11
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,089

Rep: Reputation: 462Reputation: 462Reputation: 462Reputation: 462Reputation: 462
Quote:
Originally Posted by elsmandino View Post
Thanks guys - much appreciated.

I am really not very good when it comes to networking, so I have been looking up some of the above. Am a bit out of depth on this one!

Is Cloudflare worth considering as an option?

I am not quite sure whether that counts as a VPN or not.
Cloudflare is a CDN, Content Delivery Network they do not have a VPN service they offer that I know of. You might be thinking of their DNS service 1.1.1.1

To save you a bit of time, if you do go with OpenVPN and will not have more then 2 users, then download the trial version of Access Server from openvpn.org as that has the web interface that makes everything easy. It is free to use but only allows 2 users to connect.
The opensource version you can get from your distro repository does not have the web interface so it needs to be setup and configured from the command line, but has no user limit.

Last edited by uteck; 05-25-2023 at 09:33 AM. Reason: typo
 
  


Reply


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
Accessing Linux Server Remotely HypnotiComp Linux - Networking 4 02-21-2014 04:37 AM
restarting apache and liferay remotely is not working for apache proxy remotely call_krushna Linux - Server 3 05-16-2013 12:13 PM
remotely installing rhel server 6 remotely jwenzel09 Red Hat 2 10-24-2011 08:22 AM
Can I remotely login to remotely display data (remote X-window issue)? polishweasel Linux - Networking 2 06-29-2011 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

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