User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

perl:vam [2020-02-15 00:57] (current)
Line 1: Line 1:
 +
 +=====OpenVPN account manager=====
 +
 +Or VAM for short.
 +
 +//I made it application based on [[perl:​sqm]],//​ \\
 +//which I made based on [[maacom:​start]],//​ \\
 +//in the House That Jack Built// =)
 +
 +Time measure: 2.5 hours of first re-programming from copy of [[perl:​sqm]]
 +
 +The application include vam-helper, autentification helpler for OpenVPN. ​
 +
 +Status: **work** into real enterprise, with 80+accounts.
 +
 +====Installation====
 +
 +Order of installation and start is the same as [[maacom:​start|Maacom]].
 +The application ready for use.
 +
 +Source now here 
 +  * [[https://​github.com/​sadsoldier/​vam]]
 +  * {{ :​dist:​vam-0.01.tar.xz }}
 +
 +The release a **beta** but work good (may be =) ).
 +
 +Debian jessie package
 +  * {{ :​dist:​vam_0.01.orig.tar.xz |}}
 +  * {{ :​dist:​vam_0.01-1_all.deb |}}
 +  * {{ :​dist:​vam_0.01-1.debian.tar.xz |}}
 +
 +
 +{{:​perl:​screenshot-2017-12-18-08-38-32.png|}}
 +
 +====Sqm config example====
 +
 +<code ini vam.conf>​
 +#
 +# $Id$
 +#
 +loglevel = debug
 +dbname = /​var/​db/​vam/​vam.db
 +user = www
 +group = www
 +
 +# -- for postgresql --
 +#dbname = vam
 +#dbhost = 127.0.0.1
 +#dblogin = vam
 +#dbpassword = password
 +#dbengine = postgres
 +
 +#EOF
 +</​code>​
 +
 +===And install procedure for the example===
 +
 +<​code>​
 +# ./configure --prefix=/​usr/​local --with-user=www --with-group=www
 +# make install
 +# mkdir -p /​var/​db/​vam/​
 +# sqlite3 /​var/​db/​vam/​vam.db <​usr/​local/​share/​vam/​schema.sql
 +# chown -Rv www:www /var/*/sqm
 +# service sqm start
 +</​code>​
 +
 +====Server configuration example====
 +
 +<code ini serv.conf>​
 +#
 +# $Id$
 +#
 +proto tcp
 +port 2011
 +
 +server 10.16.254.0 255.255.255.0
 +push "route 172.16.11.0 255.255.255.0"​
 +
 +client-config-dir /​etc/​openvpn/​ccd
 +
 +ifconfig-pool-persist /​var/​log/​openvpn/​s2011.pool
 +status /​var/​log/​openvpn/​s2011.stat 1
 +log /​var/​log/​openvpn/​s2011.log
 +verb 3
 +
 +ca keys/ca.crt
 +cert keys/​serv.crt
 +key keys/​serv.key
 +dh keys/​dh2048.pem
 +
 +auth-user-pass-verify /​usr/​sbin/​vam-helper via-env
 +client-cert-not-required
 +username-as-common-name
 +script-security 3
 +
 +mode server
 +tcp-nodelay
 +dev tun
 +topology subnet
 +
 +keepalive 10 120
 +max-clients 200
 +txqueuelen 1000
 +user nobody
 +group nogroup
 +
 +persist-key
 +persist-tun
 +#EOF
 +</​code> ​
 +
 +====Client configuration example====
 +
 +<code conf client.conf>​
 +#
 +# $Id$
 +#
 +client
 +dev tun
 +proto tcp
 +remote vpnc.example.com 2011
 +ca ca.crt
 +auth-user-pass auth.txt
 +pull
 +verb 3
 +#EOF
 +</​code>​
 +
 +----
 +[<>]