Nikos Mavrogiannopoulos
07e01d06b5
use strlcpy() instead of snprintf() where it make sense
...
That should reduce wasted cycles.
2014-12-14 19:24:14 +01:00
Nikos Mavrogiannopoulos
6bfd5db245
separate log messages between up and down script
2014-12-02 08:27:32 +01:00
Nikos Mavrogiannopoulos
d7ec6a168e
run the down script even if the client's IP address has been re-used
2014-12-01 22:56:31 +01:00
Nikos Mavrogiannopoulos
30bcf35576
Revert "license upgraded to GPLv3"
...
This reverts commit 213f9a63ee .
Conflicts:
configure.ac
2014-09-24 11:34:15 +02:00
Nikos Mavrogiannopoulos
817f757577
after fork restore the default signal mask
2014-08-22 15:23:16 +02:00
Nikos Mavrogiannopoulos
213f9a63ee
license upgraded to GPLv3
2014-05-23 11:50:56 +02:00
Nikos Mavrogiannopoulos
d6583945f9
Added the STATS_DURATION script environment variable.
...
This variable reports the duration of the session in seconds.
2014-05-04 11:20:32 +02:00
Nikos Mavrogiannopoulos
2a0cc77c2e
Export TUN device statistics from the worker process.
...
When a worker process terminates in authenticated state, then
export statistics from the tun device (currently bytes_in and
bytes_out). These statistics are sent to main process using an
informational message just prior to process exit. The statistics
are also exported to the disconnect script using the STATS_BYTES_IN
and STATS_BYTES_OUT environment variables.
2014-04-28 17:32:51 +02:00
Nikos Mavrogiannopoulos
7071c75c85
correctly print message for no-ip.
2014-04-13 09:25:36 +02:00
Nikos Mavrogiannopoulos
1185cb07ee
Execute disconnect script for user that their IP was hijacked by a cookie reconnection
...
This will prevent having the script be called to initiate connections
that are never disconnected. This patch also introduces IPV6_LOCAL and
IPV6_REMOTE script environment variables that allow passing both addresses
in case both IPv4 and IPv6 are assigned.
2014-04-12 08:43:10 +02:00
Nikos Mavrogiannopoulos
81c20b9237
export ID env variable
2014-01-13 19:04:56 +01:00
Nikos Mavrogiannopoulos
ea45e710d0
Better error checking and cleaned up support for scripts.
2014-01-11 20:37:46 +01:00
Nikos Mavrogiannopoulos
85f4db201c
updated license information and authors
2013-11-05 19:38:30 +01:00
Nikos Mavrogiannopoulos
c370e4d3d7
corrected typo
2013-10-31 12:32:38 +01:00
Nikos Mavrogiannopoulos
2480a2cf58
Increased the number of directives allowed in group and user configurations.
2013-10-29 09:39:06 +01:00
Nikos Mavrogiannopoulos
3d18c41b4d
corrected null pointer deferences
2013-07-05 15:01:09 +02:00
Nikos Mavrogiannopoulos
e5fd319026
emulate gettime
2013-05-20 11:01:29 +02:00
Nikos Mavrogiannopoulos
67e83f89d7
Use sigaction() to have a consistent behavior across systems for signals.
2013-05-02 11:46:02 +03:00
Nikos Mavrogiannopoulos
6c43eedf50
several updates to allow compilation on FreeBSD
2013-04-12 17:00:52 +02:00
Nikos Mavrogiannopoulos
b552f27ddb
Do not let scripts block the server operation.
2013-03-13 19:18:52 +01:00
Nikos Mavrogiannopoulos
64a91f2b44
Simplify script calling by using the environment
2013-02-12 18:57:05 +01:00
Nikos Mavrogiannopoulos
217a5e48e2
set time to entry only when writing the WTMP file
2013-02-12 09:35:01 +01:00
Nikos Mavrogiannopoulos
db9f441e6e
Write wtmp file if possible.
2013-02-10 13:35:50 +01:00
Nikos Mavrogiannopoulos
519f0a13ef
Several changes to compile on old linux kernels, and in constrained libgnutls libraries
2013-02-09 12:15:55 +01:00
Nikos Mavrogiannopoulos
dd31208d4a
removed unneeded warning
2013-02-07 16:19:20 +01:00
Nikos Mavrogiannopoulos
2124d34e7f
corrected issue in utmp
2013-02-07 00:10:15 +01:00
Nikos Mavrogiannopoulos
e380053caa
Added explicit logging to UTMP file.
2013-02-06 20:18:53 +01:00