Nikos Mavrogiannopoulos
628877881d
Added configuration options for PIN files.
2013-02-18 23:47:20 +01:00
Nikos Mavrogiannopoulos
6b70200777
When the cookie DB is full enforce maintainance.
2013-02-14 08:04:48 +01:00
Nikos Mavrogiannopoulos
c60be929e0
simplified main loop
2013-02-13 18:04:33 +01:00
Nikos Mavrogiannopoulos
2f1cdb5800
quit if no TCP port is available.
2013-02-12 18:57:05 +01:00
Nikos Mavrogiannopoulos
7270341e62
write the correct PID in pid file
2013-02-12 18:57:05 +01:00
Nikos Mavrogiannopoulos
121b2491aa
HUP signal reloads configuration
2013-02-12 18:57:05 +01:00
Nikos Mavrogiannopoulos
356da3fbe4
connect occurs before sending the fd to worker.
2013-02-12 18:57:05 +01:00
Nikos Mavrogiannopoulos
9bf5d7100f
corrected definition
2013-02-11 20:41:33 +01:00
Nikos Mavrogiannopoulos
4060c80469
fork moved to gdbm backend expiration
2013-02-10 13:50:56 +01:00
Nikos Mavrogiannopoulos
f8713edc3f
better set socket options
2013-02-10 13:40:37 +01:00
Nikos Mavrogiannopoulos
3784aa6ddc
increased cookie hash table size and better cleanup resources on errors
2013-02-10 10:04:42 +01:00
Nikos Mavrogiannopoulos
985da9e264
erase cookie data before forking to unprivileged process.
2013-02-09 21:28:30 +01:00
Nikos Mavrogiannopoulos
478c6ca2ce
when expiring stuff, do it on the main process unless we use gdbm.
2013-02-09 21:15:24 +01:00
Nikos Mavrogiannopoulos
e94ad75905
more explicit debug messages.
2013-02-09 13:09:18 +01:00
Nikos Mavrogiannopoulos
43fed529bb
simplified logging in debug mode
2013-02-09 12:40:49 +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
0fee2289be
used a more sane setproctitle
2013-02-08 22:48:45 +01:00
Nikos Mavrogiannopoulos
6aae1d60d5
set process title
2013-02-08 22:37:41 +01:00
Nikos Mavrogiannopoulos
5f4b8711ef
Added configurable DPD
2013-02-08 21:51:58 +01:00
Nikos Mavrogiannopoulos
6ac7986342
explicitly close the logging subsystem
2013-02-08 19:30:14 +01:00
Nikos Mavrogiannopoulos
089bbed715
added a more graceful termination of workers.
2013-02-08 19:19:11 +01:00
Nikos Mavrogiannopoulos
4434fd70fe
several updates in cookies, and tun handling.
2013-02-08 18:22:18 +01:00
Nikos Mavrogiannopoulos
bacf821953
cleaned up TLS code which was moved to tlslib
2013-02-08 18:20:17 +01:00
Nikos Mavrogiannopoulos
14460456e7
gdbm was re-added and made optional.
2013-02-07 20:43:11 +01:00
Nikos Mavrogiannopoulos
2478c519b2
removed warning
2013-02-07 18:08:11 +01:00
Nikos Mavrogiannopoulos
1cb7ab38e9
Use a single UDP port in the server.
...
Several modifications to use a single UDP port in the server. This
is currently done using a hack, i.e., pass the UDP socket to worker,
close it on the main server and then re-open it (using REUSEADDR).
Also several updates in TUN handling to allow more than one clients connecting.
2013-02-07 17:49:51 +01:00
Nikos Mavrogiannopoulos
4370f88001
dropped dependency on gdbm. Cookies are stored in a hash.
2013-02-07 00:57:17 +01:00
Nikos Mavrogiannopoulos
e380053caa
Added explicit logging to UTMP file.
2013-02-06 20:18:53 +01:00
Nikos Mavrogiannopoulos
10d9b144be
Use CCAN hashes and lists.
2013-02-06 09:20:08 +01:00
Nikos Mavrogiannopoulos
1e0bcc269d
reorganized headers
2013-02-05 22:11:38 +01:00
Nikos Mavrogiannopoulos
03edf5b5bc
changes to enable VPN functionality.
2013-02-05 21:03:40 +01:00
Nikos Mavrogiannopoulos
75a394bec6
be less verbose about children dying
2013-02-05 20:17:21 +01:00
Nikos Mavrogiannopoulos
2e43570fde
deinitialize the TLS cache prior to fork
2013-02-05 09:03:58 +01:00
Nikos Mavrogiannopoulos
013cc82993
simplified call to expire cookies
2013-02-04 22:17:33 +01:00
Nikos Mavrogiannopoulos
490d0814ee
Check for root permissions after parsing command line
2013-02-04 21:54:33 +01:00
Nikos Mavrogiannopoulos
e08baf8624
use close-on-exec flag on fds
2013-02-04 21:50:50 +01:00
Nikos Mavrogiannopoulos
f5507a7161
clear all fds and mem prior to exec
2013-02-04 20:56:35 +01:00
Nikos Mavrogiannopoulos
61ae5a9c06
Added connect and disconnect scripts
2013-02-04 20:43:28 +01:00
Nikos Mavrogiannopoulos
cf179000a0
print the pid of dying processes
2013-02-04 19:53:52 +01:00
Nikos Mavrogiannopoulos
ceca403691
Added automatic TLS session expiration.
2013-02-04 19:16:04 +01:00
Nikos Mavrogiannopoulos
1fb76ce890
Added session resumption to TLS server.
2013-02-03 21:23:29 +01:00
Nikos Mavrogiannopoulos
92b1d573eb
set a maximum number of clients
2013-01-31 22:52:39 +01:00
Nikos Mavrogiannopoulos
6608f7ad7f
Fixed UDP side.
2013-01-31 20:18:29 +01:00
Nikos Mavrogiannopoulos
103f32c311
Allow a graceful shutdown.
2013-01-30 22:31:13 +01:00
Nikos Mavrogiannopoulos
014d54e235
chroot worker process
2013-01-30 21:58:34 +01:00
Nikos Mavrogiannopoulos
0a8b951022
several updates and fixes in auth
2013-01-30 21:20:16 +01:00
Nikos Mavrogiannopoulos
25b0617081
better file structure
2013-01-30 19:00:29 +01:00
Nikos Mavrogiannopoulos
ac0f207579
silence background operation
2013-01-30 17:57:42 +01:00
Nikos Mavrogiannopoulos
e34d54318d
notify that root access is required
2013-01-30 17:55:16 +01:00
Nikos Mavrogiannopoulos
c465a27482
daemonize
2013-01-30 17:53:59 +01:00