]> git.ipfire.org Git - thirdparty/openvpn.git/log
thirdparty/openvpn.git
14 years agoVersion 2.1.3t
James Yonan [Tue, 12 Apr 2011 05:15:15 +0000 (05:15 +0000)] 
Version 2.1.3t

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

14 years agoFor Mac OSX, when DARWIN_USE_IPCONFIG is defined, retry ipconfig
James Yonan [Tue, 12 Apr 2011 05:14:34 +0000 (05:14 +0000)] 
For Mac OSX, when DARWIN_USE_IPCONFIG is defined, retry ipconfig
command on failure once every second for up to 15 seconds.  This
is necessary to work around an issue observed on OSX 10.5 where
the ipconfig command sometimes fails if executed immediately after
the tun device open.

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

14 years agoFixed bug in port-share that could cause port share process to
James Yonan [Sun, 3 Apr 2011 21:48:15 +0000 (21:48 +0000)] 
Fixed bug in port-share that could cause port share process to
crash with output like this:

TCP connection established with 85.190.0.3:41781
85.190.0.3:41781 SIGTERM[soft,port-share-redirect] received, client-instance exiting
MANAGEMENT: TCP recv error: Socket operation on non-socket
MANAGEMENT: Client disconnected
MANAGEMENT: Triggering management exit
Exiting due to fatal error
EVENT: epoll_ctl EPOLL_CTL_MOD failed, sd=6: Bad file descriptor (errno=9)

Then an error like this for every incoming connection that should be
proxied:

76.120.71.74:55302 PORT SHARE: sendmsg failed -- unable to communicate with background process (6,8,-1,-1): Connection refused (errno=111)

Version 2.1.3s

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

14 years agoFixed bug that incorrectly placed stricter TCP packet replay rules on
James Yonan [Sat, 2 Apr 2011 08:21:28 +0000 (08:21 +0000)] 
Fixed bug that incorrectly placed stricter TCP packet replay rules on
UDP sessions when the client daemon was running in UDP/TCP adaptive
mode, and transitioned from TCP to UDP.

The bug would cause a single dropped packet in UDP mode to trigger a
barrage of packet replay errors followed by a disconnect and
reconnect.

Version 2.1.3r

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

14 years agoAdded more packet ID debug info at debug level 3 for debugging
James Yonan [Thu, 31 Mar 2011 23:18:06 +0000 (23:18 +0000)] 
Added more packet ID debug info at debug level 3 for debugging
false positive packet replays.

Version 2.1.3q.

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

14 years agoAdded ./configure --enable-osxipconfig option for Mac OS X which will
James Yonan [Sun, 27 Mar 2011 09:20:13 +0000 (09:20 +0000)] 
Added ./configure --enable-osxipconfig option for Mac OS X which will
enable the use of ipconfig (instead of ifconfig) for configuring the
IP address and netmask of the tun/tap adapter.

Version 2.1.3p

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

14 years agoAdded "auth-token" client directive, which is intended to be
James Yonan [Sat, 26 Mar 2011 21:16:40 +0000 (21:16 +0000)] 
Added "auth-token" client directive, which is intended to be
pushed by server, and that is used to offer a temporary session
token to clients that can be used in place of a password on
subsequent credential challenges.

This accomplishes the security benefit of preventing caching
of the real password while offering most of the advantages
of password caching, i.e. not forcing the user to re-enter
credentials for every TLS renegotiation or network hiccup.

auth-token does two things:

1. if password caching is enabled, the token replaces the
   previous password, and

2. if the management interface is active, the token is output
   to it:

     >PASSWORD:Auth-Token:<token>

Also made a minor change to HALT/RESTART processing when password
caching is enabled.  When client receives a HALT or RESTART message,
and if the message text contains a flags block (i.e. [FFF]:message),
if flag 'P' (preserve auth) is present in flags, don't purge the Auth
password.  Otherwise do purge the Auth password.

Version 2.1.3o

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

14 years agowin/sign.py now accepts an optional tap-dir argument.
James Yonan [Fri, 25 Mar 2011 11:06:16 +0000 (11:06 +0000)] 
win/sign.py now accepts an optional tap-dir argument.

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

14 years agoVersion 2.1.3n
James Yonan [Mon, 21 Mar 2011 09:00:39 +0000 (09:00 +0000)] 
Version 2.1.3n

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

