]> git.ipfire.org Git - thirdparty/openvpn.git/log
thirdparty/openvpn.git
16 years agoVersion 2.1_rc17 v2.1_rc17
james [Mon, 1 Jun 2009 19:47:49 +0000 (19:47 +0000)] 
Version 2.1_rc17

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4500 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoUpdate copyright to 2009.
james [Sat, 30 May 2009 21:38:49 +0000 (21:38 +0000)] 
Update copyright to 2009.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4477 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoFixed bug where the remote_X environmental variables were not being
james [Sat, 30 May 2009 20:20:36 +0000 (20:20 +0000)] 
Fixed bug where the remote_X environmental variables were not being
set correctly when the 'local' option is specifed.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4476 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoFixed issue of symbol conflicts interfering with Windows CryptoAPI
james [Sat, 30 May 2009 19:53:49 +0000 (19:53 +0000)] 
Fixed issue of symbol conflicts interfering with Windows CryptoAPI
functionality (Alon Bar-Lev).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4475 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded new 'autolocal' redirect-gateway flag. When enabled, the OpenVPN
james [Sun, 24 May 2009 09:13:58 +0000 (09:13 +0000)] 
Added new 'autolocal' redirect-gateway flag.  When enabled, the OpenVPN
client will examine the routing table and determine whether (a) the
OpenVPN server is reachable via a locally connected interface, or (b)
traffic to the server must be forwarded through the default router.
Only add a special bypass route for the OpenVPN server if (b) is true.
If (a) is true, behave as if the 'local' flag is specified, and do not
add a bypass route.

The new 'autolocal' flag depends on the non-portable test_local_addr()
function in route.c, which is currently only implemented for Windows.
The 'autolocal' flag will act as a no-op on platforms that have not
yet defined a test_local_addr() function.

Increased TLS_CHANNEL_BUF_SIZE to 2048 from 1024 (this will allow for
more option content to be pushed from server to client).

Raised D_MULTI_DROPPED debug level to 4 from 3.

Version 2.1_rc16b.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4446 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded "redirect-private" option which allows private subnets
james [Sat, 23 May 2009 10:30:10 +0000 (10:30 +0000)] 
Added "redirect-private" option which allows private subnets
to be pushed to the client in such a way that they don't accidently
obscure critical local addresses such as the DHCP server address and
DNS server addresses.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4436 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoFixed race condition in management interface recv code on
james [Thu, 21 May 2009 10:15:26 +0000 (10:15 +0000)] 
Fixed race condition in management interface recv code on
Windows, where sending a set of several commands to the
management interface in quick succession might cause the
latter commands in the set to be ignored.

Increased management interface input command buffer size
from 256 to 1024 bytes.

Minor tweaks to Windows build system.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4414 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoReduce the debug level (--verb) at which received management interface
james [Thu, 21 May 2009 09:53:25 +0000 (09:53 +0000)] 
Reduce the debug level (--verb) at which received management interface
commands are echoed from 7 to 3.  Passwords will be filtered.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4413 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoVersion 2.1_rc16 v2.1_rc16
james [Mon, 18 May 2009 00:47:45 +0000 (00:47 +0000)] 
Version 2.1_rc16

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4363 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoUpdated Windows build scripts to package openssl-0.9.8k,
james [Wed, 13 May 2009 13:36:23 +0000 (13:36 +0000)] 
Updated Windows build scripts to package openssl-0.9.8k,
and to use the Server 2008 WDK (6001.18002).

