summaryrefslogtreecommitdiff
path: root/public/fs/etc/openvpn/hostvpn.conf.in
diff options
context:
space:
mode:
authorroot@culturestrings <root@culturestrings>2020-09-01 18:44:10 +0000
committerroot@culturestrings <root@culturestrings>2020-09-01 19:17:13 +0000
commitc2ee4ced281a9fbfd36e5e930f935a0c240812b2 (patch)
tree88c0e5f4dc1436400a3930726e770cab68a97290 /public/fs/etc/openvpn/hostvpn.conf.in
parentc63e1b6d9bc66dc579e888a393fd5072f2c743a8 (diff)
downloadculturestrings-c2ee4ced281a9fbfd36e5e930f935a0c240812b2.tar.bz2
culturestrings-c2ee4ced281a9fbfd36e5e930f935a0c240812b2.tar.xz
openvpn: support two distinct (masquerading and non-masquerading) vpn's.
Diffstat (limited to 'public/fs/etc/openvpn/hostvpn.conf.in')
-rw-r--r--public/fs/etc/openvpn/hostvpn.conf.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/public/fs/etc/openvpn/hostvpn.conf.in b/public/fs/etc/openvpn/hostvpn.conf.in
index fb85982..b82bbec 100644
--- a/public/fs/etc/openvpn/hostvpn.conf.in
+++ b/public/fs/etc/openvpn/hostvpn.conf.in
@@ -1,7 +1,7 @@
port @vpn_port@
proto udp
-dev tun0
+dev @vpn_tunnel@
topology subnet
cipher AES-256-CBC
@@ -13,14 +13,14 @@ askpass /srv/webroot/openvpn/@hostname@.pass
key /etc/easy-rsa/pki/private/@hostname@.key
dh /etc/easy-rsa/pki/dh.pem
-status /var/log/openvpn/openvpn-status.log
-log-append /var/log/openvpn/openvpn.log
+status /var/log/openvpn/openvpn-@vpn_type@-status.log
+log-append /var/log/openvpn/openvpn-@vpn_type@.log
server @vpn_net4@ 255.255.255.0
-server-ipv6 @host_ipv6@:8000::/65
+server-ipv6 @host_ipv6@:@ipv6_subnet@::/66
push "route-ipv6 2000::/3"
-push "route-ipv6 host_ipv6::/64"
+push "route-ipv6 @host_ipv6@::/64"
push "route 192.168.0.0 255.255.255.0"
@vpn_route_all@ push "block-outside-dns"