1
0
Fork 0
mirror of https://github.com/Nyr/openvpn-install.git synced 2025-04-05 05:33:30 +03:00

Put ipp.txt and status.log in /var/run and /var/log respectively

In my use case, I wish to place `/etc/openvpn` in a read-only filesystem
so I can prevent corruption from unexpected power cycle.

`/var/run` and `/var/log` should be pretty standard on Linux systems,
though I didn't verify it beyond Debian-based OSes.
This commit is contained in:
Timothy Guan-tin Chien 2019-12-22 19:20:09 -08:00
parent 71f5fcc023
commit 5d15f8944d

View file

@ -337,7 +337,7 @@ auth SHA512
tls-crypt tc.key
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt" > /etc/openvpn/server/server.conf
ifconfig-pool-persist /var/run/openvpn/ipp.txt" > /etc/openvpn/server/server.conf
echo 'push "redirect-gateway def1 bypass-dhcp"' >> /etc/openvpn/server/server.conf
# DNS
case "$dns" in
@ -377,7 +377,7 @@ user nobody
group $group_name
persist-key
persist-tun
status openvpn-status.log
status /var/log/openvpn-status.log
verb 3
crl-verify crl.pem" >> /etc/openvpn/server/server.conf
if [[ "$protocol" = "udp" ]]; then