mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Added optional OpenVPN steps
parent
808294d542
commit
688f5775d4
@ -112,6 +112,19 @@ sudo sed -i -E 's/^session\.cookie_httponly\s*=\s*(0|([O|o]ff)|([F|f]alse)|([N|n
|
||||
sudo sed -i -E 's/^;?opcache\.enable\s*=\s*(0|([O|o]ff)|([F|f]alse)|([N|n]o))\s*$/opcache.enable = 1/' /etc/php/7.1/cgi/php.ini
|
||||
sudo phpenmod opcache
|
||||
```
|
||||
(Optional) Install OpenVPN, enable option in RaspAP config and enable openvpn-client service
|
||||
```
|
||||
sudo apt-get install openvpn
|
||||
sudo sed -i "s/\('RASPI_OPENVPN_ENABLED', \)false/\1true/g" /var/www/html/includes/config.php
|
||||
sudo systemctl enable openvpn-client@client
|
||||
```
|
||||
(Optional) Create OpenVPN auth control scripts and set permissions
|
||||
```
|
||||
sudo mkdir /etc/raspap/openvpn
|
||||
sudo cp /var/www/html/installers/configauth.sh /etc/raspap/openvpn
|
||||
sudo chown -c root:www-data /etc/raspap/openvpn/*.sh
|
||||
sudo chmod 750 /etc/raspap/openvpn/*.sh
|
||||
```
|
||||
Reboot and it should be up and running!
|
||||
```sh
|
||||
sudo reboot
|
||||
|
Loading…
Reference in New Issue
Block a user