How to remotely mount drive in file system?

Discussion about using NAS on Linux and Unix OS.
tomwgf
Getting the hang of things
Posts: 60
Joined: Fri Jan 11, 2008 6:44 am

How to remotely mount drive in file system?

Post by tomwgf »

HI
i have for years been able to edit my fstab and mount my nas as a drive on my computer on my home network.

But, for almost as long i have tried to work out how to mount the nas as a drive on my laptop when i am away from home.
I have tired my qnapcloud, and qvpn and failed with both - though i get the impression that this is not the best way to do it anyway.

But can anyone point me to a page that explains it easily. I am not the brightest spark so it has to be pretty basic.

I think i need to do something in my Filestation ( ive tried many things so may have to undo stuff)
i think i probably need ... maybe not an an actual url - like my qnap cloud, but some way to get to my router and on to the nas
and to change my fstab on the laptop.

thank you
User avatar
dolbyman
Guru
Posts: 35215
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: How to remotely mount drive in file system?

Post by dolbyman »

Anything other than VPN and you might as well delete the files yourself

viewtopic.php?f=45&t=164797

Get a VPN capable router or dedicated appliance (e.g. raspi), then you can establish a VPN connection and mount SMB shares even from on the go.
tomwgf
Getting the hang of things
Posts: 60
Joined: Fri Jan 11, 2008 6:44 am

Re: How to remotely mount drive in file system?

Post by tomwgf »

ok, so i think my router has: VPN Service
Enable VPN Service

OpenVPN configuration package download
For Windows For non-Windows For Smart Phone

OpenVPN client setup instruction
Windows MAC iPhone Android

Advanced Configurations
i think i had a go at this method once and failed.
so, what do i do next?
User avatar
dolbyman
Guru
Posts: 35215
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: How to remotely mount drive in file system?

Post by dolbyman »

You just posted a bunch of text blocks, not sure what this is supposed to tell us

If your router supports a VPN server, set it up (consult your router manual or router manufacturer forum) and then setup your client PC's to access it.

For OVPN it normally is (depending on config) a *.ovpn file (with settings and certificate) and a username/password combination for the client
tomwgf
Getting the hang of things
Posts: 60
Joined: Fri Jan 11, 2008 6:44 am

Re: How to remotely mount drive in file system?

Post by tomwgf »

it shows what the options are on the cpn set up page of the netgear r8500 router
i was wondering what to do next. like i said - i've tried to do this before by myself and ended up with quite a lot of things done but still no connection.
i had hoped someone might be able to help me - tell me what to do on the qnap, what to do on the router and what to do on my laptop.
User avatar
dolbyman
Guru
Posts: 35215
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: How to remotely mount drive in file system?

Post by dolbyman »

nothing to do on the QNAP

and as said again, check your router manual and/or ask in a netgear forum

here is some random google search results that might help too
https://www.youtube.com/watch?v=2yUwjvrv2Qo
https://kb.netgear.com/23854/How-do-I-u ... ows-client
tomwgf
Getting the hang of things
Posts: 60
Joined: Fri Jan 11, 2008 6:44 am

Re: How to remotely mount drive in file system?

Post by tomwgf »

(i keep not being able to submit?)
so far i have installed openvpn on ubuntu
i have download opnevn configuraiton files fro router
i have unzipped files
but where do they go?
it says: 'copy them to a folder where the VPN client is installed on your device'
where is that?
tomwgf
Getting the hang of things
Posts: 60
Joined: Fri Jan 11, 2008 6:44 am

Re: How to remotely mount drive in file system?

Post by tomwgf »

tomwgf
Getting the hang of things
Posts: 60
Joined: Fri Jan 11, 2008 6:44 am

Re: How to remotely mount drive in file system?

Post by tomwgf »

and now found this about what files go where:
https://whstatic.1and1.com/help/CloudSe ... 51526.html

will see how it goes
tomwgf
Getting the hang of things
Posts: 60
Joined: Fri Jan 11, 2008 6:44 am

Re: How to remotely mount drive in file system?

Post by tomwgf »

i have copied the 3 keys over to keys folder in /etc/openvpn
currently stuck on line: Copy the OpenVPN configuration file e.g. vpn1234B_1.ovpn /etc/openvpn directory.
i dont have an .ovpn file - i have a client2.conf file
whcvi i have copied to /etc/openvpn
and tried to run openvpn --config client2.conf
that didnt go well.
a bit stuck
User avatar
dolbyman
Guru
Posts: 35215
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: How to remotely mount drive in file system?

Post by dolbyman »

according to the netgear forums
https://community.netgear.com/t5/Nighth ... -p/1999783

download the windows config files , they contain a ovpn file
tomwgf
Getting the hang of things
Posts: 60
Joined: Fri Jan 11, 2008 6:44 am

Re: How to remotely mount drive in file system?

Post by tomwgf »

Right!
i have downloaded windows config zip - unzipped and copied to /etc/openvpn/client1.ovpn
now i have to it seems open this file and edit it to add the keys
by replacing
the lines ca ca.crt with something like /etc/openvpn/keys/ca.crt
and the next two keys
tomwgf
Getting the hang of things
Posts: 60
Joined: Fri Jan 11, 2008 6:44 am

Re: How to remotely mount drive in file system?

Post by tomwgf »

then i ran openvpn /etc/openvpn/<vpnID>.ovpn
and failed. 2 errors - client key is group or other accessible - so i guess thats a permissions thing?
and no servier certification verifcation method has been enabled - i wonder if thats in the opvn file?
may stop for the night now
User avatar
dolbyman
Guru
Posts: 35215
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: How to remotely mount drive in file system?

Post by dolbyman »

if you have access to a windows system use the openvpn access or gui application and try the file there .. shouldn't be too complicated .. really

above error message is just a permission warning .. nothing else
https://airvpn.org/forums/topic/11328-o ... acessible/
tomwgf
Getting the hang of things
Posts: 60
Joined: Fri Jan 11, 2008 6:44 am

Re: How to remotely mount drive in file system?

Post by tomwgf »

oddly that link seems to be blocked.
but
i changed the permission for the file
sudo chmod 600 client.key - and warning has gone

i added the line remote-cert-tls server to my client1.opvn config file
sudo gedit /etc/openvpn/client1.ovpn

but now get a warning: Unrecognised option or missing extra parameter for remote-cert-tls
Post Reply

Return to “Linux & Unix (NFS)”