Browse Source

server scripts written on bash was moved to different folder

feature/refractoring
Paul Rock 7 years ago committed by Chocobozzz
parent
commit
ad4b3e41fe
  1. 5
      .env.example
  2. 17
      configs/server.conf
  3. 0
      scripts/auth-bash/config.sh
  4. 0
      scripts/auth-bash/connect.sh
  5. 0
      scripts/auth-bash/disconnect.sh
  6. 0
      scripts/auth-bash/functions.sh
  7. 0
      scripts/auth-bash/login.sh

5
.env.example

@ -10,12 +10,13 @@ DB_PASS=openvpn_pass
# OpenVPN settings
VPN_CONF=/etc/openvpn
VPN_ADDR=localhost
VPN_LOCAL=192.168.1.2
VPN_REMOTE=172.10.12.15
VPN_PORT=1194
VPN_PROTO=tcp
VPN_GROUP=nogroup
VPN_INIF=tun0
VPN_OUTIF=eth0
VPN_SERVER="10.8.0.0 255.255.255.0"
VPN_NET=10.8.0.0/24
# OpenVPN key parameters

17
scripts/installation/server.conf → configs/server.conf

@ -2,9 +2,9 @@
# TCP or UDP, port 443, tunneling
mode server
proto tcp
port 443
dev tun
proto VPN_PROTO
port VPN_PORT
dev VPN_INIF
## KEY, CERTS AND NETWORK CONFIGURATION ##
# Identity
@ -23,7 +23,7 @@ cipher AES-256-CBC
# Network
# Subnetwork, the server will be the 10.8.0.1 and clients will take the other ips
server 10.8.0.0 255.255.255.0
server VPN_SERVER
# Redirect all IP network traffic originating on client machines to pass through the OpenVPN server
push "redirect-gateway def1"
@ -81,10 +81,11 @@ script-security 3
username-as-common-name
# Client certificate is not required
verify-client-cert none
# Use the connection script when a user wants to login
auth-user-pass-verify scripts/login.sh via-env
# Maximum of clients
max-clients 50
# Use the connection script when a user wants to login
auth-user-pass-verify SCRIPTS_LOGIN via-env
# Run this scripts when the client connects/disconnects
client-connect scripts/connect.sh
client-disconnect scripts/disconnect.sh
client-connect SCRIPTS_CONNECT
client-disconnect SCRIPTS_DISCONNECT

0
scripts/installation/scripts/config.sh → scripts/auth-bash/config.sh

0
scripts/installation/scripts/connect.sh → scripts/auth-bash/connect.sh

0
scripts/installation/scripts/disconnect.sh → scripts/auth-bash/disconnect.sh

0
scripts/installation/scripts/functions.sh → scripts/auth-bash/functions.sh

0
scripts/installation/scripts/login.sh → scripts/auth-bash/login.sh

Loading…
Cancel
Save