derekperrin / rt-n56u

Automatically exported from code.google.com/p/rt-n56u
0 stars 0 forks source link

Trouble with EPV client 3.0.3.8-081 #1336

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I would connect usb hard drive with one of my centos server.

I installed and configured OpenVPN server on centos and configuring sharing usb 
hdd over nfs. All fine vpn working, i can ping router from my server.

NFS-shares in mounted to server without problem, but when i try to get list of 
files on sd using `ls` router owervite all settings of VPN client by default 
values.

I am using 3.0.3.8-081 version of firmware.

Original issue reported on code.google.com by sk...@ukrgadget.com on 18 Sep 2014 at 2:29

GoogleCodeExporter commented 9 years ago
I understand where is a problem with VPN.
I don't save the /etc/storage filesystems.

Can someone explain me how do i configure nfsd, becouse when router restarts 
/etx/exports is owerwited also.

Original comment by sk...@ukrgadget.com on 18 Sep 2014 at 2:43

GoogleCodeExporter commented 9 years ago
As for me, I don't recommend you to do the following. If these devices are on 
the same network, then there is no reason to encrypt traffic. If they are on 
different networks - it is bad idea to export it at all.

create /etc/storage/exports

add to /etc/storage/started_script.sh:
# ---
if [ -f /etc/storage/exports ] && [ -f /etc/exports ] ; then
  mount -o bind /etc/storage/exports /etc/exports
  /usr/bin/nfsd.sh reload
fi
# ---

Run:
# mtd_storage.sh save

Note: export file (/etc/storage/exports) can still be rewritten if disk is 
remounted due to some fault in runtime.

Original comment by d...@soulblader.com on 18 Sep 2014 at 8:58