In cryptoapi.c, renamed CryptAcquireCertificatePrivateKey to
OpenVPNCryptAcquireCertificatePrivateKey to work around
a symbol conflict in MinGW-5.1.4.exe.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4318 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded errors-to-stderr option. When enabled, fatal errors
james [Mon, 13 Apr 2009 03:30:30 +0000 (03:30 +0000)] 
Added errors-to-stderr option.  When enabled, fatal errors
that result in the termination of the daemon will be written
to stderr.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4131 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAllow "management-client" directive to be used
james [Fri, 10 Apr 2009 21:33:14 +0000 (21:33 +0000)] 
Allow "management-client" directive to be used
with unix domain sockets.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4128 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded the ability to read the configuration file
james [Thu, 9 Apr 2009 21:11:14 +0000 (21:11 +0000)] 
Added the ability to read the configuration file
from stdin, when "stdin" is given as the config
file name.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4127 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoinstall-win32/buildinstaller will now always sign executable
james [Fri, 13 Feb 2009 03:36:12 +0000 (03:36 +0000)] 
install-win32/buildinstaller will now always sign executable
if SIGNTOOL is defined, even if EXTRACT_FILES is enabled.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3976 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoFixed issue involving an #ifdef in a macro reference that breaks early gcc
james [Tue, 27 Jan 2009 21:18:51 +0000 (21:18 +0000)] 
Fixed issue involving an #ifdef in a macro reference that breaks early gcc
compilers.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3903 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoUpdated common.h types for _WIN64.
james [Tue, 27 Jan 2009 20:10:49 +0000 (20:10 +0000)] 
Updated common.h types for _WIN64.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3902 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoUpdated configure.ac to work on MinGW.
james [Tue, 27 Jan 2009 20:05:48 +0000 (20:05 +0000)] 
Updated configure.ac to work on MinGW.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3901 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoFixed some compile-time warnings.
james [Tue, 27 Jan 2009 19:32:46 +0000 (19:32 +0000)] 
Fixed some compile-time warnings.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3900 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoFixed some issues with C++ style comments that leaked into the code.
james [Tue, 27 Jan 2009 19:22:42 +0000 (19:22 +0000)] 
Fixed some issues with C++ style comments that leaked into the code.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3899 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoVersion 2.1_rc15e
james [Wed, 21 Jan 2009 16:59:41 +0000 (16:59 +0000)] 
Version 2.1_rc15e

Windows installer changes:

* ifdefed out the check Windows version code which is causing
  problems on Windows 7

* don't define SF_SELECTED if it is already defined

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3855 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoIn Windows installer generator, don't sign the installer .exe
james [Thu, 1 Jan 2009 13:50:59 +0000 (13:50 +0000)] 
In Windows installer generator, don't sign the installer .exe
if EXTRACT_FILES is defined in settings.in.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3791 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded daemon_start_time and daemon_pid environmental variables.
james [Fri, 26 Dec 2008 16:29:28 +0000 (16:29 +0000)] 
Added daemon_start_time and daemon_pid environmental variables.

In management interface, added new ">CLIENT:ESTABLISHED" notification.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3763 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoFixed issue where SIGUSR1 restarts would fail if private
james [Thu, 25 Dec 2008 02:33:34 +0000 (02:33 +0000)] 
Fixed issue where SIGUSR1 restarts would fail if private
key was specified as an inline file.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3743 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoVersion 2.1_rc15b
james [Tue, 23 Dec 2008 08:16:12 +0000 (08:16 +0000)] 
Version 2.1_rc15b

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3729 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded n_clients environmental variable to information passed
james [Thu, 18 Dec 2008 09:38:11 +0000 (09:38 +0000)] 
Added n_clients environmental variable to information passed
to management interface client when management-client-auth
is enabled.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3718 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded "nclients" command to management interface to
james [Thu, 18 Dec 2008 07:57:19 +0000 (07:57 +0000)] 
Added "nclients" command to management interface to
display the current number of authenticated clients
connected to the server.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3717 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded MultiFileExtract capability to Windows Installer.
james [Mon, 1 Dec 2008 22:32:06 +0000 (22:32 +0000)] 
Added MultiFileExtract capability to Windows Installer.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3620 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded ExtractAuxFile capability to Windows Installer.
james [Sun, 30 Nov 2008 09:51:58 +0000 (09:51 +0000)] 
Added ExtractAuxFile capability to Windows Installer.

