From c8392edf10f90fa6d851db0dd125c135329c2d28 Mon Sep 17 00:00:00 2001 From: visocicaguy Date: Mon, 28 Nov 2016 09:26:44 +0100 Subject: [PATCH] updated vpn settings --- controller/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/controller/README.md b/controller/README.md index 3aa5409..fe06993 100644 --- a/controller/README.md +++ b/controller/README.md @@ -60,3 +60,17 @@ chmod +x sakis3g umtskeeper #add following line at the end of /etc/rc.local before "exit 0" (USBMODEM='12d1:1506' is a VARIABLE visible by issuing the command: lsusb): sudo /home/pi/umtskeeper/umtskeeper --sakisoperators "USBINTERFACE='0' OTHER='USBMODEM' USBMODEM='12d1:1506' SIM_PIN='0000' APN='CUSTOM_APN' CUSTOM_APN='active.bhmobile.ba' APN_USER='0' APN_PASS='0'" --sakisswitches "--sudo --console" --devicename 'Huawei' --log --silent --monthstart 1 --nat 'no' --sakismaxfails 20 --httpserver &>> /home/pi/umtskeeper/error.log ``` + +10. to set up vpn + +``` +generate vpn certificate, key and config (ovpn) files on server (see STEP 3: https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-14-04) + +transfer them to the client (WinSCP or a similar tool, maybe need to copy the key files to another directory, set chmod 644 for the .key file in order to transfer it) + +edit /etc/rc.local add the line +openvpn --daemon --cd /etc/openvpn --config zoblakFarmAlarmAmirZepce01.ovpn +before "exit 0" in order to start the vpn daemon on startup, where zoblakFarmAlarmAmirZepce01.ovpn is the generated conf file + +p.s. just for reference, the setting whether the client is using local or remote gw for internet access is being set for all clients in the /etc/openvpn/server.conf file on the server - comment or uncomment line ;push "redirect-gateway def1 bypass-dhcp" +```