14 years agoClient will now try to reconnect if no push reply received
James Yonan [Sun, 20 Mar 2011 19:43:06 +0000 (19:43 +0000)] 
Client will now try to reconnect if no push reply received
within handshake-window seconds.

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

14 years agoExtended "client-kill" management interface command (server-side)
James Yonan [Sun, 20 Mar 2011 04:12:26 +0000 (04:12 +0000)] 
Extended "client-kill" management interface command (server-side)
to accept an optional message string.  The message string format is:

  RESTART|HALT,<human-readable-message>

RESTART will tell the client to restart (i.e. SIGUSR1).

HALT will tell the client to exit (i.e. SIGTERM).

On the client, human-readable-message will be communicated via
management interface:

  >NOTIFY,<severity>,<type>,<human-readable-message>"

Version 2.1.3m

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

14 years agoFixed bug introduced in r7031 that might cause this error message:
James Yonan [Sun, 20 Mar 2011 03:57:28 +0000 (03:57 +0000)] 
Fixed bug introduced in r7031 that might cause this error message:

PORT SHARE: sendmsg failed (unable to communicate with background process)

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

14 years agoFixed issue where a client might receive multiple push replies from
James Yonan [Fri, 18 Mar 2011 04:51:59 +0000 (04:51 +0000)] 
Fixed issue where a client might receive multiple push replies from
a server if it sent multiple push requests due to the server being
slow to respond.  This could cause the client to process pushed
options twice, leading to duplicate pushed routes, among other issues.
The fix, implemented server-side, is to reply only once to a push
request even if multiple requests are received.

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

14 years agoenv_filter_match now includes the serial number of all certs
James Yonan [Thu, 17 Mar 2011 20:04:56 +0000 (20:04 +0000)] 
env_filter_match now includes the serial number of all certs
in chain (as tls_serial_n vars), rather than only tls_serial_0.

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

14 years agoReduce log verbosity at level 3, with a focus on removing excessive log verbosity...
James Yonan [Tue, 15 Mar 2011 05:06:23 +0000 (05:06 +0000)] 
Reduce log verbosity at level 3, with a focus on removing excessive log verbosity generated by port-share activity.

Version 2.1.3k

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

14 years agoAdded optional journal directory argument to "port-share" directive, for reporting...
James Yonan [Sun, 13 Mar 2011 06:59:25 +0000 (06:59 +0000)] 
Added optional journal directory argument to "port-share" directive, for reporting client IP origins of proxied connections.

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

14 years agoAdded --enable-lzo-stub configure option to build an OpenVPN client without LZO,...
James Yonan [Thu, 10 Mar 2011 00:04:39 +0000 (00:04 +0000)] 
Added --enable-lzo-stub configure option to build an OpenVPN client without LZO, but that has limited interoperability with LZO-enabled servers.

Modified "push-peer-info" option to push IV_LZO_STUB=1 to server when
client was built with --enable-lzo-stub configure option.  This tells
the server that the client lacks LZO capabilities, so the server
should turn off LZO compression for this client via "lzo no".

Added "setenv PUSH_PEER_INFO" option having the same effect as
"push-peer-info".

Version 2.1.3j

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

14 years agoAdded "client-nat" option for stateless, one-to-one
James Yonan [Fri, 18 Feb 2011 17:48:25 +0000 (17:48 +0000)] 
Added "client-nat" option for stateless, one-to-one
NAT on the client side.

Version 2.1.3i.

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

14 years agoProperly handle certificate serial numbers > 32 bits.
James Yonan [Mon, 14 Feb 2011 22:03:44 +0000 (22:03 +0000)] 
Properly handle certificate serial numbers > 32 bits.

Version 2.1.3h

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

14 years agoFixes to r6925.
James Yonan [Mon, 14 Feb 2011 05:20:23 +0000 (05:20 +0000)] 
Fixes to r6925.

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

