From 2ba27c7d02f683005b43b5c773d48c419836df60 Mon Sep 17 00:00:00 2001 From: Paul Rock Date: Tue, 30 Jan 2018 16:24:17 +0300 Subject: [PATCH] vpn config generator added --- public/ovpn.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 public/ovpn.php diff --git a/public/ovpn.php b/public/ovpn.php new file mode 100644 index 0000000..6589379 --- /dev/null +++ b/public/ovpn.php @@ -0,0 +1,40 @@ +load(); + +$vpn_dev = getenv('VPN_INIF'); +$vpn_proto = getenv('VPN_PROTO'); +$vpn_remote = getenv('VPN_ADDR'). ' ' . getenv('VPN_PORT'); + +header('Content-Type:text/plain'); +?> +client +dev +proto -client +remote +resolv-retry infinite +cipher AES-256-CBC +redirect-gateway + +# Keys +ca [inline] + +tls-auth [inline] 1 + + +key-direction 1 +remote-cert-tls server +auth-user-pass +auth-nocache + +# Security +nobind +persist-key +persist-tun +comp-lzo +verb 3 + +# Proxy ? +# http-proxy cache.univ.fr 3128