qnap check raid

To check the raid run

cat /proc/mdstat

To manuel set the speed

echo 100000 > /proc/sys/dev/raid/speed_limit_max

To manuel set the raid to check

echo check > /sys/block/md0/md/sync_action

 

install OpenVpn and Administrate it

it is really simple

run as admin and follow.

wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh

to add an new user

./openvpn-install.sh
Looks like OpenVPN is already installed

What do you want to do?
   1) Add a new user
   2) Revoke an existing user
   3) Remove OpenVPN
   4) Exit

at the end this script is generating you an vpn config, install all the programs and generate all SSL certs for you.

all the configs you can find under

/root/