Commit e0189e20 authored by mehdi's avatar mehdi

tweaking conf

parent 91b891da
......@@ -2,6 +2,7 @@
echo "# Server TCP/${VPN_TCP_PORT:?}
mode server
tls-server
proto tcp
port ${VPN_TCP_PORT:?}
dev tun
......@@ -14,6 +15,7 @@ dh /app/data/keys/dh2048.pem
tls-auth /app/data/keys/ta.key 0
crl-verify /app/data/keys/crl.pem
cipher AES-256-CBC
auth SHA256
# Network
server 10.8.0.0 255.255.255.0
push \"redirect-gateway def1 bypass-dhcp\"
......
......@@ -33,11 +33,13 @@ const env = {
const clientConfFile = (keyname) => `# Client
client
tls-client
dev tun
proto tcp-client
remote ${process.env.APP_DOMAIN} ${process.env.VPN_TCP_PORT}
resolv-retry infinite
cipher AES-256-CBC
auth SHA256
script-security 2
persist-key
persist-tun
......@@ -54,7 +56,6 @@ tls-auth ta.key 1
nobind
persist-key
persist-tun
#comp-lzo
verb 3
`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment