Hi Bonno,
Bonno Bloksma wrote:
Hi,
For a few users I would like to limit what they can do when they
connect. I was thinking of a few additional firewall rules on the
server side.
So I want to fire of a bash script when they connect and I would like
to configure that via the ccd so I can also easily disable the account
when it is not needed for a while.
1) Where is the documentation for the config file in the ccd?
in the man page: it's treated like extra an extra openvpn config file
*for the server* ; normally you'd use 'push', 'push-reset', 'iroute' and
'ifconfig-push' in a CCD file
2) Where can I find which parameters are passed to the script?
Server is Debian Squeeze at the moment with OpenVPN Version:
2.1.3-2+squeeze2 I will upgrade that soon to Debian Wheezy with
Version: 2.2.1-8+deb7u2
the script would be a 'client-connect' script which is processed
*before* a client-config-dir file is read. The script is passed env vars
, as mentioned in the man page. You could also read my book for an
example ;)
HTH,
JJK
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users