14 years agoImplemented get_default_gateway_mac_addr for Mac OS X (previously,
James Yonan [Mon, 14 Feb 2011 03:46:37 +0000 (03:46 +0000)] 
Implemented get_default_gateway_mac_addr for Mac OS X (previously,
was only defined for Windows and Linux).  This enables OS X to report
the MAC address of the default gateway to the server for ID purposes
when client-side --push-peer-info option is specified.

Also, minor fix to OS X get_default_gateway function:

* include net/route.h directly rather than selectively paste stuff
  from it into route.c

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

14 years agoFixed minor compile issue triggered on builds where
James Yonan [Tue, 18 Jan 2011 16:12:13 +0000 (16:12 +0000)] 
Fixed minor compile issue triggered on builds where
MANAGEMENT_DEF_AUTH is not enabled.

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

14 years ago* added --management-up-down option to allow management interface
James Yonan [Mon, 10 Jan 2011 19:13:02 +0000 (19:13 +0000)] 
* added --management-up-down option to allow management interface
  to be notified of tunnel up/down events.

* pulled --ip-win32 options will be suppressed on the client
  if --route-nopull option is specified.

Version 2.1.3f

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

14 years agoAdded --x509-track option.
James Yonan [Wed, 5 Jan 2011 00:50:11 +0000 (00:50 +0000)] 
Added --x509-track option.

Version 2.1.3e

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

14 years agoMisc fixes to r6708.
James Yonan [Mon, 13 Dec 2010 09:27:08 +0000 (09:27 +0000)] 
Misc fixes to r6708.

Fixed issue where "signal SIGTERM" entered from the management
interface might get subsequently downgraded to a SIGUSR1.

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

14 years agoMinor addition of logging info before and after
James Yonan [Fri, 10 Dec 2010 21:17:36 +0000 (21:17 +0000)] 
Minor addition of logging info before and after
execution of Windows net commands.

Version 2.1.3d

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

14 years agoAdded "management-external-key" option. This option can be used
James Yonan [Thu, 9 Dec 2010 11:21:04 +0000 (11:21 +0000)] 
Added "management-external-key" option.  This option can be used
instead of "key" in client mode, and allows the client to run
without the need to load the actual private key.  When the SSL
protocol needs to perform an RSA sign operation, the data to
be signed will be sent to the management interface via a
notification as follows:

  >RSA_SIGN:[BASE64_DATA]

The management interface client should then sign BASE64_DATA
using the private key and return the signature as follows:

  rsa-sig
  [BASE64_SIG_LINE]
  .
  .
  .
  END

This capability is intended to allow the use of arbitrary
cryptographic service providers with OpenVPN via the
management interface.

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

14 years agoFixes to prevent compile breakage when --disable-crypto is used.
James Yonan [Tue, 16 Nov 2010 09:10:39 +0000 (09:10 +0000)] 
Fixes to prevent compile breakage when --disable-crypto is used.

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

14 years agoIn verify_callback, the subject var should be freed by OPENSSL_free,
James Yonan [Tue, 16 Nov 2010 08:36:18 +0000 (08:36 +0000)] 
In verify_callback, the subject var should be freed by OPENSSL_free,
not free, since it is allocated by OpenSSL.

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

14 years agoVersion 2.1.3b
James Yonan [Thu, 28 Oct 2010 05:01:24 +0000 (05:01 +0000)] 
Version 2.1.3b

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

14 years agoMake base64.h have the same conditional compilation expression as
James Yonan [Sun, 24 Oct 2010 09:17:24 +0000 (09:17 +0000)] 
Make base64.h have the same conditional compilation expression as
base64.c.

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

14 years agoImplement challenge/response authentication support in client mode,
James Yonan [Sun, 24 Oct 2010 09:12:47 +0000 (09:12 +0000)] 
Implement challenge/response authentication support in client mode,
where credentials are entered from stdin.  This capability is
compiled when ENABLE_CLIENT_CR is defined in syshead.h (enabled
by default).

Challenge/response support was previously implemented for creds
that are queried via the management interface.  In this case,
the challenge message will be returned as a custom
client-reason-text string (see management-notes.txt for more
info) on auth failure.

Also, see the comments in misc.c above get_auth_challenge()
for info on the OpenVPN challenge/response protocol.

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

14 years agoFixed initialization bug in route_list_add_default_gateway
James Yonan [Sat, 23 Oct 2010 22:32:00 +0000 (22:32 +0000)] 
Fixed initialization bug in route_list_add_default_gateway
(Gert Doering).

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

14 years agoAdded --proto-force directive.
James Yonan [Wed, 1 Sep 2010 06:04:29 +0000 (06:04 +0000)] 
Added --proto-force directive.

Version 2.1.3a

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

14 years agoDon't configure Linux tun/tap txqueuelen setting if OpenVPN
James Yonan [Tue, 31 Aug 2010 21:39:30 +0000 (21:39 +0000)] 
Don't configure Linux tun/tap txqueuelen setting if OpenVPN
txqueuelen directive is set to 0.

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

14 years agoAllow PKCS12 file content to be included inline in configuration file,
James Yonan [Sun, 29 Aug 2010 05:24:15 +0000 (05:24 +0000)] 
Allow PKCS12 file content to be included inline in configuration file,
rendered as base64.

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

14 years agoAttempt to fix issue where domake-win build system was not properly v2.1.3
James Yonan [Fri, 20 Aug 2010 20:24:42 +0000 (20:24 +0000)] 
Attempt to fix issue where domake-win build system was not properly
signing drivers and .exe files.

Added win/tap_span.py for building multiple versions of the TAP driver
and tapinstall binaries using different DDK versions to span from Win2K
to Win7 and beyond.

Version 2.1.3

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

14 years agoWindows security issue: v2.1.2
James Yonan [Sun, 15 Aug 2010 21:53:00 +0000 (21:53 +0000)] 
Windows security issue:
Fixed potential local privilege escalation vulnerability in
Windows service. The Windows service did not properly quote the
executable filename passed to CreateService.  A local attacker
with write access to the root directory C:\ could create an
executable that would be run with the same privilege level as
the OpenVPN Windows service.  However, since non-Administrative
users normally lack write permission on C:\, this vulnerability
is generally not exploitable except on older versions of Windows
(such as Win2K) where the default permissions on C:\ would allow
any user to create files there.
Credit:  Scott Laurie, MWR InfoSecurity

Version 2.1.2

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

14 years agoAdded warning about tls-remote in man page.
James Yonan [Tue, 10 Aug 2010 17:31:31 +0000 (17:31 +0000)] 
Added warning about tls-remote in man page.

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

14 years agoDistribute win directory (Python/MSVC-based build system)
James Yonan [Mon, 9 Aug 2010 20:15:27 +0000 (20:15 +0000)] 
Distribute win directory (Python/MSVC-based build system)
in "make dist" tarball.

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

15 years agoAdded "net stop dnscache" and "net start dnscache" in front
James Yonan [Tue, 27 Jul 2010 21:46:34 +0000 (21:46 +0000)] 
Added "net stop dnscache" and "net start dnscache" in front
of existing --register-dns commands.

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

15 years agoFixed an issue where application payload transmissions on the
James Yonan [Tue, 27 Jul 2010 07:10:01 +0000 (07:10 +0000)] 
Fixed an issue where application payload transmissions on the
TLS control channel (such as AUTH_FAILED) that occur during
or immediately after a TLS renegotiation might be dropped.

Version 2.1.1n

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

15 years agoFixed typo: missing comment close.
James Yonan [Mon, 26 Jul 2010 18:26:49 +0000 (18:26 +0000)] 
Fixed typo: missing comment close.

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

15 years agoAdded win/build_exe.py script, which is similar to
James Yonan [Fri, 16 Jul 2010 19:08:35 +0000 (19:08 +0000)] 
Added win/build_exe.py script, which is similar to
win/build_all.py except that it doesn't build the
TAP drivers or tapinstall.

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

15 years agoAdded --register-dns option for Windows.
James Yonan [Fri, 16 Jul 2010 18:01:11 +0000 (18:01 +0000)] 
Added --register-dns option for Windows.

Fixed some issues on Windows with --log, subprocess creation
for command execution, and stdout/stderr redirection.

Version 2.1.1m.

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

15 years agoImplemented multi-address DNS expansion on the network field of route
James Yonan [Mon, 12 Jul 2010 01:55:54 +0000 (01:55 +0000)] 
Implemented multi-address DNS expansion on the network field of route
commands.

When only a single IP address is desired from a multi-address DNS
expansion, use the first address rather than a random selection.

Version 2.1.1l

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

15 years agoVersion 2.1.1k
James Yonan [Sat, 10 Jul 2010 03:13:25 +0000 (03:13 +0000)] 
Version 2.1.1k

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

15 years agoFixed bug in proxy fallback capability where openvpn.exe could
James Yonan [Sat, 10 Jul 2010 03:04:27 +0000 (03:04 +0000)] 
Fixed bug in proxy fallback capability where openvpn.exe could
core dump if http-proxy-fallback-disable command was issued in
response to ">PROXY:NEED_NOW management" interface notification.

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

15 years agoAdded support for MSVC debugging of openvpn.exe in settings.in:
James Yonan [Sat, 10 Jul 2010 03:00:08 +0000 (03:00 +0000)] 
Added support for MSVC debugging of openvpn.exe in settings.in:

  # Build debugging version of openvpn.exe
  !define PRODUCT_OPENVPN_DEBUG

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

15 years agoFixed issue where bad creds provided by the management interface
James Yonan [Thu, 10 Jun 2010 03:17:21 +0000 (03:17 +0000)] 
Fixed issue where bad creds provided by the management interface
for HTTP Proxy Basic Authentication would go into an infinite
retry-fail loop instead of requerying the management interface for
new creds.

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

15 years agoImplemented a key/value auth channel from client to server.
James Yonan [Tue, 1 Jun 2010 07:12:27 +0000 (07:12 +0000)] 
Implemented a key/value auth channel from client to server.

Version 2.1.1i

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

15 years agoImplemented http-proxy-override and http-proxy-fallback directives to make it
James Yonan [Mon, 24 May 2010 22:51:16 +0000 (22:51 +0000)] 
Implemented http-proxy-override and http-proxy-fallback directives to make it
easier for OpenVPN client UIs to start a pre-existing client config file with
proxy options, or to adaptively fall back to a proxy connection if a direct
connection fails.

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

15 years agoMinor fixes to recent HTTP proxy changes:
James Yonan [Tue, 11 May 2010 19:47:03 +0000 (19:47 +0000)] 
Minor fixes to recent HTTP proxy changes:

* use strcasecmp instead of stricmp

* define HASH and HASHHEX as unsigned char to avoid compiler
  warnings

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

15 years agoProxy improvements:
James Yonan [Tue, 11 May 2010 19:32:41 +0000 (19:32 +0000)] 
Proxy improvements:

Improved the ability of http-auth "auto" flag to dynamically detect
the auth method required by the proxy.

Added http-auth "auto-nct" flag to reject weak proxy auth methods.

Added HTTP proxy digest authentication method.

Removed extraneous openvpn_sleep calls from proxy.c.

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

15 years agoFixed issue on Windows with MSVC compiler, where TCP_NODELAY support
James Yonan [Sun, 9 May 2010 00:03:42 +0000 (00:03 +0000)] 
Fixed issue on Windows with MSVC compiler, where TCP_NODELAY support
was not being compiled in.

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

15 years agoUpdated copyright date to 2010.
James Yonan [Wed, 28 Apr 2010 16:31:36 +0000 (16:31 +0000)] 
Updated copyright date to 2010.

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

15 years agoAdded Python-based build system for Windows in
James Yonan [Thu, 22 Apr 2010 12:53:31 +0000 (12:53 +0000)] 
Added Python-based build system for Windows in
win directory.

Fixed minor issue in TAP driver DEBUG builds where
non-null-terminated unicode strings were being
printed incorrectly.

Version 2.1.1g

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

15 years agoMinor change to doclean script:
James Yonan [Sat, 17 Apr 2010 02:23:50 +0000 (02:23 +0000)] 
Minor change to doclean script:

Don't delete config-win32.h, because this is now a true source file
and no longer a generated file.

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

15 years agoManagement interface performance optimizations:
James Yonan [Fri, 16 Apr 2010 07:04:45 +0000 (07:04 +0000)] 
Management interface performance optimizations:

* Added env-filter MI command to perform filtering on env vars
  passed through as a part of --management-client-auth

* man_write will now try to aggregate output into larger blocks
  (up to 1024 bytes) for more efficient i/o

Version 2.1.1f

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

15 years agoUpdated MSVC build scripts to Visual Studio 2008:
James Yonan [Wed, 31 Mar 2010 06:38:21 +0000 (06:38 +0000)] 
Updated MSVC build scripts to Visual Studio 2008:
  python msvc\config.py
  nmake /f msvc\msvc.mak

Version 2.1.1e

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

15 years agoSet socket buffers (SO_SNDBUF and SO_RCVBUF) immediately after
James Yonan [Tue, 30 Mar 2010 04:20:55 +0000 (04:20 +0000)] 
Set socket buffers (SO_SNDBUF and SO_RCVBUF) immediately after
socket is created rather than waiting until after connect/listen.

Version 2.1.1d

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

15 years agoVersion 2.1.1c
James Yonan [Wed, 17 Mar 2010 18:54:47 +0000 (18:54 +0000)] 
Version 2.1.1c

Enable exponential backoff in reliability layer
retransmits.

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

15 years agoModified ">PASSWORD:Verification Failed" management interface
James Yonan [Fri, 12 Mar 2010 03:05:34 +0000 (03:05 +0000)] 
Modified ">PASSWORD:Verification Failed" management interface
notification to include a client reason string:

  >PASSWORD:Verification Failed: 'AUTH_TYPE' ['REASON_STRING']

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

15 years agoAdded stub directive "remote-ip-hint".
James Yonan [Fri, 12 Mar 2010 03:00:41 +0000 (03:00 +0000)] 
Added stub directive "remote-ip-hint".

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

15 years agoTrivial fix to proxy.c -- #define proxy auth type as UP_TYPE_PROXY.
James Yonan [Fri, 12 Mar 2010 02:59:17 +0000 (02:59 +0000)] 
Trivial fix to proxy.c -- #define proxy auth type as UP_TYPE_PROXY.

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

15 years agoFixed an issue where if reneg-sec was set to 0 on the client,
James Yonan [Sat, 6 Mar 2010 15:38:23 +0000 (15:38 +0000)] 
Fixed an issue where if reneg-sec was set to 0 on the client,
so that the server-side value would take precedence,
the auth_deferred_expire_window function would incorrectly
return a window period of 0 seconds.  In this case, the
correct window period should be the handshake window
period.

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

15 years agoFixed an issue in the Management Interface that could cause
James Yonan [Fri, 26 Feb 2010 10:26:45 +0000 (10:26 +0000)] 
Fixed an issue in the Management Interface that could cause
a process hang with 100% CPU utilization in --management-client
mode if the management interface client disconnected at the
point where credentials are queried.

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

15 years agoVersion 2.1.1b
james [Sat, 16 Jan 2010 04:10:30 +0000 (04:10 +0000)] 
Version 2.1.1b

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

15 years agoDon't advance the connection list on AUTH_FAILED errors.
james [Sat, 16 Jan 2010 03:54:00 +0000 (03:54 +0000)] 
Don't advance the connection list on AUTH_FAILED errors.

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

15 years agoFixed an issue where AUTH_FAILED was not being properly delivered
james [Sat, 16 Jan 2010 03:24:07 +0000 (03:24 +0000)] 
Fixed an issue where AUTH_FAILED was not being properly delivered
to the client when a bad password is given for mid-session reauth.

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

15 years agoWhen aborting in a non-graceful way, try to execute do_close_tun in
james [Tue, 12 Jan 2010 18:26:22 +0000 (18:26 +0000)] 
When aborting in a non-graceful way, try to execute do_close_tun in
init.c prior to daemon exit to ensure that the tun/tap interface is
closed and any added routes are deleted.

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

15 years agoFixed some breakage in openvpn.spec (which is required to build an v2.1.1
james [Fri, 11 Dec 2009 23:44:34 +0000 (23:44 +0000)] 
Fixed some breakage in openvpn.spec (which is required to build an
RPM distribution) where it was referencing a non-existent
subdirectory in the tarball, causing it to fail (patch from
David Sommerseth).

Version 2.1.1.

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

15 years agoVersion 2.1.0 v2.1.0
james [Fri, 11 Dec 2009 08:18:50 +0000 (08:18 +0000)] 
Version 2.1.0

* Updated ChangeLog.

* Note in man page that clients connecting to a --multihome server
  should always use the --nobind option.

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

15 years agoClarified that TAP-Win32 driver is licensed under GPL 2.
james [Fri, 11 Dec 2009 05:13:24 +0000 (05:13 +0000)] 
Clarified that TAP-Win32 driver is licensed under GPL 2.

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

15 years agoDocumented --multihome in the man page.
james [Fri, 11 Dec 2009 01:47:26 +0000 (01:47 +0000)] 
Documented --multihome in the man page.

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

15 years agoFixed a couple issues in sample plugins auth-pam.c and down-root.c:
james [Thu, 10 Dec 2009 23:50:03 +0000 (23:50 +0000)] 
Fixed a couple issues in sample plugins auth-pam.c and down-root.c:

1. Fail gracefully rather than segfault if calloc returns NULL.

2. The openvpn_plugin_abort_v1 function can potentially be called
   with handle == NULL.  Add code to detect this case, and if
   so, avoid dereferencing pointers derived from handle.

(Thanks to David Sommerseth for finding this bug).

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

15 years agoVersion 2.1_rc22 v2.1_rc22
james [Fri, 20 Nov 2009 13:22:27 +0000 (13:22 +0000)] 
Version 2.1_rc22

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

15 years agoFixed a client-side bug that occurred when the "dhcp-pre-release"
james [Thu, 19 Nov 2009 16:42:51 +0000 (16:42 +0000)] 
Fixed a client-side bug that occurred when the "dhcp-pre-release"
or "dhcp-renew" options were combined with "route-gateway dhcp".

The problem is that the IP Helper functions for DHCP release and
renew are blocking, and so calling them from a single-threaded
client stops tunnel traffic forwarding, and hence breaks
"route-gateway dhcp" which requires an active tunnel.  The fix is
to call the IP Helper functions for DHCP release and renew from
another process.

Version 2.1_rc21b.

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

15 years agoIncrease MAX_CERT_DEPTH to 16 (from 8), and when exceeded,
james [Fri, 13 Nov 2009 11:09:47 +0000 (11:09 +0000)] 
Increase MAX_CERT_DEPTH to 16 (from 8), and when exceeded,
make it a hard failure, rather than just a warning.

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

15 years agoVersion 2.1_rc21 v2.1_rc21
james [Thu, 12 Nov 2009 09:30:45 +0000 (09:30 +0000)] 
Version 2.1_rc21

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

15 years agoVersion 2.1_rc20a
james [Sun, 25 Oct 2009 15:54:01 +0000 (15:54 +0000)] 
Version 2.1_rc20a

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

15 years agoOn server, lock client-provided certs against mid-session TLS
james [Sun, 25 Oct 2009 15:51:04 +0000 (15:51 +0000)] 
On server, lock client-provided certs against mid-session TLS
renegotiations -- this is similer to how the common name is also
locked.

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

15 years agoChange to doval valgrind script. The openvpn command parameter is now
james [Sun, 25 Oct 2009 15:44:28 +0000 (15:44 +0000)] 
Change to doval valgrind script.  The openvpn command parameter is now
implied, so new usage is:

  ./doval [openvpn parms]

instead of:

  ./doval ./openvpn [openvpn parms]

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

15 years agoOn server, lock session username against changes in mid-session TLS
james [Sat, 24 Oct 2009 01:08:30 +0000 (01:08 +0000)] 
On server, lock session username against changes in mid-session TLS
renegotiations -- this is similer to how the common name is also
locked.

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

15 years agoAdded "setenv GENERIC_CONFIG" directive, for generic configs
james [Fri, 16 Oct 2009 16:31:01 +0000 (16:31 +0000)] 
Added "setenv GENERIC_CONFIG" directive, for generic configs
that cannot directly be used as a config file.  The directive
will simply cause OpenVPN to exit with an error if a generic
config file is used.

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

15 years agoFixed issue where some .svn directories were being inadvertently v2.1_rc20
james [Wed, 7 Oct 2009 11:19:51 +0000 (11:19 +0000)] 
Fixed issue where some .svn directories were being inadvertently
included in the .tar.gz file built by make dist.

Re-released as Version 2.1_rc20

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

15 years agoVersion 2.1_rc20
james [Thu, 1 Oct 2009 22:13:26 +0000 (22:13 +0000)] 
Version 2.1_rc20

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

15 years agoclient-kill management interface command, when issued on server, will
james [Thu, 1 Oct 2009 21:08:40 +0000 (21:08 +0000)] 
client-kill management interface command, when issued on server, will
now send a RESTART message to client.

This feature is intended to make UDP clients respond the same as TCP
clients in the case where the server issues a RESTART message in
order to force the client to reconnect and pull a new options/route
list.

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

15 years agoMinor fix: management interface shouldn't echo 'load-stats' commands to
james [Thu, 1 Oct 2009 20:55:37 +0000 (20:55 +0000)] 
Minor fix: management interface shouldn't echo 'load-stats' commands to
log file.

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

15 years agoAdded the ability for the server to provide a custom reason string
james [Tue, 29 Sep 2009 23:10:14 +0000 (23:10 +0000)] 
Added the ability for the server to provide a custom reason string
when an AUTH_FAILED message is returned to the client.  This
string can be set by the server-side managment interface and read
by the client-side management interface.

For more info, see management/management-notes.txt, and look for
references to "client-reason-text".

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

15 years agoFixed a bug introduced in r4436 (2.1_rc17) where using the
james [Mon, 28 Sep 2009 07:50:30 +0000 (07:50 +0000)] 
Fixed a bug introduced in r4436 (2.1_rc17) where using the
redirect-gateway option by itself, without any extra parameters,
would cause the option to be ignored.

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

15 years agoAdded --server-poll-timeout option : when polling possible remote
james [Mon, 28 Sep 2009 07:27:22 +0000 (07:27 +0000)] 
Added --server-poll-timeout option : when polling possible remote
servers to connect to in a round-robin fashion, spend no more than
n seconds waiting for a response before trying the next server.

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

15 years agoEliminated the limitation on the number of options that can be pushed
james [Sun, 27 Sep 2009 02:12:15 +0000 (02:12 +0000)] 
Eliminated the limitation on the number of options that can be pushed
to clients, including routes.  Previously, all pushed options needed
to fit within a 1024 byte options string.

Remember that to make use of this feature to allow many routes to
be pushed to clients, the client config file must specify the
max-routes option, and the number of pushed routes cannot exceed
this limit.  Also, both server and client must include this commit.

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

15 years agoThe maximum number of "route" directives (specified in the config
james [Thu, 17 Sep 2009 23:43:37 +0000 (23:43 +0000)] 
The maximum number of "route" directives (specified in the config
file or pulled from a server) can now be configured via the new
"max-routes" directive.

Previously, the limit was set to 100 and fixed by a compile-time
constant.  Now the limit is dynamic and can be modified by the
"max-routes" directive.  If max-routes is not specified, the default
limit is 100.

Note that this change does not address the maximum size of the
pushed options string sent from server to client, which is still
controlled by the TLS_CHANNEL_BUF_SIZE compile-time constant.

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

15 years agoModified client to send a PUSH_REQUEST message to server 1 second
james [Wed, 16 Sep 2009 18:58:49 +0000 (18:58 +0000)] 
Modified client to send a PUSH_REQUEST message to server 1 second
after connection initiation rather than 0 seconds after.
Successive PUSH_REQUEST messages after the first will continue to be
sent at 5 second intervals until a response is received.  This tends
to speed up the client connection sequence by 4 seconds because the
first PUSH_REQUEST message is usually sent too soon and is dropped,
causing a wait of 5 seconds until the next PUSH_REQUEST message is
sent.

Version 2.1_rc19d

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

15 years agoUpdated version number to 2.1_rc19c.
james [Tue, 8 Sep 2009 20:50:41 +0000 (20:50 +0000)] 
Updated version number to 2.1_rc19c.

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

15 years agoAdded "setcon" directive for interoperability with SELinux
james [Fri, 4 Sep 2009 23:50:35 +0000 (23:50 +0000)] 
Added "setcon" directive for interoperability with SELinux
(Sebastien Raveau).

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

15 years agoAdded new ./configure flags:
james [Mon, 24 Aug 2009 19:13:52 +0000 (19:13 +0000)] 
Added new ./configure flags:

  --disable-def-auth      Disable deferred authentication
  --disable-pf            Disable internal packet filter

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

15 years agoAdded PLATFORM-SPECIFIC comment tag to platform-specific functions
james [Mon, 24 Aug 2009 19:11:59 +0000 (19:11 +0000)] 
Added PLATFORM-SPECIFIC comment tag to platform-specific functions
in route.c to make it easier to spot them.

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

15 years agoAdded "load-stats" management interface command to get global
james [Sun, 23 Aug 2009 22:03:16 +0000 (22:03 +0000)] 
Added "load-stats" management interface command to get global
server load statistics.

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