* Jan Just Keijser <janj...@nikhef.nl>:

> This makes a very nice example for a future cookbook :)

I must admin that your cookbook is one of the few IT related book I
often use as reference :)

> You'd use OpenVPN 2.4+ on the server with a client-connect script like this:
> ====
> #!/bin/bash
> 
> env | grep IV_
> 
> if [ "${IV_LZ4:-0}" -eq 1 ]
> then
>     echo "Enabling LZ4 compression for client $common_name"
>     echo "compress lz4" > $1
>     echo "push \"compress lz4\"" >> $1
> else
>     echo "Enabling LZO compression for client $common_name"
>     echo "comp-lzo" >> $1
>     echo "push \"comp-lzo\"" >> $1
> fi

Awesome.
I'll try this.

-- 
Ralf Hildebrandt                   Charite Universitätsmedizin Berlin
ralf.hildebra...@charite.de        Campus Benjamin Franklin
https://www.charite.de             Hindenburgdamm 30, 12203 Berlin
Geschäftsbereich IT, Abt. Netzwerk fon: +49-30-450.570.155

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to