Changed Windows installer to use LZMA instead of BZIP2 compression.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3616 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded new management interface command "pid" to show the
james [Thu, 20 Nov 2008 22:37:43 +0000 (22:37 +0000)] 
Added new management interface command "pid" to show the
process ID of the current OpenVPN process (Angelo Laub).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3552 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded optional "nogw" (no gateway) flag to --server-bridge
james [Thu, 20 Nov 2008 21:02:10 +0000 (21:02 +0000)] 
Added optional "nogw" (no gateway) flag to --server-bridge
to inhibit the pushing of the route-gateway parameter to
clients.

Miscellaneous man page edits, fixed some formatting issues.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3550 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoVersion 2.1_rc15 v2.1_rc15
james [Wed, 19 Nov 2008 18:17:39 +0000 (18:17 +0000)] 
Version 2.1_rc15

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3525 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoFixed issue introduced in 2.1_rc14 that may cause a
james [Wed, 19 Nov 2008 18:07:52 +0000 (18:07 +0000)] 
Fixed issue introduced in 2.1_rc14 that may cause a
segfault when a --plugin module is used.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3524 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded --tcp-nodelay option: Macro that sets TCP_NODELAY socket
james [Tue, 18 Nov 2008 05:15:22 +0000 (05:15 +0000)] 
Added --tcp-nodelay option: Macro that sets TCP_NODELAY socket
flag on the server as well as pushes it to connecting clients.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3513 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoCleaned up man page synopsis.
james [Tue, 18 Nov 2008 03:29:44 +0000 (03:29 +0000)] 
Cleaned up man page synopsis.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3507 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoMinor options check fix: --no-name-remapping is a
james [Tue, 18 Nov 2008 03:24:32 +0000 (03:24 +0000)] 
Minor options check fix: --no-name-remapping is a
server-only option and should therefore generate an
error when used on the client.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3506 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded server-side --opt-verify option: clients that connect
james [Tue, 18 Nov 2008 03:22:52 +0000 (03:22 +0000)] 
Added server-side --opt-verify option: clients that connect
with options that are incompatible with those of the server
will be disconnected.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3505 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded --prng option to control PRNG (pseudo-random
james [Tue, 18 Nov 2008 01:25:05 +0000 (01:25 +0000)] 
Added --prng option to control PRNG (pseudo-random
number generator) parameters.  In previous OpenVPN
versions, the PRNG was hardcoded to use the SHA1
hash.  Now any OpenSSL hash may be used.  This is
part of an effort to remove hardcoded references to
a specific cipher or cryptographic hash algorithm.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3503 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoVersion 2.1_rc14 v2.1_rc14
james [Mon, 17 Nov 2008 04:41:05 +0000 (04:41 +0000)] 
Version 2.1_rc14

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3496 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years ago* Added additional method parameter to --script-security to preserve
james [Mon, 17 Nov 2008 04:28:07 +0000 (04:28 +0000)] 
* Added additional method parameter to --script-security to preserve
  backward compatibility with system() call semantics used in OpenVPN
  2.1_rc8 and earlier.  To preserve backward compatibility use:

    script-security 3 system

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3495 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoInterim release.
james [Sun, 16 Nov 2008 19:51:24 +0000 (19:51 +0000)] 
Interim release.
Version 2.1_rc13b

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3494 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoMinor fix to previous commit (r3476).
james [Wed, 5 Nov 2008 17:28:09 +0000 (17:28 +0000)] 
Minor fix to previous commit (r3476).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3477 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded config file option "setenv FORWARD_COMPATIBLE 1" to relax
james [Tue, 4 Nov 2008 21:42:56 +0000 (21:42 +0000)] 
Added config file option "setenv FORWARD_COMPATIBLE 1" to relax
config file syntax checking to allow directives for future OpenVPN
versions to be ignored.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3476 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoFixed revoke-full to deal with issue arising from addition
james [Mon, 3 Nov 2008 13:11:23 +0000 (13:11 +0000)] 
Fixed revoke-full to deal with issue arising from addition
of KEY_NAME environmental variable parameter to openssl.cnf

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3472 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoFixed some ifconfig-pool issues that precluded
james [Mon, 3 Nov 2008 13:07:33 +0000 (13:07 +0000)] 
Fixed some ifconfig-pool issues that precluded
it from being combined with --server directive.

Now, for example, we can configure thusly:

  server 10.8.0.0 255.255.255.0 nopool
  ifconfig-pool 10.8.0.2 10.8.0.99 255.255.255.0

to have ifconfig-pool manage only a subset
of the VPN subnet.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3471 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoUpdated docs to reflect the addition of
james [Fri, 31 Oct 2008 07:13:54 +0000 (07:13 +0000)] 
Updated docs to reflect the addition of
--status-version 3.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3468 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded --no-name-remapping option to allow Common Name, X509 Subject,
james [Fri, 31 Oct 2008 07:04:51 +0000 (07:04 +0000)] 
Added --no-name-remapping option to allow Common Name, X509 Subject,
and username strings to include any printable character including
space, but excluding control characters such as tab, newline, and
carriage-return.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3467 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded --status-version 3 which is the same as version 2
james [Fri, 31 Oct 2008 06:14:55 +0000 (06:14 +0000)] 
Added --status-version 3 which is the same as version 2
except tabs are used as delimiters instead of commas.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3466 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoModified pkitool to allow flexibility in separating
james [Tue, 28 Oct 2008 20:29:40 +0000 (20:29 +0000)] 
Modified pkitool to allow flexibility in separating
the Common Name convention from the cert/key filename
convention.

For example:

  KEY_CN="James's Laptop" KEY_NAME="james" ./pkitool james

will crete a client certificate/key pair of james.crt/james.key
having a Common Name of "James's Laptop" and a Name of "james".

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3463 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded man page entry for new environmental variable set
james [Tue, 28 Oct 2008 20:24:46 +0000 (20:24 +0000)] 
Added man page entry for new environmental variable set
X509_{n}_{subject_field}.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3462 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded server-side --auth-user-pass-optional directive, to allow
james [Tue, 28 Oct 2008 20:01:05 +0000 (20:01 +0000)] 
Added server-side --auth-user-pass-optional directive, to allow
connections by clients that do not specify a username/password, when a
user-defined authentication script/module is in place (via
--auth-user-pass-verify, --management-client-auth, or a plugin module).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3461 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoChange to pkitool/openssl.cnf so that calling scripts can
james [Tue, 28 Oct 2008 05:42:02 +0000 (05:42 +0000)] 
Change to pkitool/openssl.cnf so that calling scripts can
set the KEY_NAME environmental variable to set the "name"
X509 subject field in generated certificates.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3460 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoSave X509 Subject fields to environment, using the naming convention:
james [Tue, 28 Oct 2008 05:38:55 +0000 (05:38 +0000)] 
Save X509 Subject fields to environment, using the naming convention:
  X509_{cert_depth}_{name}={value}

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3459 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoFixed informational message in ssl.c to properly indicate
james [Mon, 27 Oct 2008 05:58:44 +0000 (05:58 +0000)] 
Fixed informational message in ssl.c to properly indicate
deferred authentication.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3457 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoExtended Management Interface "bytecount" command
james [Fri, 24 Oct 2008 09:21:40 +0000 (09:21 +0000)] 
Extended Management Interface "bytecount" command
to work when OpenVPN is running as a server.

Documented Management Interface "bytecount" command in
management/management-notes.txt.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3452 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded optional files SAMPCONF_CONF2 (second sample configuration
james [Fri, 24 Oct 2008 06:04:34 +0000 (06:04 +0000)] 
Added optional files SAMPCONF_CONF2 (second sample configuration
file) and SAMPCONF_DH (Diffie-Helman parameters) to Windows
build system, and may be defined in settings.in.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3450 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoModified Windows domake-win build system to write all openvpn.nsi
james [Fri, 17 Oct 2008 08:15:22 +0000 (08:15 +0000)] 
Modified Windows domake-win build system to write all openvpn.nsi
input files to gen, so that gen can be disconnected from
the rest of the source tree and makensis openvpn.nsi will
still function correctly.

Added additional SAMPCONF_(CA|CRT|KEY) macros to settings.in
(commented out by default).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3439 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded additional warning messages about --script-security 2
james [Wed, 15 Oct 2008 08:20:21 +0000 (08:20 +0000)] 
Added additional warning messages about --script-security 2
or higher being required to execute user-defined scripts or
executables.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3436 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded AC_GNU_SOURCE to configure.ac to enable struct ucred,
james [Tue, 14 Oct 2008 05:21:51 +0000 (05:21 +0000)] 
Added AC_GNU_SOURCE to configure.ac to enable struct ucred,
with the goal of fixing a build issue on Fedora 9 that was
introduced in 2.1_rc13.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3434 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoVersion 2.1_rc13 v2.1_rc13
james [Wed, 8 Oct 2008 04:53:19 +0000 (04:53 +0000)] 
Version 2.1_rc13

Minor fixes to Windows build scripts.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3417 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoCopyright notice changed to reflect change in name of
james [Mon, 6 Oct 2008 07:33:45 +0000 (07:33 +0000)] 
Copyright notice changed to reflect change in name of
Telethra to OpenVPN Technologies.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3409 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoManagement interface can now listen on a unix
james [Tue, 30 Sep 2008 06:11:38 +0000 (06:11 +0000)] 
Management interface can now listen on a unix
domain socket, for example:

  management /tmp/openvpn unix

Also added management-client-user and management-client-group
directives to control which processes are allowed to connect
to the socket.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3396 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoVersion 2.1_rc12 v2.1_rc12
james [Tue, 23 Sep 2008 14:29:27 +0000 (14:29 +0000)] 
Version 2.1_rc12

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3349 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoFixed --lladdr bug introduced in 2.1-rc9 where input validation code
james [Fri, 19 Sep 2008 20:12:43 +0000 (20:12 +0000)] 
Fixed --lladdr bug introduced in 2.1-rc9 where input validation code
was incorrectly expecting the lladdr parameter to be an IP address
when it is actually a MAC address (HoverHell).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3339 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoPatched Makefile.am so that the new t_cltsrv-down.sh script becomes
james [Mon, 15 Sep 2008 23:39:53 +0000 (23:39 +0000)] 
Patched Makefile.am so that the new t_cltsrv-down.sh script becomes
part of the tarball (Matthias Andree).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3332 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoVersion 2.1_rc11 v2.1_rc11
james [Mon, 15 Sep 2008 01:46:29 +0000 (01:46 +0000)] 
Version 2.1_rc11

Fixed a bug that can cause SSL/TLS negotiations in UDP mode
to fail if UDP packets are dropped.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3330 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoVersion 2.1_rc10 v2.1_rc10
james [Wed, 10 Sep 2008 07:16:14 +0000 (07:16 +0000)] 
Version 2.1_rc10

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3323 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoVersion 2.1_rc9b
james [Mon, 8 Sep 2008 04:00:11 +0000 (04:00 +0000)] 
Version 2.1_rc9b

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3318 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoFixed bug in intra-session TLS key rollover that was introduced with
james [Mon, 8 Sep 2008 03:52:52 +0000 (03:52 +0000)] 
Fixed bug in intra-session TLS key rollover that was introduced with
deferred authentication features in 2.1_rc8.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3316 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoModified ip_or_dns_addr_safe, which validates pulled DNS names,
james [Sat, 6 Sep 2008 10:43:31 +0000 (10:43 +0000)] 
Modified ip_or_dns_addr_safe, which validates pulled DNS names,
to more closely conform to RFC 3696:

* DNS name length must not exceed 255 characters

* DNS name characters must be limited to alphanumeric,
  dash ('-'), and dot ('.')

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3312 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years ago2.1_rc8 and earlier did implicit shell expansion on script
james [Sat, 6 Sep 2008 09:42:17 +0000 (09:42 +0000)] 
2.1_rc8 and earlier did implicit shell expansion on script
arguments since all scripts were called by system().
The security hardening changes made to 2.1_rc9 no longer
use system(), but rather use the safer execve or CreateProcess
system calls.  The security hardening also introduced a
backward incompatibility with 2.1_rc8 and earlier in that
script parameters were no longer shell-expanded, so
for example:

  client-connect "docc CLIENT-CONNECT"

would fail to work because execve would try to execute
a script called "docc CLIENT-CONNECT" instead of "docc"
with "CLIENT-CONNECT" as the first argument.

This patch fixes the issue, bringing the script argument
semantics back to pre 2.1_rc9 behavior in order to preserve
backward compatibility while still using execve or CreateProcess
to execute the script/executable.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3311 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded --allow-pull-fqdn option which allows client to pull DNS names
james [Thu, 4 Sep 2008 20:35:09 +0000 (20:35 +0000)] 
Added --allow-pull-fqdn option which allows client to pull DNS names
from server (rather than only IP address) for --ifconfig, --route, and
--route-gateway.  OpenVPN versions 2.1_rc7 and earlier allowed DNS names
for these options to be pulled and translated to IP addresses by default.
Now --allow-pull-fqdn will be explicitly required on the client to enable
DNS-name-to-IP-address translation of pulled options.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3307 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoFixed minor compile issue in ntlm.c (mid-block declaration).
james [Mon, 11 Aug 2008 13:12:34 +0000 (13:12 +0000)] 
Fixed minor compile issue in ntlm.c (mid-block declaration).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3222 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoLZO compression buffer overflow errors will now invalidate
james [Mon, 11 Aug 2008 03:37:40 +0000 (03:37 +0000)] 
LZO compression buffer overflow errors will now invalidate
the packet rather than trigger a fatal assertion.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3221 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoWorkaround bug in OpenSSL 0.9.6b ASN1_STRING_to_UTF8, which
james [Sun, 10 Aug 2008 22:37:18 +0000 (22:37 +0000)] 
Workaround bug in OpenSSL 0.9.6b ASN1_STRING_to_UTF8, which
the new implementation of extract_x509_field_ssl depends on.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3220 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoFixed build issue with ./configure --disable-socks --disable-http.
james [Sun, 10 Aug 2008 19:29:00 +0000 (19:29 +0000)] 
Fixed build issue with ./configure --disable-socks --disable-http.

Fixed separate compile errors in options.c and ntlm.c that occur
on strict C compilers (such as old versions of gcc) that require
that C variable declarations occur at the start of a {} block,
not in the middle.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3219 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoTagged security fix in 2.1-rc9 as CVE-2008-3459.
james [Sun, 10 Aug 2008 19:05:02 +0000 (19:05 +0000)] 
Tagged security fix in 2.1-rc9 as CVE-2008-3459.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3218 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoUpdated openvpn/t_cltsrv.sh (used by "make check") to conform to new
james [Sun, 10 Aug 2008 18:49:28 +0000 (18:49 +0000)] 
Updated openvpn/t_cltsrv.sh (used by "make check") to conform to new
--script-security rules.  Also adds retrying if the addresses are in
use (Matthias Andree).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3217 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoReverted r3181, accomplish the same thing via a special case
james [Tue, 5 Aug 2008 20:34:43 +0000 (20:34 +0000)] 
Reverted r3181, accomplish the same thing via a special case
for Windows stdcall functions in configure.ac (Alon Bar-Lev).

Minor fix to cryptoapi.c to not compile itself unless USE_CRYPTO
and USE_SSL flags are enabled (Alon Bar-Lev).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3183 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoWorkaround for MinGW autoconf issue where HAVE_SETSOCKOPT,
james [Tue, 5 Aug 2008 07:52:06 +0000 (07:52 +0000)] 
Workaround for MinGW autoconf issue where HAVE_SETSOCKOPT,
HAVE_GETSOCKOPT, and HAVE_POLL are undefined even though
the underlying functions are present.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3181 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded additional warnings to flag common gotchas:
james [Tue, 5 Aug 2008 04:44:31 +0000 (04:44 +0000)] 
Added additional warnings to flag common gotchas:

* Warn when ethernet bridging that the IP address of the
  bridge adapter is probably not the same address that
  the LAN adapter was set to previously.

* When running as a server, warn if the LAN network address is
  the all-popular 192.168.[0|1].x, since this condition commonly
  leads to subnet conflicts down the road.

* Primarily on the client, check for subnet conflicts between
  the local LAN and the VPN subnet.

Added a 'netmask' parameter to get_default_gateway, to return
the netmask of the adapter containing the default gateway.
Only implemented on Windows so far.  Other platforms will
return 255.255.255.0.  Currently the netmask information is
only used to warn about subnet conflicts.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3179 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoFixed minor issue with --redirect-gateway bypass-dhcp or bypass-dns
james [Mon, 4 Aug 2008 19:01:11 +0000 (19:01 +0000)] 
Fixed minor issue with --redirect-gateway bypass-dhcp or bypass-dns
on Windows.  If the bypass IP address is 0.0.0.0 or 255.255.255.255,
ignore it.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3177 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded "--server-bridge" (without parameters) to enable
james [Sat, 2 Aug 2008 08:02:53 +0000 (08:02 +0000)] 
Added "--server-bridge" (without parameters) to enable
DHCP proxy mode:  Configure server mode for ethernet
bridging using a DHCP-proxy, where clients talk to the
OpenVPN server-side DHCP server to receive their IP address
allocation and DNS server addresses.

Added "--route-gateway dhcp", to enable the extraction
of the gateway address from a DHCP negotiation with the
OpenVPN server-side LAN.

Modified client.conf and server.conf to reflect new option
modes.

Incremented version to 2.1_rc9a.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3164 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoVersion 2.1_rc9 v2.1_rc9
james [Fri, 1 Aug 2008 06:50:39 +0000 (06:50 +0000)] 
Version 2.1_rc9

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3155 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoIn Windows build, package a statically linked openssl.exe to work around
james [Thu, 31 Jul 2008 22:03:38 +0000 (22:03 +0000)] 
In Windows build, package a statically linked openssl.exe to work around
observed instabilities in the dynamic build since the migration to
OpenSSL 0.9.8h.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3149 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoUpdated ChangeLog and version number.
james [Thu, 31 Jul 2008 17:44:52 +0000 (17:44 +0000)] 
Updated ChangeLog and version number.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3147 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded additional warnings for:
james [Sun, 27 Jul 2008 18:20:52 +0000 (18:20 +0000)] 
Added additional warnings for:

* --tls-remote -- some people misunderstand the semantics

* --script-security -- warn if script-security will allow user-defined
  scripts to be called, and also warn separately if passwords may be
  passed to scripts via the environment

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3129 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded additional defensive programming to buffer.[ch] functions.
james [Sun, 27 Jul 2008 05:31:09 +0000 (05:31 +0000)] 
Added additional defensive programming to buffer.[ch] functions.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3128 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded a warning message when passwords are cached in memory.
james [Sun, 27 Jul 2008 00:43:49 +0000 (00:43 +0000)] 
Added a warning message when passwords are cached in memory.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3127 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoPerform additional input validation on options pulled
james [Sat, 26 Jul 2008 23:08:29 +0000 (23:08 +0000)] 
Perform additional input validation on options pulled
by client from server.  Fixes --iproute vulnerability.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3126 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoFixed compiler warnings in Windows build (MinGW).
james [Sat, 26 Jul 2008 08:27:50 +0000 (08:27 +0000)] 
Fixed compiler warnings in Windows build (MinGW).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3125 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoCompletely revamped the system for calling external programs and scripts:
james [Sat, 26 Jul 2008 07:27:03 +0000 (07:27 +0000)] 
Completely revamped the system for calling external programs and scripts:

* All external programs and scripts are now called by execve() on unix and
  CreateProcess on Windows.

* The system() function is no longer used.

* Argument lists for external programs and scripts are now built by the new
  argv_printf function which natively outputs to string arrays (i.e.
  char *argv[] lists), never truncates its output, and eliminates the security
  issues inherent in formatting and parsing command lines, and dealing with
  argument quoting.

* The --script-security directive has been added to offer policy controls on
  OpenVPN's execution of external programs and scripts.

Also added a new plugin example (openvpn/plugin/examples/log.c) that logs
information to stdout for every plugin method called by OpenVPN.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3122 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded argv_x functions to buffer.[ch] to be used to safely build
james [Wed, 23 Jul 2008 19:51:27 +0000 (19:51 +0000)] 
Added argv_x functions to buffer.[ch] to be used to safely build
up argv strings for execve without the possibility of truncation
or misinterpretation of mid-argument spacing.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3107 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agobuf_printf will now return false on errors, such as truncation
james [Sat, 19 Jul 2008 03:39:59 +0000 (03:39 +0000)] 
buf_printf will now return false on errors, such as truncation
due to overflow.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3085 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoModified extract_x509_field_ssl to return a status value indicating
james [Sat, 19 Jul 2008 03:33:27 +0000 (03:33 +0000)] 
Modified extract_x509_field_ssl to return a status value indicating
success/error, and any truncation of output due to an insufficiently
large output buffer will be cause for error.

In verify_callback, read X509 Subject Name without truncation.

In verify_callback, rather than silently truncating Common Name at
64 bytes, throw an error if Common Name is larger than 64 bytes.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3084 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoReplace leading dash ('-') characters in an X509 name with underbars ('_')
james [Sat, 19 Jul 2008 00:29:31 +0000 (00:29 +0000)] 
Replace leading dash ('-') characters in an X509 name with underbars ('_')
before calling user-defined scripts, to preclude the chance of a leading
dash being interpreted as an option prefix.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3083 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded a warning when plugins are specified without
james [Fri, 18 Jul 2008 23:49:50 +0000 (23:49 +0000)] 
Added a warning when plugins are specified without
an absolute pathname.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3082 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoReverted some recent buffer.[ch] changes, including r3058 (except for
james [Fri, 18 Jul 2008 20:46:06 +0000 (20:46 +0000)] 
Reverted some recent buffer.[ch] changes, including r3058 (except for
likely() and unlikely() macro additions to syshead.h) and r3061.

I would like to give more thought to the bigger issue of fortifying
buffer.[ch] through the use of additional defensive programming techniques.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3081 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoFixed format string issue in read_inline_file,
james [Fri, 18 Jul 2008 07:25:47 +0000 (07:25 +0000)] 
Fixed format string issue in read_inline_file,
used in the config file parser.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3078 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agostatus_printf function will now set error flag on
james [Fri, 18 Jul 2008 07:15:27 +0000 (07:15 +0000)] 
status_printf function will now set error flag on
output truncation or failure of write() to write the
expected number of bytes.

Raised STATUS_PRINTF_MAXLEN to 512 (from 256).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3077 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agogen_path will no longer silently truncate the generated
james [Fri, 18 Jul 2008 00:55:59 +0000 (00:55 +0000)] 
gen_path will no longer silently truncate the generated
filename at 256 bytes.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3076 e7ae566f-a301-0410-adde-c780ea21d3b5