OpenVPN 2.3-alpha1 released
The OpenVPN community project team is proud to release OpenVPN 2.3-alpha1. It can be downloaded from here:
<http://openvpn.net/index.php/open-source/downloads.html>
This release includes a few new major features:
* Complete IPv6 support, both transport and payload
* Optional PolarSSL support (build time configuration)
* Improved plug-in API (v3) which can more easily be expanded in the
future: includes support for direct access to X.509 certificate data in plug-ins
* Several improvements to the management interface
* One-to-one NAT to circumvent IP address conflicts between local and remote networks
* New OpenVPN-GUI
Note that a few changes have been made which may affect existing installations. A list of new features and the changelog are available here:
<https://community.openvpn.net/openvpn/wiki/ChangesInOpenvpn23>
The changelog is also attached to this email.
For generic help use these support channels:
- Official documentation:
<http://openvpn.net/index.php/open-source/documentation/howto.html>
- Wiki: <https://community.openvpn.net>
- Forums: <https://forums.openvpn.net>
- User mailing list: <http://sourceforge.net/mail/?group_id=48978>
- User IRC channel: #openvpn at irc.freenode.net
Please report bugs and ask development questions here:
- Bug tracker and Wiki: <https://community.openvpn.net>
- Developer mailing list: <http://sourceforge.net/mail/?group_id=48978>
- Developer IRC channel: #openvpn-devel at irc.freenode.net (requires Freenode registration)
Signature · 5 lines
Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock
2012.02.21 -- Version 2.3-alpha1
Adriaan de Jong (127):
Added Doxygen doxyfile
Changed configure to accept --with-ssl-type=openssl
Refactored to rand_bytes for OpenSSL-independency
Refactored OpenSSL-specific constants
Refactored maximum cipher and hmac length constants
Refactored show_available_* functions
Refactored SSL_clear_error()
Refactored crypto initialisation functions
Refactored DES key manipulation functions
Refactored NTLM DES key generation
Refactored message digest type functions
Refactored message digest functions
Refactored HMAC functions
Refactored cipher key types
Refactored cipher functions
Added PRNG doxygen
Refactored: Moved crypto.h inline functions to end of file
Removed stale OpenSSL defines from crypto.h
Added a check for Openssl or PolarSSL defines
Refactored: Added stubs for new files
Refactored SSL initialisation functions
Refactored TLS_PRF to new hmac and md primitives
Refactored tls_show_available_ciphers
Refactored get_highest_preference_tls_cipher
Refactored root SSL context initialisation
Refactored new external key code
Refactored DH paramater loading
Refactored root TLS option settings
Refactored PKCS#12 key loading
Refactored PKCS#11 loading
Refactored windows cert loading
Refactored load certificate functions
Refactored private key loading code
Refactored external key loading from management
Refactored CA and extra certs code
Refactored cipher restriction code
Refactored tls_options, key_state, and key_source data structures Refactored initalisation of key_states
Refactored key_state free code
Refactored print_details
Refactored key_state read code (including bio_read())
Refactored key_state write functions
Refactored: Moved BIO debug functions to OpenSSL backend
Refactored: removed ks and ks_lame macro for clarity
Refactored: moved write_empty_string function back
Refactored Doxygen for tls_multi functions
Migrated data structures needed by verification functions to ssl_common.h Refactored client_config_dir_exclusive function
Refactored certificate hash lock checks
Refactored common name locking functions
Refactored username and password authentication code
Add some extra comments
Refactored: split verify_callback into two parts
Added function to extract and verify the subject from a certificate
Added function to verify and extract the username
Refactored: removed global x509_username_field
Refactored: separated environment setup during verification
Refactored: Netscape certificate type verification
Refactored key usage verification code
Refactored EKU verification
Refactored tls-remote checking
Refactored tls-verify-plugin code
Refactored tls-verify script code
Refactored CRL checks
Minor cleanup in verify_cert:
Refactored: Moved verify_cert to ssl_verify
Cleaned up ssl.h
Refactored: made M_SSL dependent on USE_OPENSSL
Refactored: renamed X509 functions from verify_*
Separated OpenSSL-specific parts of the PKCS#11 driver
Modified base64 code in preparation for PolarSSL merge
Final cleanup before PolarSSL addition:
Refactored X509 track feature to be contained within the openssl backend Added PolarSSL support:
Fixed a missing include in ssl_backend.h
Fixed a bug in the hash generation in ssl_verify_openssl.c
Added SHA_DIGEST_SIZE definition
Changed PolarSSL crypto backend to support v0.99-pre5
Updated ssl_polarssl.c to work with 0.99-pre5
Fixed a compilation warning for size_t key sizes
Added a warning that the PolarSSL library does not support pkcs12 files. Added warning that --capath is not available with PolarSSL
Disable CryptoAPI when not using OpenSSL, and document that fact.
Removed support for management external keys in PolarSSL
Removed stray X509_free from ssl.c
Refactored (and disabled for PolarSSL) support for writing external cert files in scripts Added an extra define to allow building without PKCS#11
Added SSL library to title string
Disabled X.509 track and username selection for PolarSSL
Hardening: periodically reset the PRNG's nonce value
Fixes for the plugin system:
Further improvements to plugin support:
Fixed an unintentional change in the options calculated key size.
Moved print messages back to generic crypto.c from cipher backends
Moved HMAC prints back to main crypto module
Added back checks for ks->authenticated in verify_user_pass
Moved gc_new and gc_free to begin end of function
Fixed a bug in the return value of ssl_verify when pre_verify failed Unified verification function return values:
Removed a stray Fox-IT tag
Fixed a typo: print the subject instead of the serial for verification errors Made SSL_CIPHER const in print_details, to fix warning
Moved to PolarSSL 1.0.0:
Added missing #ifdef to allow --disable-managent to work again
Fixed disabling crypto and SSL
Got rid of a few magic numbers in ntlm.c
Removed obsolete des_cblock and des_keyschedule
Further removal of des_old.h based calls
Fixed missing comma in plugin.h
Moved prng_uninit out of crypto_uninit_lib
Moved CryptoAPI header include to the ssl_openssl.c
Reordered functions to ensure warning-free Windows build
Added options to switch between OpenSSL and PolarSSL and PKCS11...
Moved from strsep to strtok, for Windows compatibility
Minor cleanup to enable warning-free Windows build:
Fixed a typo when initialising cryptoapi certs
Minor code cleanup: cleaned up error handling in verify_cert.
Moved out of memory prototype to error.h, as the definition is in error.c Removed support for calling gc_malloc with a NULL gc_arena struct
(The follwing patches from Adriaan was mistakenly merged with
the wrong commit author in the git tree)
Doxygen: Added data channel crypto docs
Added control channel crypto docs
Added compression docs
Added reliability layer documentation
Added memory management documentation
Added data channel fragmentation docs
Added main/control docs
Moved doxygen-specific files to a separate directory
Byron Ellacott (1):
autoconf fixes for building on OSX
David Sommerseth (50):
Provide 'dev_type' environment variable to plug-ins and script hooks Define the new openvpn_plugin_{open,func}_v3() API
Implement the core v3 plug-in function calls.
Extend the v3 plug-in API to send over X509 certificates
Added a simple plug-in demonstrating the v3 plug-in API. Separate the general plug-in version constant and v3 plug-in structs version Use a version-less version identifier on the master branch
Fix the --client-cert-not-required feature
Change the default --tmp-dir path to a more suitable path Improve the mysprintf() issue in openvpnserv.c
Add a simple comment regarding openvpn_snprintf() is duplicated Merge branch 'feat_ipv6_transport'
Merge branch 'feat_ipv6_payload'
Merge branch 'svn-branch-2.1' into merge
Solved hidden merge conflicts between master and svn-branch-2.1 Fix const declarations in plug-in v3 structs
Merge remote-tracking branch 'cron2/feat_ipv6_payload_2.3'
Don't define ENABLE_PUSH_PEER_INFO if SSL is not available
Fix compiling issues with pkcs11 when --disable-management is configured Remove support for Linux 2.2 configuration fallback
Revert "Add new openssl.cnf to easy-rsa/Windows"
Merge remote branch SVN 2.1 into the git tree
Merge branch 'svn-merger'
Fix Microsoft Visual Studio incompatibility in plugin.c
Fixed compile issues on FreeBSD and Solaris
Fix PolarSSL and --pkcs12 option issues
Fix FreeBSD/OpenBSD/NetBSD compiler warnings in get_default_gateway() Make '--win-sys env' default
Do some file/directory tests before really starting openvpn
Fix bug after removing Linux 2.2 support
Don't look for 'stdin' file when using --auth-user-pass
Fix compiling with --disable-crypto and/or --disable-ssl
Fix a couple of issues in openvpn_execve()
Move away from openvpn_basename() over to platform provided basename() Enable access() when building in Visual Studio
New Windows build fixes
Fix compilation errors on Linux platforms without SO_MARK autotools ./configure don't like compat.h
Fix pool logging when IPv6 is not enabled
Don't check for file presence on inline files
Add --route-pre-down/OPENVPN_PLUGIN_ROUTE_PREDOWN script/plug-in hook Enhance the error handling in _openssl_get_subject()
Fix assert() situations where gc_malloc() is called without a gc_arena object Fix compile issues when plug-ins are disabled.
Remove --show-gateway if debug info is not enabled (--disable-debug) Fix compile issues with status.c
Connection entry {tun,link}_mtu_defined not set correctly Makefile.am referenced a now non-existing config-win32.h Makefile.am was missing ssl_common.h
Revamp check_file_access() checks in stdin scenarios
Davide Guerri (1):
New feauture: Add --stale-routes-check
Frank de Brabander (1):
Fixed wrong return type of cipher_kt_mode
Frederic Crozat (1):
Add support to forward console query to systemd
Gert Doering (45):
Add more detailed explanation regarding the function of "--rdns-internal"
Enable IPv6 Payload in OpenVPN p2mp tun server mode. 20100104-1 release.
remove NOTES file from commit - private scribbling
NetBSD fixes - on 4.0 and up, use multi-af mode.
new feature: "ifconfig-ipv6-push" (from ccd/ config)
add some TODOs to TODO.IPv6
undo accidential duplication of existing "--iroute" line in the help text
basic documentation of IPv6 related options and their syntax
Enable IPv6 Payload in OpenVPN p2mp tun server mode.
remove NOTES file from commit - private scribbling
env_block(): if PATH is not set, add standard PATH setting to env
add IPv6 route add / route delete code for windows (using "netsh")
- Win32 IPv6 ifconfig support, using "netsh" calls
drop "book ipv6" from open_tun() and tuncfg() prototypes
document recent changes and open TODOs, adapt --version info, tag release
Win32: set next-hop for IPv6 routes according to TUN/TAP mode
when deleting a route on win32, also add gateway address
WIN32: if IPv6 requested in TUN mode, check if TUN/TAP driver < 9.7
revert unconditionally-enabling of setenv_es() logging
implement IPv6 ifconfig + route setup/deletion on OpenBSD
full "VPN client connect" test framework for OpenVPN t_client.rc-sample
renamed t_client.sh to t_client.sh.in
2.2-beta3 has a signed TAP driver with the IPv6 code - test for 9.8
correct URL for "more information about IPv6 patch is *here*"
bugfix for linux/iproute2: IPv6 ifconfig code block was not called for "dev tun"+"topology subnet" bump IPv6 version number (openvpn --version) to 20100922-1
Implement "ipv6 ifconfig" for TAP interfaces on Solaris interfaces
rebased to 2.2RC2 (beta 2.2 branch)
Windows IPv6 cleanup - properly remove IPv6 routes and interface config
For all accesses to "struct route_list * rl", check first that rl is non-NULL Replace 32-bit-based add_in6_addr() implementation by an 8-bit based one
Platform cleanup for NetBSD
Move block for "stale-routes-check" config inside #ifdef P2MP_SERVER block
add missing break between "case IPv4" and "case IPv6"
bump tap driver version from 9.8 to 9.9
log error message and exit for "win32, tun mode, tap driver version 9.8"
work around inet_ntop/inet_pton problems for MSVC builds on WinXP
Fix build-up of duplicate IPv6 routes on reconnect.
Fix list-overrun checks in copy_route_[ipv6_]option_list()
add "print test titles" and "use sudo" functionality to t_client.rc
Platform cleanup for FreeBSD
Implement IPv6 interface config with non-/64 prefix lengths.
Fix RUN_SUDO functionality for t_client.sh
Document IPv6-related environment variables.
Platform cleanup for OpenBSD
Gisle Vanem (1):
Avoid re-defining uint32_t when using mingw compiler
Gustavo Zacarias (1):
Fix compile issues when using --enable-small and --disable-ssl/--disable-crypto
Heiko Hund (16):
add .gitignore to official repository remove function is_proto_tcp()
remove legacy code to query IE proxy information lowercase include header name in syshead.h define IN6_ARE_ADDR_EQUAL macro for WIN32 add --mark option to set SO_MARK sockopt Windows UTF-8 input/output
UTF-8 X.509 distinguished names
set Windows environment variables as UCS-2 handle Windows unicode paths
replace check for TARGET_WIN32 with WIN32 do not use mode_t on Windows
use the underscore version of stat on Windows make MSVC link against shell32 as well move variable declaration to top of function define access mode flag X_OK as 0 on Windows
Igor Novgorodov (1):
The code blocks enabled by ENABLE_CLIENT_CR depends on management
James Yonan (57):
Added "management-external-key" option.
Minor addition of logging info before and after execution of Windows net commands.
Misc fixes to r6708.
Added --x509-track option.
* added --management-up-down option to allow management interface to be notified of tunnel up/down events. Fixed minor compile issue triggered on builds where MANAGEMENT_DEF_AUTH is not enabled.
Implemented get_default_gateway_mac_addr for Mac OS X
Fixes to r6925.
Properly handle certificate serial numbers > 32 bits.
Added "client-nat" option for stateless, one-to-one NAT on the client side.
Renamed branch to reflect that it is no longer beta.
env_filter_match now includes the serial number of all certs
Fixed issue where a client might receive multiple push replies from a server
Fixed bug introduced in r7031 that might cause this error message:
Extended "client-kill" management interface command (server-side)
Client will now try to reconnect if no push reply received within handshake-window seconds.
Version 2.1.3n
Fixed compiling issues when using --disable-crypto
Added "management-external-key" option.
Misc fixes to r6708.
win/sign.py now accepts an optional tap-dir argument.
Added "auth-token" client directive
Added ./configure --enable-osxipconfig option for Mac OS X
Added more packet ID debug info at debug level 3 for debugging false positive packet replays.
Fixed bug that incorrectly placed stricter TCP packet replay rules on UDP sessions
Fixed bug in port-share that could cause port share process to crash
For Mac OSX, when DARWIN_USE_IPCONFIG is defined, retry ipconfig command on failure
Version 2.1.3t
Revert r7092 and r7151, i.e. remove --enable-osxipconfig configure option.
Added 'dir' flag to "crl-verify" (see man page for info).
Added new "extra-certs" and "verify-hash" options
Fixed compile issues on Windows.
Added --enable-lzo-stub configure option to build an OpenVPN client without LZO
Added optional journal directory argument to "port-share" directive
Reduce log verbosity at level 3, with a focus on removing excessive log verbosity generated by port-share activity. env_filter_match now includes the serial number of all certs in chain
Added support for static challenge/response protocol.
r7316 fixes.
Added redirect-gateway block-local flag, with support for Linux, Mac OS X
Extended x509-track to allow SHA1 certificate hash to be extracted
Added "management-query-remote" directive (client) to allow the management interface to override the "remote" directive. Version 2.1.5.
Fixed MSVC compile error related to r7408.
Redact "echo" directive strings from log, since these strings (going forward) could conceivably contain security-sensitive data. Modified sanitize_control_message to remove redacted data from control string rather than blotting it out with "_" chars. Changed CC_PRINT character class to allow UTF-8 chars.
Increased the --verb threshold for "PID_ERR replay" messages to 4 from 3.
Fixed issue where redirect-gateway block-local code was not correctly calculating...
CC_PRINT character class now allows any 8-bit character value >= 32.
"status" management interface command (version >= 2) will now include the username for each connected user. Minor fix to CC_PRINT char class
Fixed management interface bug where >FATAL notifications were not being output properly
Raised D_PID_DEBUG_LOW from level 3 to 4 to reduce replay error verbosity at level 3.
Added "memstats" option to maintain real-time operating stats in a memory-mapped file.
Fixed client issues with DHCP Router option extraction/deletion when using layer 2 with DHCP proxy:
Allow "tap-win32 dynamic <offset>" to be used in topology subnet mode.
Added support for "on-link" routes on Linux client
Jan Just Keijser (1):
Made some options connection-entry specific
Joe Patterson (1):
common_name passing in auth_pam plugin
JuanJo Ciarlante (40):
* rebased openvpn-2.1_rc1b.jjo.20061206.d.patch
* created getaddr6(), use it from resolve_remote()
* migrated all getaddrinfo() to getaddr6
* socket.c: use USE_PF_INET6 in switch constructs to actually toss them out,
* support --disable-ipv6 build properly:
* important fix for tcp6 reconnection was incorrectly creating a PF_INET socket
* added README.ipv6.txt
* fixed win32 non-ipv6 build
* ipv6 on win32 "milestone": 1st snapshot that passes all unittests
* document ipv6 milestone status
* doc update w/unittests results
* make possible to x-compile openvpn/win32 in Linux
* correctly setup hints.ai_socktype for getaddrinfo(), althought sorta hacky, see TODO.ipv6.
* renamed README.ipv6{.txt,}
* updated {README,TODO}.ipv6 from feedback at openvpn-devel mlist
* init.c: document the ENABLE_MANAGEMENT place to work on
* init.c: small in-doc tweaks
* fix multi-tcp crash (corrected assertion)
* TODO.ipv6 update
* socket.c: better buf logic in print_sockaddr_ex
* fixed segfault for undef address family in print_sockaddr_ex (thanks Marcel!)
* doc updates
* openbsd: no IFF_MULTICAST, #ifdef around it
* no new funcionality, just small cleanups
* (prototype) fix for supporting "redirect-gateway" for tunneled ipv4 over ipv6 endpoints
* polished redirect-gateway (ipv4 on ipv6 endpoints) support
* updated doc
* fix --disable-ipv6 build
* doc updates
* rebased to v2.1.1 release
* undo mroute.c changes related to ipv6 payload
* fix --multihome for ipv4
* fix --multihome for ipv6
* ipv6-0.4.14: fix xinetd usage
* ipv6-0.4.15: add --multihome support to xBSD
* ipv6-0.4.15b: rebase over openvpn-testing-master
* ipv6-0.4.16: fix mingw32 build
* make ipv6_payload compile under windowze
USE_PF_INET6 by default for v2.3
fix ipv6 compilation under macosx >= 1070 - v3
Markus Koetter (1):
Add extv3 X509 field support to --x509-username-field
Matthew L. Creech (1):
Fix 2.2.0 build failure when management interface disabled
Matthias Andree (1):
Skip rather than fail test in addressless FreeBSD jails.
Robert Fischer (8):
Update man page with info about --capath Update man page with info about --connect-timeout Added info about --show-proxy-settings Documented --x509-username-field option Documented --errors-to-stderr option Documented --push-peer-info option
Update man page with info about --remote-random-hostname Added man page entry for --management-client
Samuli Seppänen (19):
Add man page entry for --redirect-private
Change all CRLF linefeeds to LF linefeeds
Fix a bug in devcon source code handling
Removed Win2k from supported platforms list in INSTALL and win/openvpn.nsi Fixed copying of tapinstall.exe to dist/bin when using prebuilt TAP-drivers Fixed a bug with GUI icon deletion on upgrade from 2.2-RC or earlier Fix a build-ca issue on Windows
Add new openssl.cnf to easy-rsa/Windows
Updated "easy-rsa" for OpenSSL 1.0.0
Made domake-win builds to use easy-rsa/2.0/openssl-1.0.0.cnf Fixes to easy-rsa/2.0
Merged TODO.IPv6 with TODO.ipv6 and README.IPv6 with README.ipv6 Fixed a number of fatal build errors on Visual Studio 2008
Fix a Visual Studio 2008 build issue in socket.c
Additional Visual Studio 2008 build fixes to tun.c
Fixed a typo in win32.h that prevented building with Visual Studio Fixed a regression causing VS2008/Python build failure
Fix a Visual Studio 2008 build error in tun.c
Fix a Visual Studio 2008 build error in options.c
Simon Matter (1):
Fix issues with some older GCC compilers
Stefan Hellermann (2):
plugin.h: update prototype of plugin_call dummy in !ENABLE_PLUGIN case Fixed typo in plugin.h
chantra (1):
Clarify --tmp-dir option
smos (1):
Change the netsh.exe command from "add" to "set".
Quoted 8 lines
* Improved plug-in API (v3) which can more easily be expanded in the
future: includes support for direct access to X.509 certificate data in plug-ins
[...]
* One-to-one NAT to circumvent IP address conflicts between local and remote networks
Is there any help/doc/wiki where I could get more information/learn more about these new features?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 8 lines · Mr Dash Four
Quoted 6 lines
* Improved plug-in API (v3) which can more easily be expanded in the future: includes support for direct access to X.509 certificate data in plug-ins [...] * One-to-one NAT to circumvent IP address conflicts between local and remote networks
Is there any help/doc/wiki where I could get more information/learn more about these new features?
For the plug-in API ... look at openvpn-plugin.h ... look for openvpn_plugin_*_v3. Especially openvpn_plugin_open_v3() and openvpn_plugin_func_v3(). If fact, most of the openvpn-plugin.h is a pretty comprehensive reference for the plugin API. For a working example, look at plugin/examples/log_v3.c.
For the --client-nat ... look at the man new page.
<http://openvpn.net/index.php/manuals/523-openvpn-23.html>
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9NCO0ACgkQDC186MBRfrpXDQCghQoK0eW927kHqHtzri5KOdme p2IAn0WIwLjrv5rTwWtA7FcFzo5IKLbU
=zu4J
-----END PGP SIGNATURE-----
Hello Samuli,
Quoted 7 lines
The OpenVPN community project team is proud to release OpenVPN 2.3-alpha1. It can be downloaded from here:
<http://openvpn.net/index.php/open-source/downloads.html>
This release includes a few new major features:
Quoted 9 lines
* Complete IPv6 support, both transport and payload
* Optional PolarSSL support (build time configuration)
* Improved plug-in API (v3) which can more easily be expanded in the
future: includes support for direct access to X.509 certificate data in plug-ins
* Several improvements to the management interface
* One-to-one NAT to circumvent IP address conflicts between local and remote networks
* New OpenVPN-GUI
Are there any chances to get full non-admin support for windows in version 2.3 final?
I mean strict seperation between OpenVPN service running with local system privileges (can modify routes, etc.) and usermode part (command line, maybe GUI) that interacts with user (start/stop tunnel, ask for passphrase, pin for smartcard, etc.).
In companies that have security in mind it's impossible to allow
roadwarriors to connect via openvpn because they would need admin
privileges.
Give them only the privilege to start/stop the openvpn service didn't help because they can't supply credentials.
I'm complaining about this show stoppper for ~4 years :-(
I personally like openvpn very much and would like to deploy it for our users but I've to buy Cisco because the windows client is better.
greetings
Carsten
2012/2/28 Carsten Krüger <[email protected]...>:
Quoted 13 lines
Quoted 1 line
* New OpenVPN-GUI
Are there any chances to get full non-admin support for windows in version 2.3 final?
I mean strict seperation between OpenVPN service running with local system privileges (can modify routes, etc.) and usermode part (command line, maybe GUI) that interacts with user (start/stop tunnel, ask for passphrase, pin for smartcard, etc.).
In companies that have security in mind it's impossible to allow
roadwarriors to connect via openvpn because they would need admin
privileges.
Give them only the privilege to start/stop the openvpn service didn't help because they can't supply credentials.
Quoted 4 lines
I'm complaining about this show stoppper for ~4 years :-(
I personally like openvpn very much and would like to deploy it for our users but I've to buy Cisco because the windows client is better.
This is *THE* missing functionality in Windows environment. It seems that nobody interested in developing proper UI using management interface for Windows.
Same goes to proper smartcard support.
In Linux I am using OpenVPN using unprivileged user (completely!) the daemon runs under my own user, see[1].
Alon.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 17 lines · Carsten Krüger
Hello Samuli,
Quoted 7 lines
The OpenVPN community project team is proud to release OpenVPN 2.3-alpha1. It can be downloaded from here:
<http://openvpn.net/index.php/open-source/downloads.html>
This release includes a few new major features:
Quoted 7 lines
* Complete IPv6 support, both transport and payload * Optional PolarSSL support (build time configuration) * Improved plug-in API (v3) which can more easily be expanded in the future: includes support for direct access to X.509 certificate data in plug-ins * Several improvements to the management interface * One-to-one NAT to circumvent IP address conflicts between local and remote networks * New OpenVPN-GUI
Quoted 7 lines
Are there any chances to get full non-admin support for windows in version 2.3 final?
I mean strict seperation between OpenVPN service running with local system privileges (can modify routes, etc.) and usermode part (command line, maybe GUI) that interacts with user (start/stop tunnel, ask for passphrase, pin for smartcard, etc.).
This is definitely in the pipe for v2.3. I don't know how far Heiko have come on that since last time we discussed it on the #openvpn-devel channel, but he is really progressing very well here.
The solution we've ended up with is a OpenVPN service helper which runs some code parts with admin rights and the OpenVPN binary itself (openvpn.exe) will run completely unprivileged. Those two instances will communicate via named pipes, to set up the proper routes and other networking parameters.
Quoted 9 lines
In companies that have security in mind it's impossible to allow roadwarriors to connect via openvpn because they would need admin privileges. Give them only the privilege to start/stop the openvpn service didn't help because they can't supply credentials.
I'm complaining about this show stoppper for ~4 years :-(
I personally like openvpn very much and would like to deploy it for our users but I've to buy Cisco because the windows client is better.
The time of complaining will come to an end with 2.3 :) Heiko demonstrated his prototype at FOSDEM a few weeks ago. And it really looked very impressive. But there are some changes to the openvpn code base which needs to be applied, in addition to be synced with the GUI code base. So we decided to postpone this particular feature to a later alpha release - instead of postponing the first alpha release even more.
Just to give Heiko a bit better time to complete his code. But there
are so many requesting this feature, we really can't ignore it any more.
And Heiko is free to flog me if I've said and/or promised too much :)
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9NGL4ACgkQDC186MBRfrqyBQCePJd6rZ32WeDk09s9xQcNnTTh J6AAn2vDkemZkTZcou3Mctor47hi+y3W
=VlJA
-----END PGP SIGNATURE-----
Hello Alon,
ABL> This is *THE* missing functionality in Windows environment. ABL> It seems that nobody interested in developing proper UI using ABL> management interface for Windows.
ABL> Same goes to proper smartcard support.
Developing the UI (command line) would be trivial but to my knowledge (I'm reading the mailinglist for last 7 years) there is no management interface in openvpn that would allow this.
ABL> In Linux I am using OpenVPN using unprivileged user (completely!) the ABL> daemon runs under my own user, see[1].
With su this is trivial :-)
greetings
Carsten
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 18 lines · Alon Bar-Lev
2012/2/28 Carsten Krüger <[email protected]...>:
Quoted 17 lines
Quoted 1 line
* New OpenVPN-GUI
Are there any chances to get full non-admin support for windows in version 2.3 final?
I mean strict seperation between OpenVPN service running with local system privileges (can modify routes, etc.) and usermode part (command line, maybe GUI) that interacts with user (start/stop tunnel, ask for passphrase, pin for smartcard, etc.).
In companies that have security in mind it's impossible to allow roadwarriors to connect via openvpn because they would need admin privileges. Give them only the privilege to start/stop the openvpn service didn't help because they can't supply credentials.
I'm complaining about this show stoppper for ~4 years :-(
Quoted 7 lines
Quoted 3 lines
I personally like openvpn very much and would like to deploy it for our users but I've to buy Cisco because the windows client is better.
This is *THE* missing functionality in Windows environment. It seems that nobody interested in developing proper UI using management interface for Windows. Same goes to proper smartcard support.
I believe Jan Just Keijser and Heiko talked about this as well at FOSDEM, how to provide a better integrated PKCS#11 support in the Windows GUI. So I would expect this to progress too. And of course, the new GUI Heiko writes is using the management interface too, anything else would be plain stupid these days.
Even though, the new communication pipe between the "helper service" and openvpn.exe might gain more features with time, which might cover much of what the management interface provides today too. But we're _not_ trying to kill the management interface.
Quoted 2 lines
In Linux I am using OpenVPN using unprivileged user (completely!) the daemon runs under my own user, see[1].
This new communication pipe should also become available for the *nix platform too. Which again should make it easier to implement something which does not depend on a safe sudo setup too. Maybe even some integration against NetworkManager via DBus for the Linux platform?
I'm at least playing with the idea that OpenVPN itself shouldn't necessarily need to know much about how to configure the TUN/TAP device and routes for all different platforms. Rather write platform specific "service helpers" which does that job via the the communication pipe.
This would make the OpenVPN code base simpler and perhaps even easier to support more platforms, like Android - and maybe even iPhone and the new Windows Mobile?
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9NHBQACgkQDC186MBRfrrs8ACfT93nLXZ727QLP24FFs/C5hw0 CSMAn0ECng3+celO1axW27gzyNq6aEJw
=tGiN
-----END PGP SIGNATURE-----
Hello David,
Quoted 5 lines
The solution we've ended up with is a OpenVPN service helper which runs some code parts with admin rights and the OpenVPN binary itself (openvpn.exe) will run completely unprivileged. Those two instances will communicate via named pipes, to set up the proper routes and other networking parameters.
Why named pipes?
Why don't extend this
http://openvpn.net/index.php/open-source/documentation/miscellaneous/79-management-interface.html
that it works without admin privileges?
Quoted 10 lines
The time of complaining will come to an end with 2.3 :) Heiko demonstrated his prototype at FOSDEM a few weeks ago. And it really looked very impressive. But there are some changes to the openvpn code base which needs to be applied, in addition to be synced with the GUI code base. So we decided to postpone this particular feature to a later alpha release - instead of postponing the first alpha release even more.
Just to give Heiko a bit better time to complete his code. But there
are so many requesting this feature, we really can't ignore it any more.And Heiko is free to flog me if I've said and/or promised too much :)
great !!!!
greetings
Carsten
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 11 lines · Carsten Krüger
Hello Alon,
ABL> This is *THE* missing functionality in Windows environment. ABL> It seems that nobody interested in developing proper UI using ABL> management interface for Windows. ABL> Same goes to proper smartcard support.
Developing the UI (command line) would be trivial but to my knowledge (I'm reading the mailinglist for last 7 years) there is no management interface in openvpn that would allow this.
Have you seen this document? (management/management-notes.txt)
<http://openvpn.git.sourceforge.net/git/gitweb.cgi?p=openvpn/openvpn-testing.git;a=blob_plain;f=management/management-notes.txt;hb=master>
Especially look for all the 'pkcs11' prefixed calls, like pkcs11-id-count, pkcs11-id-get. Further James implemented a new feature for the management interface where you can pass the certificate this way too. Unfortunately, as Alon pointed out, this has not yet been documented well - except in the commit log.
So things are happening here too.
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9NHVwACgkQDC186MBRfrr/qgCdF2BT+TqE+h2x/Aqoin271bc0 wfAAn2va1LDzeRo9Km8eQqmYWlsvFJ4E
=dhKu
-----END PGP SIGNATURE-----
Quoted 9 lines · David Sommerseth
Quoted 3 lines
This is *THE* missing functionality in Windows environment. It seems that nobody interested in developing proper UI using management interface for Windows. Same goes to proper smartcard support.
I believe Jan Just Keijser and Heiko talked about this as well at FOSDEM, how to provide a better integrated PKCS#11 support in the Windows GUI. So I would expect this to progress too. And of course, the new GUI Heiko writes is using the management interface too, anything else would be plain stupid these days.
Right. I don't know what he is writing.
Anyway, the message I sent today regarding the external key is the root. Adding functionality to set the certificate via the management have the potential to resolve the whole issue.
Quoted 4 lines
Even though, the new communication pipe between the "helper service" and openvpn.exe might gain more features with time, which might cover much of what the management interface provides today too. But we're _not_ trying to kill the management interface.
There is no need for the helper service.
Nobody care if the openvpn daemon is running in privilege mode. The problem is the user interaction.
So I would have avoided to invest resources at the daemon side and invest resources at proper UI.
Quoted 7 lines
Quoted 2 lines
In Linux I am using OpenVPN using unprivileged user (completely!) the daemon runs under my own user, see[1].
This new communication pipe should also become available for the *nix platform too. Which again should make it easier to implement something which does not depend on a safe sudo setup too. Maybe even some integration against NetworkManager via DBus for the Linux platform?
dbus is way too fragile, it is good for desktop... not for core components. And... requiring network manager (large piece of software) only for iproute2 replacement is redundant.
The management interface is great.
Again, the main problem is not the daemon but the user.
I went one step farther and wrapped the iproute2... this is optional.
Quoted 8 lines
I'm at least playing with the idea that OpenVPN itself shouldn't necessarily need to know much about how to configure the TUN/TAP device and routes for all different platforms. Rather write platform specific "service helpers" which does that job via the the communication pipe.
This would make the OpenVPN code base simpler and perhaps even easier to support more platforms, like Android - and maybe even iPhone and the new Windows Mobile?
Well, this can be done now, just wrap the iproute with suid program to do whatever
you like, this is the wrapper. The tap device can be accessed using non-privileged
user, so all that is left is the iproute2 delegation.
This does not require special code or effort.
Bottom line: the management interface is great. One missing functionality is setting certificate.
Effort should be invested in proper UI to leverage the management interface. Running openvpn *DAEMON* as completely unprivileged is 2nd priority. On Linux it can be done by simply wrapping the iproute2 executable, using sudo/dbus whatever to achieve same functionality.
On Windows a similar solution may be provided.
Alon.
2012/2/28 David Sommerseth <[email protected]...>:
Quoted 16 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 11 lines · Carsten Krüger
Hello Alon,
ABL> This is *THE* missing functionality in Windows environment. ABL> It seems that nobody interested in developing proper UI using ABL> management interface for Windows. ABL> Same goes to proper smartcard support.
Developing the UI (command line) would be trivial but to my knowledge (I'm reading the mailinglist for last 7 years) there is no management interface in openvpn that would allow this.
Quoted 8 lines
Have you seen this document? (management/management-notes.txt)
<http://openvpn.git.sourceforge.net/git/gitweb.cgi?p=openvpn/openvpn-testing.git;a=blob_plain;f=management/management-notes.txt;hb=master>Especially look for all the 'pkcs11' prefixed calls, like pkcs11-id-count, pkcs11-id-get. Further James implemented a new feature for the management interface where you can pass the certificate this way too. Unfortunately, as Alon pointed out, this has not yet been documented well - except in the commit log.
These features are mine. I wrote these.... and the whole PKCS#11 layer, and many other... like the ability to wrap the iproute2.
They are good, but not great.
Why? Because the openvpn daemon it-self loads the PKCS#11 provider. This is a security violation.
The PKCS#11 provider should be loaded by the UI, so the daemon cannot interact with it at will.
It also makes the security openvpn weaker, as foreign library is loaded into the openvpn process.
And at Windows 7+ there is a problem, a service cannot access the smartcard readers of the users.
And... even if it can (XP), you cannot use smartcard in remote desktop session.
Alon.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 8 lines · Carsten Krüger
Hello David,
Quoted 5 lines
The solution we've ended up with is a OpenVPN service helper which runs some code parts with admin rights and the OpenVPN binary itself (openvpn.exe) will run completely unprivileged. Those two instances will communicate via named pipes, to set up the proper routes and other networking parameters.
Quoted 6 lines
Why named pipes?
Why don't extend this
http://openvpn.net/index.php/open-source/documentation/miscellaneous/79-management-interface.html
that it works without admin privileges?
Heiko can probably give a much better answer, but if I remember right, the argument was this: Think of a multi-user setup (like a Terminal Server), the management interface will be accessible for all users on that server.
Named pipes will be available only for that single user, so the attack vector in an abuse scenario, compared to the management interface, is more limited. And considering this pipe will do privileged network setup, it should be restricted as much as possible. I don't recall now if there was even more restrictions you could apply to these pipes as well.
And how this is implemented, the OpenVPN Service will be started automatically. The GUI contacts the Service and the service starts the OpenVPN process with the privileges of the GUI user (IIRC, it was some neat Windows functions which allows to create processes with privileges based upon the user credentials of the other side of the named pipe). And again, the only code pieces in the Service are those related to network configuration. The rest of the Service code runs unprivileged.
This service should be able to (for now only in theory; it has not been tested yet) handle more users simultaneously.
However, the management interface will be used in addition too, at least in the very beginning, where the logging is transferred back to the GUI and so on. I don't recall now all the GUI would do via this interface.
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9NIhAACgkQDC186MBRfrpPJwCfYlbHHIGZtb8TQj2v7ZJKCcxw NFEAmQGuOczRPZzMswO5lDxJEdgtEDs+
=L5DL
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 21 lines · Alon Bar-Lev
2012/2/28 David Sommerseth <[email protected]...>:
Quoted 20 lines
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Quoted 11 lines · Carsten Krüger
Hello Alon,
ABL> This is *THE* missing functionality in Windows environment. ABL> It seems that nobody interested in developing proper UI using ABL> management interface for Windows. ABL> Same goes to proper smartcard support.
Developing the UI (command line) would be trivial but to my knowledge (I'm reading the mailinglist for last 7 years) there is no management interface in openvpn that would allow this.
Have you seen this document? (
management/management-notes.txt)
<http://openvpn.git.sourceforge.net/git/gitweb.cgi?p=openvpn/openvpn-testing.git;a=blob_plain;f=management/management-notes.txt;hb=master>
Especially look for all the 'pkcs11' prefixed calls, like
Quoted 11 lines
Quoted 4 lines
pkcs11-id-count, pkcs11-id-get. Further James implemented a new feature for the management interface where you can pass the certificate this way too. Unfortunately, as Alon pointed out, this has not yet been documented well - except in the commit log.
These features are mine. I wrote these.... and the whole PKCS#11 layer, and many other... like the ability to wrap the iproute2. They are good, but not great. Why? Because the openvpn daemon it-self loads the PKCS#11 provider. This is a security violation. The PKCS#11 provider should be loaded by the UI, so the daemon cannot interact with it at will.
Agreed! And I remember this was part of the discussions at FOSDEM. How should the GUI communicate in regards to the PKCS#11 layer, and how to provide the proper information towards the core OpenVPN process. We were not aware of the --management-external-key at that point, but I think this is the natural way to look now.
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9NIykACgkQDC186MBRfrqdvQCgpOTCxegtLzCPaQ6eOnxfuCOA v58AnA2d/xD1/zhXZRj/SWqplv/t//mV
=cDMr
-----END PGP SIGNATURE-----
Hello David,
Quoted 2 lines
Have you seen this document? (
management/management-notes.txt)
<http://openvpn.git.sourceforge.net/git/gitweb.cgi?p=openvpn/openvpn-testing.git;a=blob_plain;f=management/management-notes.txt;hb=master>
No.
I connected to management interface and got this:
Quoted 28 lines
Management Interface for OpenVPN 2.2.2 Win32-MSVC++ [SSL] [LZO2] [PKCS11] built on Dec 15 2011 Commands:
auth-retry t : Auth failure retry mode (none,interact,nointeract).
bytecount n : Show bytes in/out, update every n secs (0=off).echo [on|off] [N|all] : Like log, but only show messages in echo buffer. exit|quit : Close management session. forget-passwords : Forget passwords entered so far. help : Print this message. hold [on|off|release] : Set/show hold flag to on/off state, or release current hold and start tunnel. kill cn : Kill the client instance(s) having common name cn. kill IP:port : Kill the client instance connecting from IP:port. load-stats : Show global server load stats. log [on|off] [N|all] : Turn on/off realtime log display+ show last N lines or 'all' for entire history.
mute [n] : Set log mute level to n, or show level if n is absent.
needok type action : Enter confirmation for NEED-OK request of 'type',
where action = 'ok' or 'cancel'.
needstr type action : Enter confirmation for NEED-STR request of 'type',
where action is reply string.
net : (Windows only) Show network info and routing table.
password type p : Enter password p for a queried OpenVPN password.
pid : Show process ID of the current OpenVPN process.
pkcs11-id-count : Get number of available PKCS#11 identities.
pkcs11-id-get index : Get PKCS#11 identity at index.
signal s : Send signal s to daemon,
s = SIGHUP|SIGTERM|SIGUSR1|SIGUSR2.
state [on|off] [N|all] : Like log, but show state history.
Quoted 8 lines
status [n] : Show current daemon status info using format #n. test n : Produce n lines of output for testing/debugging. username type u : Enter username u for a queried OpenVPN username. verb [n] : Set log verbosity level to n, or show if n is absent. version : Show current version number.http-proxy-fallback <server> <port> [flags] : Enter dynamic HTTP proxy fallback info. http-proxy-fallback-disable : Disable HTTP proxy fallback.
END
I don't see a command to connect openvpn to a host.
I'd like to install openvpn on windows, install it as a service
-----------mini_client.ovpn----------------
management localhost 7505
remote myremote.mydomain
dev tun
ifconfig 10.8.0.2 10.8.0.1
secret static.key
-----------mini_client.ovpn----------------
and than telnet to localhost 7505 and send something like "connect mini_client"
or if it's more complex
-----------complex_client.ovpn----------------
management localhost 7505
remote myremote.mydomain
dev tun
client
auth-user-pass
ca ca.pem
-----------complex_client.ovpn----------------
telnet localhost 7505
connect complex_client
u carsten
p test
greetings
Carsten
Hi,
Quoted 1 line · Carsten Krüger
Are there any chances to get full non-admin support for windows in version 2.3 final?
Work is going on on full privilege separation for windows.
It's not done yet, so we'll see whether it will make 2.3 (which was the initial plan) or 2.4.
I'll let the author comment on more details if he wants to :-) (thus not naming anyone - it's not me, though).
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...Hello Alon,
Quoted 4 lines
This is *THE* missing functionality in Windows environment. It seems that nobody interested in developing proper UI using management interface for Windows.
Same goes to proper smartcard support.
I found that openvpn management interface works as I'd like it.
Add the following lines to client.ovpn
--------------------------------
management localhost 1000
management-query-passwords
auth-retry interact
management-hold
--------------------------------
and start the service.
Use putty to connect to localhost port 1000, format RAW
|>INFO:OpenVPN Management Interface Version 1 -- type 'help' for more info |>HOLD:Waiting for hold release |hold release |SUCCESS: hold release succeeded |>PASSWORD:Need 'Auth' username/password |username Auth here_comes_my_username |SUCCESS: 'Auth' username entered, but not yet verified |password Auth here_comes_my_mypassword |SUCCESS: 'Auth' password entered, but not yet verified
et voila openvpn connects.
I'd like to cry, how long did this works?
I found this in changelog:
2004.11.28 -- Version 2.0-beta18
* Added management interface. See new --management-* options or the full management interface documentation in management/management-notes.txt in the tarball.
greetings
Carsten
Hello,
Quoted 1 line
et voila openvpn connects.
Use this to disconnect:
|forget-passwords |SUCCESS: Passwords were forgotten |signal SIGUSR1 |SUCCESS: signal SIGUSR1 thrown |>HOLD:Waiting for hold release
greetings
Carsten
2012/2/28 Carsten Krüger <[email protected]...>:
Quoted 32 lines
Hello Alon,
Quoted 4 lines
This is *THE* missing functionality in Windows environment. It seems that nobody interested in developing proper UI using management interface for Windows.
Same goes to proper smartcard support.I found that openvpn management interface works as I'd like it.
Add the following lines to client.ovpn
--------------------------------
management localhost 1000
management-query-passwords
auth-retry interact
management-hold
--------------------------------
and start the service.Use putty to connect to localhost port 1000, format RAW
|>INFO:OpenVPN Management Interface Version 1 -- type 'help' for more info |>HOLD:Waiting for hold release |hold release |SUCCESS: hold release succeeded |>PASSWORD:Need 'Auth' username/password |username Auth here_comes_my_username |SUCCESS: 'Auth' username entered, but not yet verified |password Auth here_comes_my_mypassword |SUCCESS: 'Auth' password entered, but not yet verifiedet voila openvpn connects.
Quoted 9 lines
I'd like to cry, how long did this works?
I found this in changelog:
2004.11.28 -- Version 2.0-beta18* Added management interface. See new --management-* options or the full management interface documentation in
management/management-notes.txtin the tarball.
Right. This is long existing feature, just that in Windows people expect to work using UI...
Years back I wrote a simple .net to do to this...
Alon.
Hello David,
DS> Heiko can probably give a much better answer, but if I remember right, DS> the argument was this: Think of a multi-user setup (like a Terminal DS> Server), the management interface will be accessible for all users on DS> that server.
a) Who an earth allows users on a terminal server to create VPN-sessions? What happens if one of the sessions use redirect gateway?
All users are redirected?
b) you can set a password for management interface
I don't think that this is a valid point.
Privilege seperation in openvnp deamon is nice, but is a complete different thing than management interface access.
I try to compare it with apache.
Apache on linux need root rights to bind to port below 1024 but it didn't need to have root privilege to serve a page.
So it's a good idea to use root rights to bind to port 80 and than serve all pages without root rights.
OpenVPN need root rights on linux/administrator rights on windows (to be more precise network operator rights) to modify routing tables.
In openvpn case it should be something like this:
openvpnserv.exe running as a service, has no privileges and opens management interface
openvpnhelpserv.exe running as a service has network operator rights (no need for local system ...)
openvpnserv and openvpnhelpserv could communicate via pipe.
openvpn-management client (could be a perl script) connects to management interface of openvpnserv.exe to start/stop a tunnel and supply secrets.
DS> And how this is implemented, the OpenVPN Service will be started DS> automatically. The GUI contacts the Service and the service starts the DS> OpenVPN process with the privileges of the GUI user (IIRC, it was some DS> neat Windows functions which allows to create processes with privileges DS> based upon the user credentials of the other side of the named pipe).
The sounds very bad.
The service shouldn't create processes in the name of the user.
DS> This service should be able to (for now only in theory; it has not been DS> tested yet) handle more users simultaneously.
Pretty useless, see above
DS> However, the management interface will be used in addition too, at least DS> in the very beginning, where the logging is transferred back to the GUI DS> and so on. I don't recall now all the GUI would do via this interface.
Sounds very weird.
greetings
Carsten
Hello Alon,
Quoted 2 lines
Right. This is long existing feature, just that in Windows people expect to work using UI...
I don't expect a UI but usefull documentation. management-notes.txt isn't even bundled with windows binaries :-(
I use openvpn since version 1 on windows and wasn't aware that the management interface is working.
Why isn't there at least an example of how to use it?
For example Astaro has a windows client that seems to be not aware of the management interface.
The guy who wrote http://openvpn.jowisoftware.de/ seems to don't understand the management interface, too.
He uses the management interface for communication but than spawns openvpn.exe itself instead of useing the windows service.
I would have deployed openvpn to ~300 employees, if users didn't need admin privileges.
Quoted 1 line
Years back I wrote a simple .net to do to this...
Could you please share?
I found that openvpn.exe is extremly unstable on non perfectly friendly behaving client ...
Now I use the Non-Sucking Service Manager ( http://nssm.cc/ ) instead of openvpnserv.exe to spawn openvpn.exe
It restarts openvpn.exe automatically if it's crashed.
Why is it possible to send "signal SIGTERM" to openvpn.exe via management interface?
A client could "crash" openvpn on intention.
Why isn't a clear connect/disconnect semantic included? "hold" and "signal SIGUSR1" ???!!?!?????
@openvpn officials:
If non-admin openvpn is working on windows I could have bought OpenVPN Access Server instead of Cisco. I wouldn't like to know how much money OpenVPN Technologies, Inc lost because of the lack of good documentation.
Please please please release immediately a minimal command line client (connect, disconnect, ask for username&password) with example server.conf & client.conf People have to be aware that it's working!
greetings
Carsten
2012/2/29 Carsten Krüger <[email protected]...>:
Quoted 5 lines
Quoted 1 line
Years back I wrote a simple .net to do to this...
Could you please share?
I found that openvpn.exe is extremly unstable on non perfectly friendly behaving client ...
I use [1], a simple perl/kde UI for Linux.
I deleted the .net as I did not maintain it, but it should be simple for you to convert, or simply run the perl, and write kdialog replacement.
Alon.
Quoted 4 lines · Carsten Krüger
I found that openvpn.exe is extremly unstable on non perfectly friendly behaving client ... Now I use the Non-Sucking Service Manager ( http://nssm.cc/ ) instead of openvpnserv.exe to spawn openvpn.exe It restarts openvpn.exe automatically if it's crashed.
Good point. I reported this in Mar last year ("bugs with openvpnserv.exe") and it seems it was acknowledged as an issue. Is that fixed now? Would be great to see openvpn.exe restarting on error - without having to resort to srvany or nssm ;-)
Thanks
Signature · 6 lines
Cheers Jason Haar Information Security Manager, Trimble Navigation Ltd. Phone: +1 408 481 8171 PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1
Quoted 11 lines
Quoted 8 lines
* Improved plug-in API (v3) which can more easily be expanded in the
future: includes support for direct access to X.509 certificate data in plug-ins
[...]
* One-to-one NAT to circumvent IP address conflicts between local and remote networksIs there any help/doc/wiki where I could get more information/learn more about these new features?
The one-to-one NAT feature seems to be described on the man-page in the "--client-nat" section. The new management features are James' handywork, so they're probably described here:
<http://openvpn.net/index.php/open-source/documentation/miscellaneous/79-management-interface.html>
If not, then maybe on the man-page, or not at all.
Signature · 5 lines
Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock
Quoted 10 lines · On Tuesday 28 February 2012 18:38:57 Alon Bar-Lev wrote:
Quoted 4 lines
Even though, the new communication pipe between the "helper service" and openvpn.exe might gain more features with time, which might cover much of what the management interface provides today too. But we're _not_ trying to kill the management interface.
There is no need for the helper service.
Nobody care if the openvpn daemon is running in privilege mode. The problem is the user interaction.
So I would have avoided to invest resources at the daemon side and invest resources at proper UI.
The idea to have the service do the privileged operations instead of just starting openvpn as "Local System" (or whatever) came from the fear of privilege escalation in the scripts that are run by openvpn. So, at least I care that it's not running in privilege mode. Your point is invalid. =P
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Quoted 8 lines · On Tuesday 28 February 2012 20:34:18 Carsten Krüger wrote:
Add the following lines to client.ovpn
--------------------------------
management localhost 1000
management-query-passwords
auth-retry interact
management-hold
--------------------------------
and start the service.
That's pretty much what the GUI is using at the moment.
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Quoted 16 lines · Heiko Hund
Quoted 7 lines · On Tuesday 28 February 2012 18:38:57 Alon Bar-Lev wrote:
Quoted 6 lines
Even though, the new communication pipe between the "helper service" and
openvpn.exe might gain more features with time, which might cover much
of what the management interface provides today too. But we're _not_ trying to kill the management interface.Quoted 6 lines
There is no need for the helper service.
Nobody care if the openvpn daemon is running in privilege mode. The problem is the user interaction.
So I would have avoided to invest resources at the daemon side and invest
resources at proper UI.
Quoted 6 lines
The idea to have the service do the privileged operations instead of just starting openvpn as "Local System" (or whatever) came from the fear of privilege escalation in the scripts that are run by openvpn. So, at least I
care that it's not running in privilege mode. Your point is invalid. =P
It all a matter of priorities and the ability to execute each. Implementing proper UI is the least effort and greatest benefit.
That's said,
Nobody claims the fact that openvpn runs the scripts is OK. Proper/simple solution would be to deligate script execution via the management interface, leaving the openvpn to be small and secured.
Hence, there are several possible solutions for the same problem, while the monolithic
approach suffers from disadvantages.
Alon.
Quoted 2 lines · On Tuesday 28 February 2012 22:47:56 Carsten Krüger wrote:
For example Astaro has a windows client that seems to be not aware of the management interface.
That's untrue for a while now. We ship the new GUI using the mgmt itf since ASG 7.505 which was released in May 2010.
Quoted 4 lines
@openvpn officials:
If non-admin openvpn is working on windows I could have bought OpenVPN Access Server instead of Cisco. I wouldn't like to know how much money OpenVPN Technologies, Inc lost because of the lack of good documentation.
[Advertisement] Maybe you want to take a look at UTM9, beta starts tomorrow.
Regards
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Hello Heiko,
Quoted 3 lines
The idea to have the service do the privileged operations instead of just starting openvpn as "Local System" (or whatever) came from the fear of privilege escalation in the scripts that are run by openvpn.
Scripting is a point, but as long as the administrator installs openvpn + config + script to a folder that is non writeable for users there should be no problem.
Quoted 8 lines · On Tuesday 28 February 2012 722:09:13 Carsten Krüger wrote:
DS> Heiko can probably give a much better answer, but if I remember right, DS> the argument was this: Think of a multi-user setup (like a Terminal DS> Server), the management interface will be accessible for all users on DS> that server.
a) Who an earth allows users on a terminal server to create VPN-sessions? What happens if one of the sessions use redirect gateway?
All users are redirected?
That was actually an open question. I don't know if TS manages per session routing tables and haven't tried. However it was only an example and thus didn't have to make any practical sense. =)
Quoted 1 line
I don't think that this is a valid point.
The thing is that you need a second communication channel for requesting privileged operations. The management interface won't do, because the GUI (hopefully) runs with an unprivileged token. So the distinction between both is:
* mgmt itf for interactive communication with the user
* privilege channel for requesting operations that require elevation
Quoted 2 lines
Privilege seperation in openvnp deamon is nice, but is a complete different thing than management interface access.
It is, you got it right.
Quoted 11 lines
In openvpn case it should be something like this:
openvpnserv.exe running as a service, has no privileges and opens management interface
openvpnhelpserv.exe running as a service has network operator rights (no need for local system ...)openvpnserv and openvpnhelpserv could communicate via pipe.
openvpn-management client (could be a perl script) connects to management interface of openvpnserv.exe to start/stop a tunnel and supply secrets.
You forgot the GUI in this picture. If the service is connected to the management interface the GUI can't connect anymore. It need to to get things done, though.
Quoted 8 lines
DS> And how this is implemented, the OpenVPN Service will be started DS> automatically. The GUI contacts the Service and the service starts the DS> OpenVPN process with the privileges of the GUI user (IIRC, it was some DS> neat Windows functions which allows to create processes with privileges DS> based upon the user credentials of the other side of the named pipe).
The sounds very bad.
The service shouldn't create processes in the name of the user.
Interesting, could you elaborate?
Quoted 4 lines
DS> This service should be able to (for now only in theory; it has not been DS> tested yet) handle more users simultaneously.
Pretty useless, see above
Not users, really. More like session. So you can connect to different server simultaneously. Of course this could be used by two different users at the same time or different impersonations in the same session, while still running ovpn with the credentials of the entity who started openvpn. So the point isn't really that many user can connect, but that the running sessions will be isolated from each other by the service.
Regards
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Hello Heiko,
Quoted 2 lines
That's untrue for a while now. We ship the new GUI using the mgmt itf since ASG 7.505 which was released in May 2010.
Great to hear!
I'm in medicine business it needs long time to propagate new versions. I'm only useing astaro to connect to a lab.
Quoted 1 line
[Advertisement] Maybe you want to take a look at UTM9, beta starts tomorrow.
Definitely!
Is Beta available to non customers?
greetings
Carsten
Quoted 5 lines · On Wednesday 29 February 2012 11:05:36 Carsten Krüger wrote:
Quoted 2 lines
[Advertisement] Maybe you want to take a look at UTM9, beta starts tomorrow.
Definitely!
Is Beta available to non customers?
Yes, it will be announced at http://astaro.org in the "Beta Versions" section and you can get special licenses for the beta with limited lifetime there.
This is getting too off topic now. Actually it's more an abuse of this list. So, please send private mail to me directly if further questions remain.
Regards
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Hello Heiko,
Quoted 2 lines
However it was only an example and thus
didn't have to make any practical sense. =)
:-)
Quoted 2 lines
You forgot the GUI in this picture. If the service is connected to the management interface the GUI can't connect anymore.
?
If I understand you correctly it works this way:
openvpnserv.exe spawns openvpn.exe
openvpnhelperserv.exe spawns openvpnhelper.exe
openvpn.exe runs with no privileges at all (local service) and openvpnhelper.exe with priviliges to modify routing (network configuration operator)
openvpn.exe communicates via pipe to openvpnhelper.exe, for example "please add a route"
the user client (for example perl script) uses management interface to connect to openvpn.exe (please establish connection, credentials are xyz)
Quoted 1 line
Interesting, could you elaborate?
The process needs to much rights.
AFAIK openvpnhelper.exe would than need SE_ASSIGNPRIMARYTOKEN_NAME Why should it have so much power?
Can you explain the architeture in more detail?
Do you need it for smartcard auth? I don't know the details of Smartcard API ...
Quoted 2 lines
Not users, really. More like session. So you can connect to different server simultaneously.
Yeah, that's a point.
But I think it would only need management commands like "connect vpn session 1" "disconnect vpn session 1", "supply credentials for sessions 1". Credentials could be more than username/password, for example tls key or smartcard "connection".
Quoted 5 lines
Of course this could be used by two different users at the
same time or different impersonations in the same session, while still running ovpn with the credentials of the entity who started openvpn. So the point isn't really that many user can connect, but that the running sessions will be isolated from each other by the service.
hmm, I'm unsure if you would win something.
If the network communicating process is compromised (exploited from internet) than it could get all the credentials via normal interface from processes that holds them.
greetings
Carsten
Hello Alon,
Quoted 4 lines
I use [1], a simple perl/kde UI for Linux.
I deleted the .net as I did not maintain it, but it should be simple for you to convert, or simply run the perl, and write kdialog replacement.
perfect, the gnome variant works with windows, too.
http://www.placella.com/software/zenity/
It only has to be modified minimal that it supports method "Auth" instead of "Private key"
greetings
Carsten
Quoted 8 lines · On Wednesday 29 February 2012 11:38:17 Carsten Krüger wrote:
Quoted 2 lines
You forgot the GUI in this picture. If the service is connected to the management interface the GUI can't connect anymore.
?
If I understand you correctly it works this way:openvpnserv.exe spawns openvpn.exe
openvpnhelperserv.exe spawns openvpnhelper.exe
It's completely different. =) There will be a new service, I called it interactive service. The GUI/client connects to a named pipe of that service. It passes the working directory, command line options and stdin input for openpvn to the service. The service impersonates the client, creates another named pipe and starts openvpn. Besides the stuff from the GUI it also passes to client end of the created pipe to openvpn. The GUI may now connect the the management interface. If openvpn needs to perform a privileged operation it request it through the named pipe that was passed by the interactive service. There's only a limited and well defined set of privileged operations that are serviced through the pipe. Currently only setting of IPv4 and IPv6 routes, but that will be extended to whatever makes sense e.g. ARP table flush is the next thing that will come.
Quoted 8 lines
Quoted 2 lines
Not users, really. More like session. So you can connect to different server simultaneously.
Yeah, that's a point.
But I think it would only need management commands like "connect vpn session 1" "disconnect vpn session 1", "supply credentials for sessions 1". Credentials could be more than username/password, for example tls key or smartcard "connection".
Again, the management interface is for user execution level related queries like give me you password, give me your certificate, give me your proxy settings (most of this is not implemented yet), while the privileged channel is for things that the user may not do. This is specifically tailored for the situation on Windows with the GUI. Don't know if it's usable by other system as much, i.e. NetworkManager is the mgmt client and root at the same time, however no ones holding them back to also pass a unix socket to openvpn and set the openvpn routes (etc.) directly instead of performing some sudo wrapper script magic or whatever is currently used. Again, this can be extended to the point where all privileged operation are performed through the unix socket. Binding to the listen socket may be an exception to that if the port is low or can one pass FDs through unix sockets?
Quoted 11 lines
Quoted 6 lines
Of course this could be used by two different users at the
same time or different impersonations in the same session, while still running ovpn with the credentials of the entity who started openvpn. So the point isn't really that many user can connect, but that the running sessions will be isolated from each other by the service.
hmm, I'm unsure if you would win something.
If the network communicating process is compromised (exploited from internet) than it could get all the credentials via normal interface from processes that holds them.
The network communication process is openvpn and it has the rights as the user that started it. If that user has enough privileges to set it's primary token you have a very unfortunate setup, securitywise.
Regards
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
2012/2/29 Heiko Hund <[email protected]...>
Quoted 24 lines · On Wednesday 29 February 2012 11:38:17 Carsten Krüger wrote:
Quoted 8 lines
Quoted 2 lines
You forgot the GUI in this picture. If the service is connected to the management interface the GUI can't connect anymore.
?
If I understand you correctly it works this way:openvpnserv.exe spawns openvpn.exe
openvpnhelperserv.exe spawns openvpnhelper.exeIt's completely different. =) There will be a new service, I called it interactive service. The GUI/client connects to a named pipe of that service.
It passes the working directory, command line options and stdin input for openpvn to the service. The service impersonates the client, creates another
named pipe and starts openvpn. Besides the stuff from the GUI it also passes
to client end of the created pipe to openvpn. The GUI may now connect the the
management interface. If openvpn needs to perform a privileged operation it
request it through the named pipe that was passed by the interactive
Quoted 8 lines
service.
There's only a limited and well defined set of privileged operations that are
serviced through the pipe. Currently only setting of IPv4 and IPv6 routes, but
that will be extended to whatever makes sense e.g. ARP table flush is the next
thing that will come.
This is way too complex solution for a simple problem.
A proper design and discussion should take place before advancing in this route.
Alon.
Quoted 4 lines · On Wednesday 29 February 2012 12:40:45 Alon Bar-Lev wrote:
2012/2/29 Heiko Hund <[email protected]...>
This is way too complex solution for a simple problem.
A proper design and discussion should take place before advancing in this route.
And this was a way too simple explanation on why you think it is too complex. Please elaborate on where you see reducible complexity.
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Quoted 3 lines
This is way too complex solution for a simple problem.
A proper design and discussion should take place before advancing in this route.
ACK
greetings
Carsten
Quoted 8 lines · Heiko Hund
Quoted 4 lines · On Wednesday 29 February 2012 12:40:45 Alon Bar-Lev wrote:
2012/2/29 Heiko Hund <[email protected]...>
This is way too complex solution for a simple problem.
A proper design and discussion should take place before advancing in this route.And this was a way too simple explanation on why you think it is too complex. Please elaborate on where you see reducible complexity.
What I wrote is simple.
In order to push a project in coherent direction, a proper design discussion stage
should be done.
The roadmap of the project especially at the Windows platform should be reviewed as a whole and not feature by feature (commit-by-commit) based.
If after proper discussion the above solution will be accepted - well, that's great.
Without proper threat assessment, usability assessment, resource assessment, there will be difficult to provide a solution and prioritize it.
Alon.
Hi,
Quoted 1 line · Heiko Hund
or can one pass FDs through unix sockets?
On most modern unixes, you can.
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...Quoted 1 line · On Wednesday 29 February 2012 12:54:18 Alon Bar-Lev wrote:
What I wrote is simple.
Wrote where? In this thread or C code that tackles the issue? I'm confused.
Quoted 2 lines
In order to push a project in coherent direction, a proper design discussion stage should be done.
Yeah, you missed that one obviously. If you want to be part of it you should actually take an active part in the IRC meetings and not complain so much, really.
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Quoted 5 lines · On Wednesday 29 February 2012 12:51:41 Carsten Krüger wrote:
Quoted 3 lines
This is way too complex solution for a simple problem.
A proper design and discussion should take place before advancing in this route.ACK
Same here, please share your thoughts on how to reduce complexity.
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Quoted 11 lines · Heiko Hund
Quoted 1 line · On Wednesday 29 February 2012 12:54:18 Alon Bar-Lev wrote:
What I wrote is simple.
Wrote where? In this thread or C code that tackles the issue? I'm confused.
Quoted 2 lines
In order to push a project in coherent direction, a proper design discussion stage should be done.
Yeah, you missed that one obviously. If you want to be part of it you should actually take an active part in the IRC meetings and not complain so much, really.
IRC is synchronous way of communication, it is no suitable for distributed volunteer team.
Proper discussion of design is done differently, perfecting a design document and interface specifications.
If there was such process, it does not mean that all participates at that time had
the skills to evaluate the suggested solution.
Anyway, if there was a design process, I will appreciate if you can send a design document, as this is not a small/niche feature, it will effect the majority
of Windows users.
Alon
Quoted 11 lines · On Wednesday 29 February 2012 13:15:16 Alon Bar-Lev wrote:
IRC is synchronous way of communication, it is no suitable for distributed volunteer team.
Proper discussion of design is done differently, perfecting a design document and interface specifications.If there was such process, it does not mean that all participates at that time had the skills to evaluate the suggested solution.
Anyway, if there was a design process, I will appreciate if you can send a design document, as this is not a small/niche feature, it will effect the majority of Windows users.
Yeah, like the design project phase for the build system revolution. Get a grip, Alon. Things might work this way in a corporation, this isn't one it's an open source project. If you don't like what you see, please speak your mind on how to improve concrete things and stop pulling up discussions into a meta layer. This leads to no solutions but only more discussions about stuff that doesn't get any things done. I hope you got my point.
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Quoted 10 lines · Heiko Hund
Quoted 3 lines
Anyway, if there was a design process, I will appreciate if you can send a design document, as this is not a small/niche feature, it will effect the majority of Windows users.
Yeah, like the design project phase for the build system revolution. Get a grip, Alon. Things might work this way in a corporation, this isn't one it's an open source project. If you don't like what you see, please speak your mind on how to improve concrete things and stop pulling up discussions into a meta layer. This leads to no solutions but only more discussions about stuff that doesn't get any things done. I hope you got my point.
There is a difference, the build system does not effect users. If is for developers, to reduce maintenance costs.
I have been asked to help, and gladly invested much time in this. If you have any comment/suggestion I will be gladly accept these as well.
I don't understand you attitude, I am not trying to take anything from you, and I don't think you can find anything in my record that had negative impact on this (or any other) project. And I do know one or two things in security and networking.
I only recommend the OpenVPN project manager to hold with this solution, and manage a proper design process, there are people here who can help, if the process is managed correctly.
Alon.
Quoted 4 lines · On Wednesday 29 February 2012 13:45:49 Alon Bar-Lev wrote:
I don't understand you attitude, I am not trying to take anything from you, and I don't think you can find anything in my record that had negative impact on this (or any other) project. And I do know one or two things in security and networking.
I'm just trying to get a statement from you about the spotted complexity and how it can be reduced, but somehow there's still nothing coming from your direction.
Quoted 3 lines
I only recommend the OpenVPN project manager to hold with this solution, and manage a proper design process, there are people here who can help, if the process is managed correctly.
Alon, there is a process. It's just different from what you imagine it to be. If you're not keen to get on IRC then read the chat log that gets posted here the next day and comment on it. Comment and counter-propose on patches - as you do - and this project will go forward.
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Hi Heiko,
Am 29. Februar 2012 13:18 schrieb Heiko Hund <[email protected]...>:
Quoted 4 lines
[...] There will be a new service, I called it
interactive service. The GUI/client connects to a named pipe of that service. It passes the working directory, command line options and stdin input for openpvn to the service. The service impersonates the client, creates another
Quoted 8 lines
named pipe and starts openvpn. Besides the stuff from the GUI it also passes to client end of the created pipe to openvpn. The GUI may now connect the the management interface. If openvpn needs to perform a privileged operation it request it through the named pipe that was passed by the interactive service. There's only a limited and well defined set of privileged operations that are serviced through the pipe. Currently only setting of IPv4 and IPv6 routes, but that will be extended to whatever makes sense e.g. ARP table flush is the next thing that will come.
Let's see whether I understood the design. After initial setup, the GUI has a connection via the mgmt interface to OpenVPN and OpenVPN has a connection via the "privilege interface" to the "interactive service". OpenVPN basically runs in the same context as the GUI, i.e. without permission to change the network configuration (change routes, etc.). The "interactive service" runs in a context with permissions to change the network configuration. Any privileged operations are requested by OpenVPN via the "privilege interface" and performed by the "interactive service". (There must be something missing, otherwise I don't get why you call it "interactive service" ...?)
Why does the "interactive service" need to start OpenVPN? Why not let the GUI start OpenVPN and let OpenVPN connect to the "interactive service"? OTOH, if you're going to start OpenVPN as a service anyway, it probably doesn't really make much of a difference. Although this could mean that you can keep the GUI-facing side of OpenVPN identical to what it is now... the "interactive service" would just be an implementation detail of how openvpn performs its privileged operations.
Does creating a tun/tap device belong to the operations that need special privileges under windows? If so, this sounds a lot like an interface that might also allow splitting off most of the system specific code ... as in, this could also work on Android, no?
Cheers
Fabian
Quoted 9 lines · Heiko Hund
Quoted 4 lines · On Wednesday 29 February 2012 13:45:49 Alon Bar-Lev wrote:
I don't understand you attitude, I am not trying to take anything from you, and I don't think you can find anything in my record that had negative impact on this (or any other) project. And I do know one or two things in security and networking.
I'm just trying to get a statement from you about the spotted complexity and how it can be reduced, but somehow there's still nothing coming from your direction.
And I trying to explain that complexity is derived by variants, at least:
1. Threat assessment and privatization.
2. User experience requirements.
3. Dependencies definition.
4. Desired complexity.
5. Maintenance and resource allocation.
Maybe (for this sake of argument) your solution is perfect, but what is the cost? does it addresses the correct threats? If we reduce the threats, can we provide simpler solutions with lower complexity and resources?
These are important questions before you jump into implementation.
Quoted 8 lines
Quoted 3 lines
I only recommend the OpenVPN project manager to hold with this solution, and manage a proper design process, there are people here who can help, if the process is managed correctly.
Alon, there is a process. It's just different from what you imagine it to be. If you're not keen to get on IRC then read the chat log that gets posted here the next day and comment on it. Comment and counter-propose on patches - as you do - and this project will go forward.
I disagree, open source project is not different than any other software project.
when you reach to the point of writing code (hence patches), it is way too late to
discuss requirements and design. And the emotional impact of rejecting people work at this stage is huge, especially when these involves in great effort.
Also please keep in mind we are not being payed for openvpn, nor payed to keep project alive, we donate our time and our experience.
If you force people to follow meetings, you may lose experience of people who might be busy at that specific time in their day work.
Because of this a proper roadmap and design of significant changes should be published and discussed over time, leveraging the overall experience of the community.
Anyway, I am not managing this project, it is up to him to decide how to progress.
However, OpenVPN is already very fat monolithic implementation that grow over time with a lot of niche features, the code is so complex and conditional that it
is almost impossible to maintain. It is about time to setup up a direction, and maybe work toward modular approach first, solving the Windows major issues with as minimal effort as possible for the time being.
Alon.
Quoted 4 lines
I disagree, open source project is not different than any other software project.
OK, I'll bite.
I disagree with the above entirely. Open-source project *is* different "from any other project" - vastly so - not least because it is open for scrutiny by the whole community, not just individuals involved in it, and that makes it stand out compared to a commercial/closed-source project.
That scrutiny involves various levels of communication between the parties involved and members of the community (and that includes IRC, email, phone calls, online video conferencing - the lot).
Quoted 5 lines
when you reach to the point of writing code (hence patches), it is way too late to
discuss requirements and design. And the emotional impact of rejecting people work at this stage is huge, especially when these involves in great effort.
Alon, this is not some sort of charity - as a developer you develop, you are not a shrinking violet, are you? Rejection of developer's code is part-and-parcel of the whole process, don't be so precious! There is a say in where I come from: "If you can't stand the heat, get out of the kitchen". To translate - if you can't bear to see the code you proposed being rejected, then don't submit it and find some other ways to channel your creativity.
Quoted 9 lines
The one-to-one NAT feature seems to be described on the man-page in the "--client-nat" section. The new management features are James' handywork, so they're probably described here:
<http://openvpn.net/index.php/open-source/documentation/miscellaneous/79-management-interface.html>
If not, then maybe on the man-page, or not at all.
Thanks, that's good, I'll have a detailed look later on today.
Quoted 10 lines
For the plug-in API ... look at
openvpn-plugin.h... look for openvpn_plugin_*_v3. Especiallyopenvpn_plugin_open_v3()andopenvpn_plugin_func_v3(). If fact, most of theopenvpn-plugin.his a pretty comprehensive reference for the plugin API. For a working example, look atplugin/examples/log_v3.c.For the --client-nat ... look at the man new page.
<http://openvpn.net/index.php/manuals/523-openvpn-23.html>
Thanks, I'll have a look later on today. Does this differ from the "old" plugin mechanism in v2.2?
Hi Fabian
Quoted 10 lines · On Wednesday 29 February 2012 14:07:01 Fabian Knittel wrote:
Let's see whether I understood the design. After initial setup, the GUI has a connection via the mgmt interface to OpenVPN and OpenVPN has a connection via the "privilege interface" to the "interactive service". OpenVPN basically runs in the same context as the GUI, i.e. without permission to change the network configuration (change routes, etc.). The "interactive service" runs in a context with permissions to change the network configuration. Any privileged operations are requested by OpenVPN via the "privilege interface" and performed by the "interactive service". (There must be something missing, otherwise I don't get why you call it "interactive service" ...?)
It's interactive in contrast to the other already existing service, that just starts all openvpn connections that it finds at the time the service itself is started. I internally called that service automatic. The GUI and openvpn interact with the interactive service, hence the name. And partially because I couldn't come up with something that made more sense.
Quoted 3 lines
Why does the "interactive service" need to start OpenVPN? Why not let the GUI start OpenVPN and let OpenVPN connect to the "interactive service"?
The key point here is the inheritance of the client end of the named pipe that's being used to request privileged operations. If there would just be a named pipe anyone could connect to, anyone could modify i.e. the routing table. Something MS tries to prevent obviously.
Quoted 6 lines
OTOH, if you're going to start OpenVPN as a service anyway, it probably doesn't really make much of a difference. Although this could mean that you can keep the GUI-facing side of OpenVPN identical to what it is now... the "interactive service" would just be an implementation detail of how openvpn performs its privileged operations.
I got lost at "going to start OpenVPN as a service anyway". Openvpn isn't started as a service, the service starts openvpn. Openvpn is not running with same token the service runs, but the token of the GUI that invoked the service.
Quoted 4 lines
Does creating a tun/tap device belong to the operations that need special privileges under windows? If so, this sounds a lot like an interface that might also allow splitting off most of the system specific code ... as in, this could also work on Android, no?
No, that example was a spin off to my lengthy and highly fictional NetworkManager story. =) Essentially you're right, though. It could be used as such. Usually I#d say that stuff that can be setup before privileges are dropped should be done at that time. Setting of routes can only be done after privdrop and that's the main use for the new interface.
Regards
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Hi Heiko,
2012/2/29 Heiko Hund <[email protected]...>:
Quoted 1 line · On Wednesday 29 February 2012 14:07:01 Fabian Knittel wrote:
[...]
Quoted 8 lines
Quoted 2 lines
(There must be something missing, otherwise
I don't get why you call it "interactive service" ...?)It's interactive in contrast to the other already existing service, that just starts all openvpn connections that it finds at the time the service itself is started. I internally called that service automatic. The GUI and openvpn interact with the interactive service, hence the name. And partially because I couldn't come up with something that made more sense.
Ah, I see. My confusion stemmed from the fact that I don't know much/anything about how OpenVPN is currently used on Windows.
Quoted 8 lines
Quoted 3 lines
Why does the "interactive service" need to start OpenVPN? Why not let the GUI start OpenVPN and let OpenVPN connect to the "interactive service"?
The key point here is the inheritance of the client end of the named pipe that's being used to request privileged operations. If there would just be a named pipe anyone could connect to, anyone could modify i.e. the routing table. Something MS tries to prevent obviously.
Ah, I see. So when you say that the "working directory, command line options and stdin input for openpvn" are passed in, the idea is that this MUST not allow the GUI-user to manipulate the OpenVPN process to send arbitrary commands down the named pipe. (I initially you were saying "pass in the path to the OpenVPN exe, but now I understand that this is not what you meant.)
To ensure this in classic Linux this would mean that the OpenVPN process needs to run as a _different_ user than the GUI user or else the GUI user could freely manipulate the program using, e.g. ptrace. I know that similar manipulations are possible in Windows, so can you protect the service-started OpenVPN-executable from such manipulations? (And I also assume that _named_ pipes still allow you to hide the name from some processes of the same user?) (I'm not an experienced Windows programmer, so please excuse my ignorance...)
Quoted 11 lines
Quoted 6 lines
OTOH, if you're going to start OpenVPN as a service anyway, it probably doesn't really make much of a difference. Although this could mean that you can keep the GUI-facing side of OpenVPN identical to what it is now... the "interactive service" would just be an implementation detail of how openvpn performs its privileged operations.
I got lost at "going to start OpenVPN as a service anyway". Openvpn isn't started as a service, the service starts openvpn. Openvpn is not running with same token the service runs, but the token of the GUI that invoked the service.
I was mistakenly using "run in background" and "service" as synonyms. Anyway, you explained why who-starts-who makes all of the difference, so this point is moot.
Quoted 10 lines
Quoted 4 lines
Does creating a tun/tap device belong to the operations that need special privileges under windows? If so, this sounds a lot like an interface that might also allow splitting off most of the system specific code ... as in, this could also work on Android, no?
No, that example was a spin off to my lengthy and highly fictional NetworkManager story. =) Essentially you're right, though. It could be used as such. Usually I#d say that stuff that can be setup before privileges are dropped should be done at that time. Setting of routes can only be done after privdrop and that's the main use for the new interface.
Yes, that makes sense. Hypothetically, the tun/tap-opening part would be something the "interactive service" would do before launching the OpenVPN executable, based on the parameters given by the GUI.
Thanks for clarifying.
Cheers
Fabian
Hi,
Quoted 6 lines · Fabian Knittel
To ensure this in classic Linux this would mean that the OpenVPN process needs to run as a _different_ user than the GUI user or else the GUI user could freely manipulate the program using, e.g. ptrace. I know that similar manipulations are possible in Windows, so can you protect the service-started OpenVPN-executable from such manipulations?
The model we follow is "openvpn.exe has the same permissions that you already have, so there is no benefit in manipulating anything".
For those bits that need additional privileges, there's the named pipe to the openvpn service - with some very well-defined messages to add/delete routes, setup interfaces, and such.
Part of the assumption here is "the user controls the openvpn config", and as such, he can make openvpn.exe run arbitrary scripts anyway - and to stop this from being a problem, just run openvpn.exe with your uid.
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...Quoted 8 lines · On Wednesday 29 February 2012 15:28:31 Fabian Knittel wrote:
To ensure this in classic Linux this would mean that the OpenVPN process needs to run as a _different_ user than the GUI user or else the GUI user could freely manipulate the program using, e.g. ptrace. I know that similar manipulations are possible in Windows, so can you protect the service-started OpenVPN-executable from such manipulations? (And I also assume that _named_ pipes still allow you to hide the name from some processes of the same user?) (I'm not an experienced Windows programmer, so please excuse my ignorance...)
Me neither, so any guru input is very welcome. Even the not-so-guru one like yours. Much appreciated!
The pipe connecting the service and openvpn is limited to one instance, which is created within the service before starting openvpn. So, no other process can just attach this way and send commands even if it's the same user openvpn is running as.
There is a way to use DuplicateHandle() to get the client pipe end out of the openvpn process if you have the rights. The GUI user has these rights, but I think there should be a way to take them away from even her via ACLs. Guru input requested on this topic! Starting from Vista there's also a way to run GetNamedPipeClientProcessId() and compare that to the one of the openvpn process before processing messages. Any other ideas to restrict access are very welcome.
Regards
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 7 lines · Mr Dash Four
Quoted 7 lines
For the plug-in API ... look at
openvpn-plugin.h... look for openvpn_plugin_*_v3. Especiallyopenvpn_plugin_open_v3()andopenvpn_plugin_func_v3(). If fact, most of theopenvpn-plugin.his a pretty comprehensive reference for the plugin API. For a working example, look atplugin/examples/log_v3.c.
Quoted 5 lines
Quoted 3 lines
For the --client-nat ... look at the man new page.
<http://openvpn.net/index.php/manuals/523-openvpn-23.html>Thanks, I'll have a look later on today. Does this differ from the "old" plugin mechanism in v2.2?
Yes, it differs quite a bit. The v3 API is brand new. It has a very different argument list than the v1 and v2 API. However, with the v3 it is expected that the plug-in API itself (function declarations) will not change again. The v3 passes structs with the information, where the v1 and v2 APIs used separate arguments to the plug-in functions.
The advantage here is that the plug-ins don't have to be rebuilt if these structs are extended in the future. It's an "unwritten rule" that we will not reduce or re-order the struct contents, only extend it. And there are some version indicators as well, so that if you have a plug-in depending on a minium struct version; you can check this before continuing to extract data. This way, backward compatibility should be handled pretty nicely.
I would recommend all plug-in writers to mainly focus on the v3 API. At some point in the future we might deprecate the old APIs and reduce it to only one single API. But anyhow, this won't happen in the near future.
If a plug-in contains both v3, v2 and/or v1 functions, only the newest version will be used. So you can write a plug-in which can make advantage of the new API and features with the latest OpenVPN, while having a fall-back for older OpenVPN versions.
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9OSgQACgkQDC186MBRfro/uwCgmpKDIIfbkoa5wSSp74sWPRBQ 2zEAoJgGvHAwlkN8e7g9Do88FT8zddtD
=SqQN
-----END PGP SIGNATURE-----
Hi Gert,
2012/2/29 Gert Doering <[email protected]...>:
Quoted 2 lines
The model we follow is "openvpn.exe has the same permissions that you already have, so there is no benefit in manipulating anything".
That was my initial assumption, which would imply that there's no reason to restrict access to the named pipe (apart from making sure that whoever connects is running as a user with the needed permissions).
If users can manipulate their openvpn session to do whatever they want they can also manipulate what gets sent over the named pipe. (I'm not necessarily talking about malformed messages; I'm talking about manipulating the routing tables, etc. to contain arbitrary settings.)
Quoted 7 lines
For those bits that need additional privileges, there's the named pipe to the openvpn service - with some very well-defined messages to add/delete routes, setup interfaces, and such.
Part of the assumption here is "the user controls the openvpn config", and as such, he can make openvpn.exe run arbitrary scripts anyway - and to stop this from being a problem, just run openvpn.exe with your uid.
Either I'm misunderstanding Heiko's plans or you two aren't in sync regarding this point. AFAIU, Heiko intends to safe-guard access to the named pipe as much as possible, with the underlying assumption that only a trusted OpenVPN process should be allowed to send somewhat trusted commands over the pipe. In my opinion, this implies that the openvpn config would need to be restricted to safe settings in some way. I'm not (yet?) convinced that this approach can be secure without crippling the type of tunnels that you can create.
Cheers
Fabian
Hello Fabian,
Quoted 1 line
Why does the "interactive service" need to start OpenVPN?
Yeah, I can't understand that, too.
Quoted 2 lines
Why not let the GUI start OpenVPN and let OpenVPN connect to the "interactive
service"?
Exactly.
If openvpn.exe startet in users context the user can manipulate it in ram arbitrarily.
There is absolutly no better protection than let the user start openvpn. Because of this openvpn should NOT startet as a user and the user should not have the right to modify scripts.
I think it would be good to rethink the hole script idea. Maybe scripts could be only server pushable.
greetings
Carsten
Hello Gert,
Quoted 3 lines
Part of the assumption here is "the user controls the openvpn config", and as such, he can make openvpn.exe run arbitrary scripts anyway - and to stop this from being a problem, just run openvpn.exe with your uid.
What operation could be in script that is usefull when it's executed in user context.
I never used script with openvpn. I've no idea which are real world applications for it.
greetings
Carsten
Re: [Openvpn-devel] OpenVPN 2.3-alpha1 / GUI
In reply to a message not in the archiveRussell
Quoted 3 lines · On Wednesday 29 February 2012 17:26:46 Russell Morris wrote:
1) I know that someone (Heiko?) was looking at auto-proxy a while back. Is this now working? Is there a way to test it (if it's now working), to see what it determines for a proxy?
During discussion of the Windows --auto-proxy patches at FOSDEM we've decided that the auto-proxy detection shouldn't take place within openvpn as it is very platform specific and there's no apparent need to do it there. We removed the --auto-proxy option from openvpn all together, it wasn't working much anyway and was only supporting Windows. In a future alpha/beta 2.3 release a GUI will be packaged that reacts to openvpn querying for proxy info via management interface. Currently I can't offer much to test, though. Sorry.
Quoted 9 lines
2) I have a Windows GUI of my own (and I don't mean this as a "competition" to the default OpenVPN GUI, not at all!!!). It's just tweaked for my personal situation, on and off LAN and wireless, proxy, no proxy, etc. It uses the management interface completely. In any case, it has some features that I like, more than anything wondering if there are thoughts of extending the current GUI to include items like this (as I'd rather use the official GUI, I'm no SW expert - not even close). In any case, I have attached a few pictures, in case someone has any ideas about new features for the official GUI.
Could you elaborate on the features you want to see included, please. Obviously you have some nice charts in your GUI. What language did you code this in? I suppose it's not C with plain WIN32 API?
Regards
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Hello,
Quoted 2 lines
If openvpn.exe startet in users context the user can manipulate it in ram arbitrarily.
Example:
http://blog.didierstevens.com/2009/06/25/bpmtk-injecting-vbscript/
(great blog about process manipulation :-) )
I think there is absolutly no benefit from starting openvpn.exe in user context via service.
greetings
Carsten
Hello Heiko,
Quoted 1 line
Same here, please share your thoughts on how to reduce complexity.
Dismiss the hole service starts openvpn in user context. It makes no sense.
see:
Message-ID: <[email protected]...>
Message-ID: <[email protected]...>
greetings
Carsten
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 3 lines · Carsten Krüger
I think it would be good to rethink the hole script idea. Maybe scripts could be only server pushable.
How will you handle that some users use OpenVPN from Windows, Linux and maybe even a mobile phone (like N900)? ... where paths are different, depending on OS and/or distribution. And some paths on Linux (probably *BSD too?) are different if it is a 32bit architecture or 64bit.
I doubt it will be highly appreciated that sys-admins need to maintain separate script profiles on the server side, for each OS/platform connecting.
And you would also need to go even further, to also make --plugin only pushable too. Which makes the /usr/lib vs /usr/lib64 scenario a real pain for sure.
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9Oe+sACgkQDC186MBRfroz1ACfQmJ94a+cMUQFExps9a7+x7AB WGgAoJ6NT1feO/k4kiTj7Id7jUdo5ZLZ
=FvPe
-----END PGP SIGNATURE-----
Hello,
Quoted 4 lines
How will you handle that some users use OpenVPN from Windows, Linux and maybe even a mobile phone (like N900)? ... where paths are different, depending on OS and/or distribution. And some paths on Linux (probably *BSD too?) are different if it is a 32bit architecture or 64bit.
Do have an example for an script? I've no idea what's the exact purpose is, I've never used scripts in openvpn.
Quoted 2 lines
I doubt it will be highly appreciated that sys-admins need to maintain separate script profiles on the server side, for each OS/platform connecting.
Who writes the script? The sysadmin.
Quoted 3 lines
And you would also need to go even further, to also make --plugin only pushable too. Which makes the
/usr/libvs/usr/lib64scenario a real pain for sure.
Why do u want to secure openvpn if there is an option for a user to inject plugins?
The plugin code do anything.
Are plugins used only on server side or on clientside, too?
greetings
Carsten
Hi,
Quoted 9 lines · Carsten Krüger
Quoted 3 lines
Part of the assumption here is "the user controls the openvpn config", and as such, he can make openvpn.exe run arbitrary scripts anyway - and to stop this from being a problem, just run openvpn.exe with your uid.
What operation could be in script that is usefull when it's executed in user context.
I never used script with openvpn. I've no idea which are real world applications for it.
Scripts are for creative uses that the programmers of openvpn have not foreseen. Like "after the VPN is up, auto-sync all your git repositories" or "open up a few xterms with ssh's to $internalhosts".
David had some other idea recently, which I forgot.
I use scripts for routing table changes on the OpenVPN *server* side (dynamic "route" behaviour). But that's a bad example because it wouldn't work in the "openvpn and all its script childs are not privileged".
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...Hi,
Quoted 4 lines · Carsten Krüger
Quoted 1 line
Same here, please share your thoughts on how to reduce complexity.
Dismiss the hole service starts openvpn in user context. It makes no sense.
2012/2/29 Gert Doering <[email protected]...>:
Quoted 10 lines
Hi,
Quoted 7 lines · Carsten Krüger
Quoted 3 lines
Part of the assumption here is "the user controls the openvpn config", and as such, he can make openvpn.exe run arbitrary scripts anyway - and to stop this from being a problem, just run openvpn.exe with your uid.
What operation could be in script that is usefull when it's executed in user context.
Quoted 8 lines
Quoted 2 lines
I never used script with openvpn. I've no idea which are real world applications for it.
Scripts are for creative uses that the programmers of openvpn have not foreseen. Like "after the VPN is up, auto-sync all your git repositories" or "open up a few xterms with ssh's to $internalhosts".
David had some other idea recently, which I forgot.
This is a great example why this functionality should *MOVE OUT* of the openvpn code base.
The UI can monitor OpenVPN and run scripts when such events are detected via the management interface.
The UI already runs in the context of the interactive user.
I would like to receive replies to[1].
Thanks,
Alon.
[1] http://sourceforge.net/mailarchive/message.php?msg_id=28910374
Hi,
Quoted 11 lines · Alon Bar-Lev
Quoted 5 lines
Scripts are for creative uses that the programmers of openvpn have not foreseen. Like "after the VPN is up, auto-sync all your git repositories" or "open up a few xterms with ssh's to $internalhosts".
David had some other idea recently, which I forgot.
This is a great example why this functionality should *MOVE OUT* of the openvpn code base.
The UI can monitor OpenVPN and run scripts when such events are detected via the management interface.
The UI already runs in the context of the interactive user.
But then you still have all the network, crypto and ssl stuff in the privileged process - and the holy cow of security aware programming is "keep the code base that runs privileged as small as possible".
So moving out the (very small) bits that need privileges and leaving the rest in the runs-as-user code base is achieving the same thing (scripts run with user privileges) with a much smaller code base for privileged operations.
But I'm leaving this discussion now. Heiko is doing the implementation work, James, David and I have agreed (and told the list via IRC session minutes!) that we think it's a useful way forward, and this is developing into a bikeshed.
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...Quoted 4 lines · Gert Doering
But I'm leaving this discussion now. Heiko is doing the implementation work, James, David and I have agreed (and told the list via IRC session minutes!) that we think it's a useful way forward, and this is developing into a bikeshed.
Yes, I guessed from start that there is an emotional factor. It does not means that you had all the information before making that decision, and it does not mean that decisions cannot be reviewed when more information comes.
So that's true, there no sense in this discussion.
I just hope someone else will be more opened before making a very complex implementation.
Alon.
A comment on your [1] reference. The issue of remote-user vs enterprise is an old one - that affects many software applications - not just openvpn. I personally think the proper solution is to implement NAC:
make "the network/enterprise" audit the remote host and only allow it if it meets expectations. As such I don't think openvpn has to solve this problem itself, as "the enterprise" cares a lot more about the remote machine than whether or not the remote user has injected a couple of routes into the local routing table. eg Windows AV status.
I think openvpn is quite entitled to act as a "mere" vpn solution, "the enterprise" should invoke a more over-arching solution (such as NAC with NAC agents) to ensure policy compliance.
Jason
Quoted 39 lines · Alon Bar-Lev
2012/2/29 Gert Doering <[email protected]...>:
Quoted 9 lines
Hi,
Quoted 6 lines · Carsten Krüger
Quoted 3 lines
Part of the assumption here is "the user controls the openvpn config", and as such, he can make openvpn.exe run arbitrary scripts anyway - and to stop this from being a problem, just run openvpn.exe with your uid.
What operation could be in script that is usefull when it's executed in user context.
Quoted 7 lines
Quoted 2 lines
I never used script with openvpn. I've no idea which are real world applications for it.
Scripts are for creative uses that the programmers of openvpn have not foreseen. Like "after the VPN is up, auto-sync all your git repositories" or "open up a few xterms with ssh's to $internalhosts".
David had some other idea recently, which I forgot.
This is a great example why this functionality should *MOVE OUT* of the openvpn code base.
The UI can monitor OpenVPN and run scripts when such events are detected via the management interface.
The UI already runs in the context of the interactive user.I would like to receive replies to[1].
Thanks,
Alon.[1] http://sourceforge.net/mailarchive/message.php?msg_id=28910374
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Signature · 6 lines
Cheers Jason Haar Information Security Manager, Trimble Navigation Ltd. Phone: +1 408 481 8171 PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1
Quoted 10 lines
Quoted 3 lines
I never used script with openvpn. I've no idea which are real world applications for it.
Scripts are for creative uses that the programmers of openvpn have not foreseen. Like "after the VPN is up, auto-sync all your git repositories" or "open up a few xterms with ssh's to $internalhosts".
David had some other idea recently, which I forgot.
Scripts are used by Tunnelblick to provide support for features that OpenVPN does not support natively on OS X (such as several "--dhcp-option"s).
94% of Tunnelblick users use scripts.
Re: [Openvpn-devel] OpenVPN 2.3-alpha1 / GUI
In reply to Heiko HundHi Heiko,
Some thoughts on this - by all means let me know your opinion though!
1) Makes sense - and that's what I'm doing currently, querying for proxy information (in Windows, including PAC files as well).
2) Unfortunately it's in Visual Basic - only because that takes care of all the GUI / Windows crud, so it makes that part pretty transparent. As for features, some thoughts ...
- automatic proxy detection (and applying that information)
- NTLM login to proxy server (using login information)
- automatic reconnect (when network connections change), or no reconnect if on the same subnet as the server
- recurring ping ... to provide RTT information (plot and histogram)
- traffic plots (UL / DL traffic) ... and traffic indicators in the System Tray (state and traffic would be nice)
Just a few ideas ... :-).
Thanks!
... Russell
Quoted 44 lines · Heiko Hund
Russell
Quoted 3 lines · On Wednesday 29 February 2012 17:26:46 Russell Morris wrote:
1) I know that someone (Heiko?) was looking at auto-proxy a while back. Is this now working? Is there a way to test it (if it's now working), to see what it determines for a proxy?
During discussion of the Windows --auto-proxy patches at FOSDEM we've decided that the auto-proxy detection shouldn't take place within openvpn as it is very platform specific and there's no apparent need to do it there. We removed the --auto-proxy option from openvpn all together, it wasn't working much anyway and was only supporting Windows. In a future alpha/beta 2.3 release a GUI will be packaged that reacts to openvpn querying for proxy info via management interface. Currently I can't offer much to test, though. Sorry.
Quoted 9 lines
2) I have a Windows GUI of my own (and I don't mean this as a "competition" to the default OpenVPN GUI, not at all!!!). It's just tweaked for my personal situation, on and off LAN and wireless, proxy, no proxy, etc. It uses the management interface completely. In any case, it has some features that I like, more than anything wondering if there are thoughts of extending the current GUI to include items like this (as I'd rather use the official GUI, I'm no SW expert - not even close). In any case, I have attached a few pictures, in case someone has any ideas about new features for the official GUI.
Could you elaborate on the features you want to see included, please. Obviously you have some nice charts in your GUI. What language did you code this in? I suppose it's not C with plain WIN32 API?
Regards
Heiko
--
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: KarlsruheRepresented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Quoted 9 lines · Jason Haar
A comment on your [1] reference. The issue of remote-user vs enterprise is an old one - that affects many software applications - not just openvpn. I personally think the proper solution is to implement NAC:
make "the network/enterprise" audit the remote host and only allow it if it meets expectations. As such I don't think openvpn has to solve this problem itself, as "the enterprise" cares a lot more about the remote machine than whether or not the remote user has injected a couple of routes into the local routing table. eg Windows AV status.
Quoted 4 lines
I think openvpn is quite entitled to act as a "mere" vpn solution, "the enterprise" should invoke a more over-arching solution (such as NAC with NAC agents) to ensure policy compliance.
Yes, and I guess you read to the end to the technical solution, right? Do you have a comment about that?
Alon.
Re: [Openvpn-devel] OpenVPN 2.3-alpha1 / GUI
In reply to Russell MorrisQuoted 2 lines · On Wednesday 29 February 2012 23:04:26 Russell Morris wrote:
1) Makes sense - and that's what I'm doing currently, querying for proxy information (in Windows, including PAC files as well).
The functionality in the GUI will be the same as in the patches posted earlier using WPAD, PAC and the IE settings to get proxy info out of Windows.
Quoted 1 line
- NTLM login to proxy server (using login information)
Isn't NTLM auth supported by openvpn already? I guess that'll be an easy improvement, just a checkbox to activate the option. Is there anything else?
Quoted 2 lines
- automatic reconnect (when network connections change), or no reconnect if on the same subnet as the server
Isn't that handled within openvpn good enough or does --keepalive not react fast enough for your needs?
Quoted 3 lines
- recurring ping ... to provide RTT information (plot and histogram)
- traffic plots (UL / DL traffic) ... and traffic indicators in the System Tray (state and traffic would be nice)
Things like these are interesting for tech people, I don't think that the average user will get much out of it. UL/DL stats added to the tool tip of the tray icon however is easy to implement and interesting enough to anyone that I like it immediately.
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Quoted 2 lines · On Wednesday 29 February 2012 18:43:18 Carsten Krüger wrote:
What operation could be in script that is usefull when it's executed in user context.
On Windows you could mount a CIFS share from the corporate LAN to the drive letter a user expects her data at, for example.
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
2012/3/1 Heiko Hund <[email protected]...>
Quoted 8 lines · On Wednesday 29 February 2012 18:43:18 Carsten Krüger wrote:
Quoted 2 lines
What operation could be in script that is usefull when it's executed in user context.
On Windows you could mount a CIFS share from the corporate LAN to the drive
letter a user expects her data at, for example.
Right.
But this is similar to "logon script" just "connect script" which can be run by the UI when it receives connect event.
Also, (technically) impersonation token cannot be used for network access. So the solution of impersonating to user will not allow a script to mount remote filesystem.
Alon.
Quoted 3 lines · On Thursday 01 March 2012 09:22:38 Alon Bar-Lev wrote:
Also, (technically) impersonation token cannot be used for network access. So the solution of impersonating to user will not allow a script to mount remote filesystem.
You can't create a process with an impersonation token that's why a primary token is used.
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Quoted 10 lines · Heiko Hund
Quoted 4 lines · On Thursday 01 March 2012 09:22:38 Alon Bar-Lev wrote:
Also, (technically) impersonation token cannot be used for network access.
So the solution of impersonating to user will not allow a script to mount remote filesystem.You can't create a process with an impersonation token that's why a primary
token is used.
How do you create primary token of user without him typing his credentials again? or add the user "replace token" privilege?
Anyway, I am curios to read your view about the alternate solution I suggested.
Alon.
Quoted 6 lines · On Wednesday 29 February 2012 19:18:00 Carsten Krüger wrote:
Quoted 2 lines
If openvpn.exe startet in users context the user can manipulate it in ram arbitrarily.
Example:
http://blog.didierstevens.com/2009/06/25/bpmtk-injecting-vbscript/
(great blog about process manipulation :-) )
Took a look, neat tool. In the same blog the author mentions that integrity levels, introduced in Vista, can be used to circumvent DLL injection. If that works out, all that is needed is the service increasing the tokens integrity level before starting openvpn and the user will have limited access to the running openvpn process.
http://blog.didierstevens.com/2010/09/07/integrity-levels-and-dll-injection/
Of course this makes only sense if the ongoing discussion about whether setting routes via --route config option comes to the conclusion "no". I'll follow up to Fabian about that.
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Hello Gert,
Quoted 8 lines
Quoted 2 lines
Dismiss the hole service starts openvpn in user context. It makes no sense.
From a pure security perspective, you're right - maximum security would be reached by running openvpn.exe in a completely unprivileged context (unix way: chroot(/var/empty), setuid(nobody)) to make sure that any possible bug that is network-exploitable cannot be used to gain access to the system.
You misunderstood me, the feature openvpn service creates openvpn process in user context didn't "work". It creates no additional security but instead lower it (the service has the privilege to spawn process in all user contexts).
It has nothing to do with privilege seperation.
My idea is the following:
run openvpnhelperservice with "network operator privileges", run openvpn.exe als "local service", advance management interface to a point that is more usefull. Let a client run in users context that communicates via management interface.
The execution of scripts can be done from client if it's something like pull git or connect to share.
Quoted 4 lines
Given that people have implemented all the script and plugin hooks because someone actually *uses* them, taking this away would not be something people like - so you want something that has flexibility, but does not have "full system access" (unix: runs as root).
Are there any plugins for windows? What do they do? Do the need to run in openvpn-context?
greetings
Carsten
Hello Heiko,
Quoted 3 lines
If that works out, all that is needed is the service increasing the tokens integrity
level before starting openvpn and the user will have limited access to the running openvpn process.
a) this didn't work, you can lower the level and but not higher
b) dll injection is ONE example of how a user can manipulate his own process. I'm no expert at hacking windows but you can trust me, it exists 1001 possibilities to do the same. You have no chance to block them.
Please drop openvpn-service starts openvpn in the context of the user. It brings in much complexty for no benefit.
greetings
Carsten
[Openvpn-devel] Project management and direction (WAS: Re: OpenVPN 2.3-alpha1 released)
In reply to Alon Bar-LevChanging the topic line to something more descriptive. Hope nobody minds.
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
I only recommend the OpenVPN project manager to hold with this solution, and manage a proper design process, there are people here who can help, if the process is managed correctly.
Alon, there is a process. It's just different from what you imagine it to be. If you're not keen to get on IRC then read the chat log that gets posted here the next day and comment on it. Comment and counter-propose on patches - as you do - and this project will go forward.
Quoted 6 lines
I disagree, open source project is not different than any other software project.
when you reach to the point of writing code (hence patches), it is way too late to
discuss requirements and design. And the emotional impact of rejecting people work at this stage is huge, especially when these involves in great effort.
I agree. That said, the same applies to the buildsystem work you did:
the requirements were vague and there was a lack of design discussion. Therefore the emotional impact on other developers was identical.
So, in the future, we all should put our major new ideas on the table (=this mailing list) to
a) figure out the requirements
b) discuss design
After this we can move on to the implementation more safely, without excluding anyone. I think the early negative comments on some of your buildsystem patches were indirectly caused by lack of a) and b). Or, in other words, other developers did not see the big picture because it had not been presented to them clearly.
Of course, there are occasions when this consensus-process gets us nowhere due to arguing. In those cases somebody just needs to move on to implementation to prove the design. This should not happen often, and never without a) and b).
Quoted 5 lines
Also please keep in mind we are not being payed for openvpn, nor payed to keep project alive, we donate our time and our experience.
If you force people to follow meetings, you may lose experience of people who might be busy at that specific time in their day work.
I also much prefer the mailing list for this reason. The original reason for the IRC meetings was James: he simply didn't have time to read the emails on openvpn-devel and we needed his advise on some things. The problem with timezones and people not being able to attend was known from the beginning, though. That's why the meetings had a specific process:
1) Preliminary topic list is sent to openvpn-devel ml
2) The actual meeting (fully open)
3) The meeting summary + complete chatlog is sent to openvpn-devel ml
The idea was to minimize the negative impact of the meetings as much as possible. Also, we haven't had that many meetings in a long while:
<https://community.openvpn.net/openvpn/wiki/IrcMeetings>
The dangerous aspect of the IRC is it's more personal nature, and the fact that it's far quicker to get feedback from there than from the mailing list. The problem is that only a subset of developers and community members hang out on the IRC. This is fine, as long as the people on the mailing lists are not excluded from the discussion. This is where we need to be really careful and not get too comfortable on the IRC channel.
Quoted 3 lines
Because of this a proper roadmap and design of significant changes should be published and discussed over time, leveraging the overall experience of the community.
Very good point, again I agree.
Quoted 3 lines
Anyway, I am not managing this project, it is up to him to decide how to progress.
And the decisions should be made so that as few people are excluded as possible.
Quoted 7 lines
However, OpenVPN is already very fat monolithic implementation that grow over time with a lot of niche features, the code is so complex and conditional that it
is almost impossible to maintain. It is about time to setup up a direction, and maybe work toward modular approach first, solving the Windows major issues with as minimal effort as possible for the time being.
This is probably long overdue, just as the buildsystem overhaul was. Some plans for OpenVPN 3.0 were made a while ago:
<https://community.openvpn.net/openvpn/wiki/RoadMap>
We should probably reopen this discussion once 2.3 (final) is out.
Signature · 5 lines
Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock
Quoted 4 lines · On Wednesday 29 February 2012 16:59:03 Fabian Knittel wrote:
If users can manipulate their openvpn session to do whatever they want they can also manipulate what gets sent over the named pipe. (I'm not necessarily talking about malformed messages; I'm talking about manipulating the routing tables, etc. to contain arbitrary settings.)
That's good thinking there. I've ignored the fact that one can simply add --route options to the config. However, just checked the man page, these routes will get set after a connection is established. So this can't be used to manipulate the routing table without establishing a connection first. The whole point about this exercise is to keep users from setting arbitrary routes without openvpn having it's fingers in the process. So, I think this is the best we can do here, in the end we want openvpn to be able to set routes.
Quoted 5 lines
Either I'm misunderstanding Heiko's plans or you two aren't in sync regarding this point. AFAIU, Heiko intends to safe-guard access to the named pipe as much as possible, with the underlying assumption that only a trusted OpenVPN process should be allowed to send somewhat trusted commands over the pipe.
We're slightly out of sync. I do believe we should protect the elevation pipe as good as possible, just to make it harder to sneak in a route.
Quoted 4 lines
In my opinion, this implies that the
openvpn config would need to be restricted to safe settings in some way. I'm not (yet?) convinced that this approach can be secure without crippling the type of tunnels that you can create.
Well, it's kind of hard to determine what's a save setting here. Even if the local configs are safely locked down one can still just add --route options the the command line. I guess it's a general discussion if --route on the client is defined as "secure because we said so" or if it should be removed. Is there a use case for --route on the client?
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Quoted 6 lines · On Thursday 01 March 2012 10:40:51 Carsten Krüger wrote:
Quoted 4 lines
If that works out, all that is needed is the service increasing the tokens integrity>
level before starting openvpn and the user will have limited access to the running openvpn process.a) this didn't work, you can lower the level and but not higher
Did you try it? I hope that it doesn't work for a normal user. The service should have sufficient rights to modify it I guess. Again these are only assumptions. If you have practical experience please be more verbose.
Quoted 4 lines
b) dll injection is ONE example of how a user can manipulate his own process. I'm no expert at hacking windows but you can trust me, it exists 1001 possibilities to do the same. You have no chance to block them.
I file that under FUD until you're more explicit.
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Hello Heiko,
Quoted 1 line
Did you try it?
No but I understand the concept of security levels in Windows. A user can spawn a process with his rights or with lower rights.
Quoted 1 line
The service should have sufficient rights to modify it I guess.
No. If you start a process in users context the user can modify it. There is nothing you could do against.
Quoted 6 lines
Quoted 4 lines
b) dll injection is ONE example of how a user can manipulate his own process. I'm no expert at hacking windows but you can trust me, it exists 1001 possibilities to do the same. You have no chance to block them.
I file that under FUD until you're more explicit.
I would propose you ask somebody in your company that is experienced in hacking of windows (maybe someone of the antivir team?)
If a process runs within my security context I can modify it arbitrarily. That's a very basic concept in operating systems.
I showed you one example how to break your design - injecting a dll. I'm no expert in hacking processes in windows but from OS design there have to exists plenty of other ways.
To gave you some ideas, study process hacker.
Try what you could do with your own processes (disable kernel hacker, otherwise you have full kernel privileges)
http://processhacker.sourceforge.net/
Take a non-admin user, start notepad, start process hacker, go to properties, view permissions. You could see that on your own process you have "full control", for example "create thread", "write memory".
greetings
Carsten
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 10 lines · Carsten Krüger
Hello,
Quoted 5 lines
How will you handle that some users use OpenVPN from Windows, Linux and maybe even a mobile phone (like N900)? ... where paths are different, depending on OS and/or distribution. And some paths on Linux (probably *BSD too?) are different if it is a 32bit architecture or 64bit.
Do have an example for an script? I've no idea what's the exact purpose is, I've never used scripts in openvpn.
I use scripts in a couple of setups.
a) Mounting and un-mounting networked filesystems after the tunnel is up. Here I even implemented the --route-pre-down script hook, to unmount the filesystem before the tunnel is taken down. Here's the config extract:
script-security 2
route-up mount.sh
route-pre-down umount.sh
The mount.sh and umount.sh scripts takes care mounting the right filesystems. The umount.sh also waits until it's the filesystem is really unmounted.
b) Setting up tunnel specific iproute2 rules
route-up /etc/openvpn/route-up.sh
plugin /usr/share/openvpn/plugin/lib/openvpn-down-root.so/etc/openvpn/route-down.sh
This client has a web server behind it which is available on the public internet via the openvpn server which got the public IP address. To make sure the incoming public traffic is returned via the VPN tunnel and not the default gateway on the openvpn client, simple ip rules like the ones below are used in the route-up.sh
/sbin/ip rule add from ${ifconfig_local} table 132 /sbin/ip route add default via 10.8.0.1 table 132
And the route-down.sh takes care of deleting the rule. This is to avoid errors and duplications if openvpn is restarted. (And there are probably other ways to solve this as well, but this is one way)
c) Setting up /etc/resolv.conf based on pushed DNS settings Using the --up script hook, you can extract the DNS server and domain parameters pushed by the server to update /etc/resolv.conf.
Quoted 8 lines
Quoted 3 lines
And you would also need to go even further, to also make --plugin only pushable too. Which makes the
/usr/libvs/usr/lib64scenario a real pain for sure.Why do u want to secure openvpn if there is an option for a user to inject plugins? The plugin code do anything.
Are plugins used only on server side or on clientside, too?
Plugins can be used on both server side and client side. They can be used to extend the logging, or do other more advanced things which is easier and cleaner solved in a C program than using plenty of scripts.
The most common client-side usage of the plug-in is openvpn-down-root.so, commonly used in the *nix world. This forks out a process with root privileges to restore some settings when the tunnel is taken down. However, this is only needed if --user, --group and/or --chroot options are used. See the example b) above.
But I'm not saying that this is the best way to do this. I'm just saying this is how such issues are easily solved with today's implementation.
The whole DNS/resolv.conf issue is not present in Windows, because Windows have no concept of TUN devices. The TUN/TAP driver in Windows is a TAP driver which fakes the TUN feature. So when the TAP device gets into "initialising mode", Windows makes the device send DHCP requests. The TAP driver and OpenVPN client then fakes a DHCP server which sends the IP address together with the DNS resolver info as DHCP packets back to Windows via the TAP device.
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9PZnIACgkQDC186MBRfrrynwCdFuOc4cXf+VsA2ySoM21Bikwr FSkAn0EH+sRlBLBIjeD11SG0nIqxHn78
=gmKz
-----END PGP SIGNATURE-----
Quoted 2 lines · On Thursday 01 March 2012 11:59:11 Carsten Krüger wrote:
No. If you start a process in users context the user can modify it. There is nothing you could do against.
I'll do some tests next week and post my findings here.
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Hello David,
Quoted 3 lines
a) Mounting and un-mounting networked filesystems after the tunnel is up. Here I even implemented the --route-pre-down script hook, to unmount the filesystem before the tunnel is taken down. Here's the config extract:
This need root rights?
Quoted 6 lines
This client has a web server behind it which is available on the public internet via the openvpn server which got the public IP address. To make sure the incoming public traffic is returned via the VPN tunnel and not the default gateway on the openvpn client, simple ip rules like the ones below are used in the
route-up.sh
Quoted 6 lines
/sbin/iprule add from ${ifconfig_local} table 132/sbin/iproute add default via 10.8.0.1 table 132And the
route-down.shtakes care of deleting the rule. This is to avoid errors and duplications if openvpn is restarted. (And there are probably other ways to solve this as well, but this is one way)
Need root rights, too?
Maybe it's a good idea to have two type of scripts.
One that is controlled from the administrator and is executed with admin/root privileges and the other that runs as the user.
Quoted 3 lines
Plugins can be used on both server side and client side. They can be used to extend the logging, or do other more advanced things which is easier and cleaner solved in a C program than using plenty of scripts.
In an enterprise setup I would think a plugin should be not modifable by the user (i.e. the user should have no chance to load own modules).
greetings
Carsten
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 8 lines · Carsten Krüger
Hello David,
Quoted 4 lines
a) Mounting and un-mounting networked filesystems after the tunnel is up. Here I even implemented the --route-pre-down script hook, to unmount the filesystem before the tunnel is taken down. Here's the config extract:
This need root rights?
Not necessarily, if /etc/fstab is configured with 'user' you don't need root priv. Or if you use FUSE stuff, that often don't need root access either. Of course, it all depends on what kind of file system you mount.
Quoted 6 lines
Quoted 5 lines
This client has a web server behind it which is available on the public internet via the openvpn server which got the public IP address. To make sure the incoming public traffic is returned via the VPN tunnel and not the default gateway on the openvpn client, simple ip rules like the ones below are used in the
route-up.sh
Quoted 8 lines
Quoted 6 lines
/sbin/iprule add from ${ifconfig_local} table 132/sbin/iproute add default via 10.8.0.1 table 132And the
route-down.shtakes care of deleting the rule. This is to avoid errors and duplications if openvpn is restarted. (And there are probably other ways to solve this as well, but this is one way)Need root rights, too?
This case needs root access, correct. But this can be tweaked around using sudo trikcs or similar stuff. And using SELinux, you can also lock down things even more.
Quoted 4 lines
Maybe it's a good idea to have two type of scripts. One that is controlled from the administrator and is executed with admin/root privileges and the other that runs as the user.
Quoted 8 lines
Quoted 4 lines
Plugins can be used on both server side and client side. They can be used to extend the logging, or do other more advanced things which is easier and cleaner solved in a C program than using plenty of scripts.
In an enterprise setup I would think a plugin should be not modifable by the user (i.e. the user should have no chance to load own modules).
Well, I can agree to that. But this is all open source. No matter how much restrictions you put into the openvpn product, the user can download the source, add the features missing, and reconnect with a modified OpenVPN version.
Even introducing signatures and hashes which the server evaluates will not solve this, as the openvpn client can be modified to return exactly the data the server would expect.
To avoid this, you would need to run some code from the server - which evaluates the system and reports back to the server. Then the server can decide to open up the firewall on the server side or not. Otherwise, you have no way to trust the client side at all. And all this would have to be code which is not easily available, so the client can't fake this operation as well.
Bottom line is, you can't fully control the client environment. All enforcements needs to happen on the server side.
What you can do on the client side, is to avoid a third party (think virus/malware) to figure out that openvpn is installed, and tweak the config to run code which was not supposed to be run with higher privileges. So the client should try to lock down things locally, to reduce the impact from local exploits. The server side should restrict the server side, and what is being passed via the tunnel. There's no real way you can make the server enforce restrictions on the client.
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9PbIIACgkQDC186MBRfrp7GgCdE9FyhidxVP+xYDzZhvbBw6w1 ps0AmwRBWDSHk2MILKfUlrYr5OcuAkbY
=2DnA
-----END PGP SIGNATURE-----
Re: [Openvpn-devel] Project management and direction (WAS: Re: OpenVPN 2.3-alpha1 released)
In reply to Samuli SeppänenQuoted 9 lines · Samuli Seppänen
1) Preliminary topic list is sent to openvpn-devel ml
2) The actual meeting (fully open)
3) The meeting summary + complete chatlog is sent to openvpn-devel mlThe idea was to minimize the negative impact of the meetings as much as possible. Also, we haven't had that many meetings in a long while:
Quoted 7 lines
The dangerous aspect of the IRC is it's more personal nature, and the fact that it's far quicker to get feedback from there than from the mailing list. The problem is that only a subset of developers and community members hang out on the IRC. This is fine, as long as the people on the mailing lists are not excluded from the discussion. This is where we need to be really careful and not get too comfortable on the IRC channel.
The problem is with the "Meeting Summary"... It breaks the discussion. Let's say you have discussion on topic XXXX, this thread has 10 messages. Then there is a "Meeting Summary" where XXXX is discussed. Then you continue to discuss the XXXX as reply to the "Meeting Summary" or in entirely different thread.
As a result you may loose the people discussing XXXX.
And you lose the history of discussion XXXX, as you need to go and look in many threads and instances.
If IRC tool is used, it should be used as a proxy. Each summary should be replied to the designated thread to allow proper asynchronous communication without breaking the sequence because of a synchronous meeting.
If James has problems with reading mails, you can discuss with him any subject but again reply to the appropriate thread to avoid breaking the sequence.
Reading IRC logs is way out of valid request...
Just my two cents.
Alon.
Hello David,
Thx for explantion of script usage.
DS> Well, I can agree to that. But this is all open source. No matter how DS> much restrictions you put into the openvpn product, the user can download DS> the source, add the features missing, and reconnect with a modified DS> OpenVPN version.
ACK, if he has the complete configuration and all secrets.
But in enterprise scenario the user has only a company configured machine and his own username/password or smartcard. For example tls-key could be unkown to user.
The user can't boot his own machine, install patched openvpn and connect to vpn server because one secret is missing.
That's the reason why I think openvpn shouldn't be started as an user and config must controlled from enterprise.
Cisco introduced a stupid encryption of key material in .vcf. The user should be allowed to setup the tunnel on this own. User can take http://newgre.net/passwordrevealer and Shrewsoft Client to connect. All enforcements are gone (push redirect-gateway for example).
DS> be code which is not easily available, so the client can't fake this DS> operation as well.
ACK
DS> Bottom line is, you can't fully control the client environment.
You can't control the client from a VPN tool. You have to control the client in enterprise directly. Group policies, software restriction policies, good ACLs, etc.
DS> What you can do on the client side, is to avoid a third party (think DS> virus/malware) to figure out that openvpn is installed, and tweak the DS> config to run code which was not supposed to be run with higher DS> privileges.
Virus runs with user privileges, config is only modifiable with admin privileges. No problem. Virus can establish VPN connection, same like the user.
DS> So the client should try to lock down things locally, to DS> reduce the impact from local exploits.
Not the openvpn client but the complete machine.
DS> There's no real way you can make the server enforce restrictions on the client.
Full ACK
greetings
Carsten
Re: [Openvpn-devel] Project management and direction (WAS: Re: OpenVPN 2.3-alpha1 released)
In reply to Alon Bar-LevHello Alon,
ABL> The problem is with the "Meeting Summary"... It breaks the discussion.
ACK but you can't prohibit out of bound communication.
ABL> Reading IRC logs is way out of valid request...
ACK
It would be nice if there proper responses on the list.
greetings
CArsten
Re: [Openvpn-devel] Project management and direction (WAS: Re: OpenVPN 2.3-alpha1 released)
In reply to Alon Bar-LevIl 01.03.2012 14:49, Alon Bar-Lev ha scritto:
Quoted 35 lines · Samuli Seppänen
Quoted 9 lines
1) Preliminary topic list is sent to openvpn-devel ml
2) The actual meeting (fully open)
3) The meeting summary + complete chatlog is sent to openvpn-devel mlThe idea was to minimize the negative impact of the meetings as much as possible. Also, we haven't had that many meetings in a long while:
Quoted 7 lines
The dangerous aspect of the IRC is it's more personal nature, and the fact that it's far quicker to get feedback from there than from the mailing list. The problem is that only a subset of developers and community members hang out on the IRC. This is fine, as long as the people on the mailing lists are not excluded from the discussion. This is where we need to be really careful and not get too comfortable on the IRC channel.
The problem is with the "Meeting Summary"... It breaks the discussion. Let's say you have discussion on topic XXXX, this thread has 10 messages. Then there is a "Meeting Summary" where XXXX is discussed. Then you continue to discuss the XXXX as reply to the "Meeting Summary" or in entirely different thread.
As a result you may loose the people discussing XXXX.
And you lose the history of discussion XXXX, as you need to go and look in many threads and instances.If IRC tool is used, it should be used as a proxy. Each summary should be replied to the designated thread to allow proper asynchronous communication without breaking the sequence because of a synchronous meeting.
If James has problems with reading mails, you can discuss with him any subject but again reply to the appropriate thread to avoid breaking the sequence.
Quoted 5 lines
Reading IRC logs is way out of valid request...
Just my two cents.
Alon.
I think we've done this to some extent already byreplying with "this topic was discussed in the IRC meeting" when appropriate. In principle this makes sense, although I'm not sure if all meeting topics are suitable for this approach, i.e. are worth a full email.
Let's think about this the next time we actually _do_ have a meeting :).
Signature · 5 lines
Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock
Re: [Openvpn-devel] OpenVPN 2.3-alpha1 / GUI
In reply to Heiko HundHi,
Quoted 2 lines · Heiko Hund
UL/DL stats added to the tool tip of the tray icon however is easy to implement and interesting enough to anyone that I like it immediately.
Blinkenlight good!
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...Re: [Openvpn-devel] OpenVPN 2.3-alpha1 / GUI
In reply to Heiko HundHi Heiko,
Some thoughts, below.
Thanks!
... Russell
Quoted 48 lines · Heiko Hund
Quoted 2 lines · On Wednesday 29 February 2012 23:04:26 Russell Morris wrote:
1) Makes sense - and that's what I'm doing currently, querying for proxy information (in Windows, including PAC files as well).
The functionality in the GUI will be the same as in the patches posted earlier using WPAD, PAC and the IE settings to get proxy info out of Windows.
Quoted 4 lines
Russell: Sounds good!
- NTLM login to proxy server (using login information)
Isn't NTLM auth supported by openvpn already? I guess that'll be an easy improvement, just a checkbox to activate the option. Is there anything else?
Quoted 5 lines
Russell: Yes - don't require storing the login information in a file, but rather apply the current user's login info. Make sense?
- automatic reconnect (when network connections change), or no reconnect if on the same subnet as the server
Isn't that handled within openvpn good enough or does --keepalive not react fast enough for your needs?
Quoted 6 lines
Russell: I can try this. My issue is that the reconnect needs to recheck proxy information, and basically re-initiate the connection. It should also reconnect after resume (standby / resume).
- recurring ping ... to provide RTT information (plot and histogram)
- traffic plots (UL / DL traffic) ... and traffic indicators in the System Tray (state and traffic would be nice)Things like these are interesting for tech people, I don't think that the average user will get much out of it. UL/DL stats added to the tool tip of the tray icon however is easy to implement and interesting enough to anyone that I like it immediately.
Quoted 1 line
Russell: Sounds good to me - thanks!
Heiko
--
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: KarlsruheRepresented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Hi,
Quoted 1 line · Heiko Hund
Is there a use case for --route on the client?
I've used "--route-nopull" together with specific "--route" statements to work around VPN setups that didn't work under specific circumstances (the server pushes a heap of routes, some of which caused problems in my setup [*], and I only wanted to reach a specific subnet via the VPN).
gert
(*) specifically: some of the hosts in my scenario can be reached through the VPN, and without VPN. Firing up the VPN and routing these hosts through the VPN would break existing SSH sessions, as further packets would get routed through the VPN, and the VPN server would not accept the existing source address (not from VPN range). Yes, not your daily issue, but I was quite happy to have that knob to fiddle.
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...Quoted 6 lines
I've used "--route-nopull" together with specific "--route" statements to work around VPN setups that didn't work under specific circumstances (the server pushes a heap of routes, some of which caused problems in my setup [*], and I only wanted to reach a specific subnet via the VPN).
+1
I've done exactly the same thing for exactly the same reasons, though I also use setcon as well (I have my own SELinux policy, so it makes sense for my own configuration/interfaces used).
[Openvpn-devel] OpenVPN Management Interface
In reply to Carsten KrügerHi,
Taking off from the thread below - is it possible in Windows to start openvpn, but only as a sort of local server (for lack of a better term)? I would like to start it up, and then be able to initiate connections, tear them down, change proxy, etc. - all via the mangement interface.
Is this possible?
Thanks!
... Russell
Quoted 1 line · Carsten Krüger
Hello Alon,
Quoted 56 lines
Quoted 5 lines
This is *THE* missing functionality in Windows environment. It seems that nobody interested in developing proper UI using management interface for Windows.
Same goes to proper smartcard support.I found that openvpn management interface works as I'd like it.
Add the following lines to client.ovpn
--------------------------------
management localhost 1000
management-query-passwords
auth-retry interact
management-hold
--------------------------------
and start the service.Use putty to connect to localhost port 1000, format RAW
|>INFO:OpenVPN Management Interface Version 1 -- type 'help' for more info |>HOLD:Waiting for hold release |hold release |SUCCESS: hold release succeeded |>PASSWORD:Need 'Auth' username/password |username Auth here_comes_my_username |SUCCESS: 'Auth' username entered, but not yet verified |password Auth here_comes_my_mypassword |SUCCESS: 'Auth' password entered, but not yet verifiedet voila openvpn connects.
I'd like to cry, how long did this works?
I found this in changelog:
2004.11.28 -- Version 2.0-beta18* Added management interface. See new --management-* options or the full management interface documentation in
management/management-notes.txtin the tarball.greetings
Carsten------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Re: [Openvpn-devel] OpenVPN Management Interface
This exactly what we discuss at the privilege separation thread... Currently to change configuration you need to start a process.
2012/3/6 Russell Morris <[email protected]...>:
Quoted 96 lines
Hi,
Taking off from the thread below - is it possible in Windows to start openvpn, but only as a sort of local server (for lack of a better term)? I would like to start it up, and then be able to initiate connections, tear them down, change proxy, etc. - all via the mangement interface.
Is this possible?
Thanks!
... Russell
On Tue, 02/28/2012 02:34 PM, Carsten Krüger <[email protected]...> wrote:
Hello Alon,
Quoted 4 lines
This is *THE* missing functionality in Windows environment. It seems that nobody interested in developing proper UI using management interface for Windows.
Same goes to proper smartcard support.I found that openvpn management interface works as I'd like it.
Add the following lines to client.ovpn
--------------------------------
management localhost 1000
management-query-passwords
auth-retry interact
management-hold
--------------------------------
and start the service.Use putty to connect to localhost port 1000, format RAW
|>INFO:OpenVPN Management Interface Version 1 -- type 'help' for more info |>HOLD:Waiting for hold release |hold release |SUCCESS: hold release succeeded |>PASSWORD:Need 'Auth' username/password |username Auth here_comes_my_username |SUCCESS: 'Auth' username entered, but not yet verified |password Auth here_comes_my_mypassword |SUCCESS: 'Auth' password entered, but not yet verifiedet voila openvpn connects.
I'd like to cry, how long did this works?
I found this in changelog:
2004.11.28 -- Version 2.0-beta18* Added management interface. See new --management-* options or the full management interface documentation in
management/management-notes.txtin the tarball.greetings
Carsten------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Re: [Openvpn-devel] OpenVPN Management Interface
Hi,
That makes sense - thanks! I'm not a security expert by any means, so the thread lost me when it diverged into this area ... :-(.
At the risk of asking a stupid question (but that is my specialty ... :-)) - is there a conclusion of how to deal with this?
Thanks again,
... Russell
Quoted 1 line · Alon Bar-Lev
This exactly what we discuss at the privilege separation thread...
Quoted 100 lines
Currently to change configuration you need to start a process.
2012/3/6 Russell Morris <[email protected]...>:
Quoted 96 lines
Hi,
Taking off from the thread below - is it possible in Windows to start openvpn, but only as a sort of local server (for lack of a better term)? I would like to start it up, and then be able to initiate connections, tear them down, change proxy, etc. - all via the mangement interface.
Is this possible?
Thanks!
... Russell
On Tue, 02/28/2012 02:34 PM, Carsten Krüger <[email protected]...> wrote:
Hello Alon,
Quoted 4 lines
This is *THE* missing functionality in Windows environment. It seems that nobody interested in developing proper UI using management interface for Windows.
Same goes to proper smartcard support.I found that openvpn management interface works as I'd like it.
Add the following lines to client.ovpn
--------------------------------
management localhost 1000
management-query-passwords
auth-retry interact
management-hold
--------------------------------
and start the service.Use putty to connect to localhost port 1000, format RAW
|>INFO:OpenVPN Management Interface Version 1 -- type 'help' for more info |>HOLD:Waiting for hold release |hold release |SUCCESS: hold release succeeded |>PASSWORD:Need 'Auth' username/password |username Auth here_comes_my_username |SUCCESS: 'Auth' username entered, but not yet verified |password Auth here_comes_my_mypassword |SUCCESS: 'Auth' password entered, but not yet verifiedet voila openvpn connects.
I'd like to cry, how long did this works?
I found this in changelog:
2004.11.28 -- Version 2.0-beta18* Added management interface. See new --management-* options or the full management interface documentation in
management/management-notes.txtin the tarball.greetings
Carsten------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Re: [Openvpn-devel] OpenVPN Management Interface
Quoted 4 lines · Russell Morris
Hi,
Quoted 8 lines
That makes sense - thanks! I'm not a security expert by any means, so the thread lost me when it diverged into this area ... :-(.
At the risk of asking a stupid question (but that is my specialty ... :-)) - is there a conclusion of how to deal with this?
This is not a stupid question at all.
In fact this is the correct question...
The wrong question is the privilege separation.
I rephrase the question: What is missing within openvpn to allow proper UI management
Goal:
To be able to support OpenVPN in complete privilege separation from the end-user, delegating user specific credentials.
OpenVPN core tasks:
1. Run without end-user credentials in OpenVPN configuration, meaning:
(Side note: there is no reason not to support both client and server in this mode.)
a. For each session accept certificate via management interface. b. Delegate signature operations to management interface. Although this is already implemented but undocumented, it only support RSA, needs to be extended to other algorithms such as EC.
2. Run without peer certificate validation in OpenVPN configuration, meaning:
a. Delegate peer-certificate validation to the management interface. b. No need for CA, EKU, Subject, CRL etc in configuration.
3. Provide cross platform command-line tool to interact with the management interface, this is the supported project tool. a. Support passphrase.
b. Support file based certificate/key (PKCS#1, PKCS#12). c. Support CryptoAPI.
d. Support PKCS#11.
e. Support peer certificate validation.
f. Support basic logging.
e. In future this simple CLI may transform to simple UI (Qt, GTK), similar to wpa_supplicant's wpa_cli.
4. Depreciate the CryptoAPI and PKCS#11 from the OpenVPN sources, as depreciated by (3), the discussion of read passphrase from file will be gone too.
5. Support network configuration interface, so that user's supply network configuration logic may be supported.
a. Can be supported using spawning process (I prefer as it is simpler). b. Can be supported using plugin.
6. [low priority] Provide OpenVPN as a library, this will allow components to load openvpn.so or openvpn.dll without creating a new process (calling openvpn_main()).
a. New build system enables creating .so/.dll out of openvpn easily. b. Create executable that uses the library (as for now).
This is non trivial, mainly due to the extensive use of global variables in code, the nature of signal handling and the lazy initialization. The lazy initialization is the most complex issue, however it can be ignored as these configurations may be unsupported in library mode.
7. [low priority] Remove the windows service code out of openvpn project, as it should be implemented by UI project.
OpenVPN-UI Core Tasks:
1. Setup of privilege separation. discussed already. I can provide detailed design.
2. Support management interface certificate/sign requests. a. Support PKCS#1, PKCS#12.
b. Support CryptoAPI.
c. Support PKCS#11.
3. Support management interface peer certificate validation. a. Support using PKCS#7.
b. Support using CryptoAPI.
4. Support user scripts on specific events, to allow user customization, this is part of UI profile, has no relationship with openvpn configuration files. These scripts will run at interactive user context.
a. OnBeforeConnect.
b. OnConnect.
c. OnDisconnect.
5. Provide network configuration implementation for windows specific privilege separation setup.
6. Provide installer, as it is not single file installation.
Alon
Re: [Openvpn-devel] OpenVPN Management Interface
In reply to Russell Morris-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 11 lines · Russell Morris
Hi,
That makes sense - thanks! I'm not a security expert by any means, so the thread lost me when it diverged into this area ... :-(.
At the risk of asking a stupid question (but that is my specialty ... :-)) - is there a conclusion of how to deal with this?
Not a stupid question at all!
Currently there is no way how to solve this. However, in the
2.3-alpha1, it might be a detail you might find as an interesting /workaround/ now. The management can be used to override 'remote' options from the configuration file. The management interface understands now the 'remote' command.
See these references for more info:
<http://openvpn.git.sourceforge.net/git/gitweb.cgi?p=openvpn/openvpn-testing.git;a=commit;h=54561af63699e7408fba11c75bbf9e22ed6216dc>
management-notes.txt:
<http://openvpn.git.sourceforge.net/git/gitweb.cgi?p=openvpn/openvpn-testing.git;a=blob_plain;f=management/management-notes.txt;hb=master>
The requirement is that there is at least one remote configured. But once the management is enabled with this feature, it can be changed at will afterwards.
However, I see a potential issue with this approach via the management API. *If* a malware process runs which is OpenVPN aware, it *may* connect to the management interface and redirect the connection via a middle-man. The management interface should be password protected, of course, but that password is stored in memory - hopefully only in memory.
So unless memory access is properly restricted, other processes *may*
get access to this memory region.
I'm no Windows developer, but in most modern OSes each process usually runs inside it's own memory region which is restricted for other processes. However, buffer overruns, isn't that uncommon - but mostly caused by bugs in the OS, or improper memory management in the application (using shared memory pages without being careful enough). And there are two programs which needs to know about the password, openvpn.exe and the GUI. And these two processes needs to communicate and co-operate somehow.
Of course, this is a purely theoretical aspect. There are some security layers which can be used to avoid some of this, like f.ex --tls-auth and
- --tls-remote. But this is not a bullet-proof solution either.
The malware can still try to replace the complete configuration files, copy the originals to it's own server and setup a transit tunnel automatically - hiding all this. But then it's not dependent on the the management interface at all. And in fact, this might be an easier approach in most cases. The management interface is probably just more interesting where configuration files cannot easily be modified by the user. And this would most likely be used in a targeted attack too.
kind regards,
David Sommerseth
Quoted 8 lines
On Tue, 03/06/2012 11:12 AM, Alon Bar-Lev <[email protected]...> wrote:
This exactly what we discuss at the privilege separation thread... Currently to change configuration you need to start a process.
2012/3/6 Russell Morris <[email protected]...
<mailto:[email protected]...>>:
Quoted 16 lines
Quoted 7 lines
Hi,
Taking off from the thread below - is it possible in Windows to start openvpn, but only as a sort of local server (for lack of a better
term)? I
Quoted 8 lines
would like to start it up, and then be able to initiate connections, tear them down, change proxy, etc. - all via the mangement interface.
Is this possible?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9WWHQACgkQDC186MBRfroTeACfQlb36yjb+80WgRoDEPQd4+E2 agQAniW1zWbtgCrPK4NUeWmVgNm656me
=L2Pl
-----END PGP SIGNATURE-----
Re: [Openvpn-devel] OpenVPN Management Interface
In reply to Alon Bar-Lev-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 37 lines · Alon Bar-Lev
Quoted 4 lines · Russell Morris
Hi,
Quoted 8 lines
That makes sense - thanks! I'm not a security expert by any means, so the thread lost me when it diverged into this area ... :-(.
At the risk of asking a stupid question (but that is my specialty ... :-)) - is there a conclusion of how to deal with this?
This is not a stupid question at all. In fact this is the correct question... The wrong question is the privilege separation.
I rephrase the question: What is missing within openvpn to allow proper UI management
Goal: To be able to support OpenVPN in complete privilege separation from the end-user, delegating user specific credentials.
OpenVPN core tasks:
1. Run without end-user credentials in OpenVPN configuration, meaning:
(Side note: there is no reason not to support both client and server in this mode.) a. For each session accept certificate via management interface. b. Delegate signature operations to management interface. Although this is already implemented but undocumented, it only support RSA, needs to be extended to other algorithms such as EC.2. Run without peer certificate validation in OpenVPN configuration,
meaning: a. Delegate peer-certificate validation to the management interface. b. No need for CA, EKU, Subject, CRL etc in configuration.
Quoted 7 lines
3. Provide cross platform command-line tool to interact with the management interface, this is the supported project tool. a. Support passphrase. b. Support file based certificate/key (PKCS#1, PKCS#12). c. Support CryptoAPI. d. Support PKCS#11. e. Support peer certificate validation. f. Support basic logging. e. In future this simple CLI may transform to simple UI (Qt, GTK), similar to wpa_supplicant's
wpa_cli.
[...snip...]
I like these thoughts a lot. It really makes a lot of sense.
However, how will this approach make sure that malware don't use such a (new) openvpn service to redirect all Internet traffic via a third-party which can analyse everything happening? The malware would just be a unprivileged process accessing the management interface, just like the GUI, right?
<conspiracy_thoughts>
I'm just thinking this would be an interesting approach in some less open countries, where OpenVPN is used to get access to the real free Internet.
Distributing a suitable malware on computers with this kind of OpenVPN
would be make them able to do such MITM attacks. </conspiracy_thoughts>
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9WWm4ACgkQDC186MBRfroL5ACeL3l0hBbGYvll4J9MtfmsByKs 37wAn058QuxJN7wiprc+UTbj2G4nN35c
=VJ4L
-----END PGP SIGNATURE-----
Re: [Openvpn-devel] OpenVPN Management Interface
Quoted 50 lines · David Sommerseth
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 44 lines · Alon Bar-Lev
Quoted 4 lines · Russell Morris
Hi,
Quoted 8 lines
That makes sense - thanks! I'm not a security expert by any means, so the thread lost me when it diverged into this area ... :-(.
At the risk of asking a stupid question (but that is my specialty ... :-)) - is there a conclusion of how to deal with this?
This is not a stupid question at all. In fact this is the correct question... The wrong question is the privilege separation.
I rephrase the question: What is missing within openvpn to allow proper UI management
Goal: To be able to support OpenVPN in complete privilege separation from the end-user, delegating user specific credentials.
OpenVPN core tasks:
1. Run without end-user credentials in OpenVPN configuration, meaning:
(Side note: there is no reason not to support both client and server in this mode.) a. For each session accept certificate via management interface. b. Delegate signature operations to management interface. Although this is already implemented but undocumented, it only support RSA, needs to be extended to other algorithms such as EC.2. Run without peer certificate validation in OpenVPN configuration,
meaning: a. Delegate peer-certificate validation to the management interface. b. No need for CA, EKU, Subject, CRL etc in configuration.3. Provide cross platform command-line tool to interact with the management interface, this is the supported project tool. a. Support passphrase. b. Support file based certificate/key (PKCS#1, PKCS#12). c. Support CryptoAPI. d. Support PKCS#11. e. Support peer certificate validation. f. Support basic logging. e. In future this simple CLI may transform to simple UI (Qt, GTK), similar to wpa_supplicant's
wpa_cli.[...snip...]
Quoted 7 lines
I like these thoughts a lot. It really makes a lot of sense.
However, how will this approach make sure that malware don't use such a (new) openvpn service to redirect all Internet traffic via a third-party which can analyse everything happening? The malware would just be a unprivileged process accessing the management interface, just like the GUI, right?
There are several challenges...
1. Multi user computer - we need to make sure one user cannot use another user credentials and not effect the other users. With changes I suggested there is full solution for this.
2. Defend user's data from server - by pushing/running script and/or altering the openvpn behavior. With changes I suggested there is full solution for this as long as openvpn runs under a different unprivileged account.
3. Defend user's data from hacker that gains control over openvpn daemon. Provided openvpn runs under its own unprivileged account, hacker can redirect communications but cannot access files and other resources.
Of course nothing can be done against hacker that gains privileged account... This is out of the scope of openvpn.
Also nothing can be done against hacker that gains access to user's account, as it can simply extract private key (if file based). Or request signature (if hardware based).
Quoted 7 lines
<
conspiracy_thoughts>
I'm just thinking this would be an interesting approach in some less open countries, where OpenVPN is used to get access to the real free Internet. Distributing a suitable malware on computers with this kind of OpenVPN would be make them able to do such MITM attacks. </conspiracy_thoughts>
If there is <something> that runs at workstation it is way too late to try and protect....
Alon.
Re: [Openvpn-devel] OpenVPN Management Interface
Quoted 3 lines · Alon Bar-Lev
1. Multi user computer - we need to make sure one user cannot use another user credentials and not effect the other users. With changes I suggested there is full solution for this.
Is that really a risk worth solving? I mean, does *anyone*, *anywhere* allow *any* form of end-user triggered VPN access from a multi-user machine? I cannot imagine (say) a Windows 2008 terminal server where users have local administrator privileges (huh?!?) and are allowed to create PPTP/L2TP/whatever links at will - it'd be chaos!
Here's what I see are the primary use-cases of openvpn (or any software vpn really)
1. Using openvpn as a router. No need to worry about this - as there are no local users
2. I believe anyone using openvpn on multi-user servers should be expected to have set authentication details for the management interface (or not use it at all...). Users wouldn't have admin privilege, so no concerns with stealing creds from memory
3. single-user computers where users have local admin. Malware would be an issue - but would be even with the best privilege separation (can you say "keylogger"?)
4. single-user computers where users don't have local admin. Privilege separation is a must for this scenario
Your comments on rogue servers is certainly worth discussing too. What can a rogue openvpn server push back to a client? Routes obviously - but other than screwing the client, is there any new risk? If the client has "pull" enabled, it is implicit that there's the opportunity for the client to find their network access corrupted by bad routes from the server. As the server is meant to be able to push routes to the client, I cannot see how that can ever be remediated (besides disabling "pull" and/or using "route-noexec/route-nopull", etc). However, the server can't tell the client to become a router (therefore opening up the client's internal network to be accessible from the server), nor can it force the client to create local accounts, install software, etc. So what are the actual risks?
Signature · 6 lines
Cheers Jason Haar Information Security Manager, Trimble Navigation Ltd. Phone: +1 408 481 8171 PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1
Re: [Openvpn-devel] OpenVPN Management Interface
In reply to David SommersethHallo David,
Quoted 3 lines
However, how will this approach make sure that malware don't use such a (new) openvpn service to redirect all Internet traffic via a third-party which can analyse everything happening?
A malware on openvpn endpoint can analyse all decrypted traffic. No need to redirect.
If you have malware on your system you've been lost. No need to worry about that scenario.
greetings
Carsten
Quoted 5 lines · On Thursday 01 March 2012 12:11:37 Heiko Hund wrote:
Quoted 2 lines · On Thursday 01 March 2012 11:59:11 Carsten Krüger wrote:
No. If you start a process in users context the user can modify it. There is nothing you could do against.
I'll do some tests next week and post my findings here.
Sorry, haven't had much time for tests this week. However, I've done some reading here's the preliminary plans on how to secure openvpn.exe and the named pipe handle.
It is false that you cannot set a process' mandatory label to a higher integrity level than the one in the token. Vista introduced the SE_RELABEL_NAME privilege specifically for that purpose. Apparently no default system account comes with the privilege assigned, though. As the "Local System" account on Windows 7 does not have it I wouldn't say it's very practical to go this way as admins would be forced to create a special "OpenVPN Service" account in order to run openvpn.
Instead I plan to secure the process (and the probably the pipe handle as well) against malicious operations by not granting the user any sophisticated access to it, i.e. you can only inject code if you can write the process' memory. This will be enforced by the security descriptor assigned to the process by the service at creation time. The service account will own the process object, so that the user cannot sneak his way in by modifying the DACL.
Hope I haven't overseen anything. If I did I'll be happy to receive feedback.
Regards
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Hi Heiko,
Am 9. März 2012 14:42 schrieb Heiko Hund <[email protected]...>:
Quoted 7 lines
Instead I plan to secure the process (and the probably the pipe handle as well) against malicious operations by not granting the user any sophisticated access to it, i.e. you can only inject code if you can write the process' memory. This will be enforced by the security descriptor assigned to the process by the service at creation time. The service account will own the process object, so that the user cannot sneak his way in by modifying the DACL.
As I'm not very familiar with the Windows nomenclature, I'm not sure whether I've correctly understood what you're saying. Does your approach prevent the user from injecting code into the OpenVPN process? Or does it only prevent the user from directly accessing the pipe? (IIUC you would need the integrity level approach to prevent the former so I assume you're describing how the pipe handle will be protected instead.)
Cheers
Fabian
Hello Heiko,
HH> It is false that you cannot set a process' mandatory label to a higher HH> integrity level than the one in the token.
That's not what I said.
It's not possible to assign an higher level than the user have to a users process.
Users can have low and medium, administrators can have hive high and system services can have system integerity level.
HH> Instead I plan to secure the process (and the probably the pipe handle as HH> well) against malicious operations by not granting the user any sophisticated HH> access to it, i.e. you can only inject code if you can write the process' HH> memory. This will be enforced by the security descriptor assigned to the HH> process by the service at creation time. The service account will own the HH> process object, so that the user cannot sneak his way in by modifying the HH> DACL.
Could you please create an tiny example exe for testing? I think it didn't work either.
I tried the following (disabled kernel process hacker):
1. run an instance of notepad as user Carsten (normal windows user, no admin)
2. entered "testtesttest"
3. run an instance of process hacker as user Carsten
4. tried to write to memory -> worked, closed process hacker
5. run an instance of process hacker as admin and stripped permissions for user Carsten completly, closed process hacker
6. run an instance of process hacker as user Carsten
7. tried to write to memory -> failed as you expected
8. add full permissions to process for user Carsten -> works !!!!!!!
9. tried to write to memory -> works !!!!!!!!
It's my process so it's possible for me to change the permissions !!!!! I think it didn't get better if a service creates a process for me.
greetings
Carsten
2012/3/9 Carsten Krüger <[email protected]...>:
Quoted 34 lines
Hello Heiko,
HH> It is false that you cannot set a process' mandatory label to a higher HH> integrity level than the one in the token.
That's not what I said.
It's not possible to assign an higher level than the user have to a users process.Users can have low and medium, administrators can have hive high and system services can have system integerity level.
HH> Instead I plan to secure the process (and the probably the pipe handle as HH> well) against malicious operations by not granting the user any sophisticated HH> access to it, i.e. you can only inject code if you can write the process' HH> memory. This will be enforced by the security descriptor assigned to the HH> process by the service at creation time. The service account will own the HH> process object, so that the user cannot sneak his way in by modifying the HH> DACL.
Could you please create an tiny example exe for testing? I think it didn't work either.
I tried the following (disabled kernel process hacker):
1. run an instance of notepad as user Carsten (normal windows user, no admin)
2. entered "testtesttest"
3. run an instance of process hacker as user Carsten
4. tried to write to memory -> worked, closed process hacker
5. run an instance of process hacker as admin and stripped permissions for user Carsten completly, closed process hacker
6. run an instance of process hacker as user Carsten
7. tried to write to memory -> failed as you expected
8. add full permissions to process for user Carsten -> works !!!!!!!
9. tried to write to memory -> works !!!!!!!!
Quoted 5 lines
It's my process so it's possible for me to change the permissions !!!!! I think it didn't get better if a service creates a process for me.
greetings
Carsten
I truly believe that these kind of solutions tend to be very complicated. Not sure why Heiko ignores the alternative I suggested.
Alon.
Hi Fabian,
Quoted 6 lines · On Friday 09 March 2012 16:34:19 Fabian Knittel wrote:
Does your
approach prevent the user from injecting code into the OpenVPN process? Or does it only prevent the user from directly accessing the pipe? (IIUC you would need the integrity level approach to prevent the former so I assume you're describing how the pipe handle will be protected instead.)
It tries to prevent both. While protecting the elevation pipe to the service from arbitrary use is the actual goal it can only be achieved by also protecting the process from modification. In Windows you can clone handles (i.e. the pipe handle) from another process into your process if you have sufficient rights. As Carsten pointed out one could also inject code into the openvpn.exe process and use the pipe in-process in a unintended way. I'm currently uncertain if it's possible to duplicate the pipe handle if access to the process itself is limited down to a minimum. I guess it is.
The integrity level thing is actually just a more convenient/automatic way to limit access to processes. Instead of limiting access manually through ACLs Windows will take care that a process with lower integrity level has limited access to one with a higher level by taking away rights of the calling process on a call by call basis during runtime.
Regards
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Hi Carsten,
Quoted 10 lines · On Friday 09 March 2012 17:09:07 Carsten Krüger wrote:
I tried the following (disabled kernel process hacker):
1. run an instance of notepad as user Carsten (normal windows user, no admin) 2. entered "testtesttest"
3. run an instance of process hacker as user Carsten
4. tried to write to memory -> worked, closed process hacker
5. run an instance of process hacker as admin and stripped permissions for user Carsten completly, closed process hacker
6. run an instance of process hacker as user Carsten
7. tried to write to memory -> failed as you expected
8. add full permissions to process for user Carsten -> works !!!!!!!
This won't work with openvpn.exe started by the service. In your test the process object security descriptor was owned by the user. The owner of an object is always granted write access to the security descriptor of the object, thus you could change the permissions back to whatever you desired. The openvpn.exe process security descriptor will be owned by the user the service is run as, i.e. Local System. That's what I meant by "The service account will own the process object, so that the user cannot sneak his way in by modifying the DACL."
Regards
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Hello Heiko,
HH> The openvpn.exe process security descriptor will be owned by the user the HH> service is run as, i.e. Local System.
Ok. I was unsure if the openvpn.exe is started as user x it will be the owner, even if it's started from the service.
HH> That's what I meant by "The service
HH> account will own the process object, so that the user cannot sneak his way in HH> by modifying the DACL."
I see.
I'm looking forward to see the next version :-)
greetings
Carsten
Hi all,
I had a brief email discussion about the OpenVPN privilege separation thing with James Yonan and realized that even after having read all relevant emails a couple of times, I still had a fairly vague idea of various approaches suggested here. So, to clarify my own thoughts (and to hopefully help others) I wrote this Wiki page:
<https://community.openvpn.net/openvpn/wiki/PrivilegeSeparation>
James proposed yet another alternative to handle the privilege separation. It should not require OpenVPN code changes:
<https://community.openvpn.net/openvpn/wiki/PrivilegeSeparation#GUIservice>
Also, he shared some thoughts about implementing the interactive service:
<https://community.openvpn.net/openvpn/wiki/PrivilegeSeparation#Interactiveservice>
NOTE: the wiki page is incomplete and I may have omitted many important things. Please fix them instead of complaining here :).
Signature · 5 lines
Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock
Great Summary!
Although I tried to go farther... that what James suggested. What is the baseline? This what we should agree first... Should openvpn daemon be run on completely unprivileged account or not.
Quoted 30 lines · Samuli Seppänen
Hi all,
I had a brief email discussion about the OpenVPN privilege separation thing with James Yonan and realized that even after having read all relevant emails a couple of times, I still had a fairly vague idea of various approaches suggested here. So, to clarify my own thoughts (and to hopefully help others) I wrote this Wiki page:
<https://community.openvpn.net/openvpn/wiki/PrivilegeSeparation>
James proposed yet another alternative to handle the privilege separation. It should not require OpenVPN code changes:
<https://community.openvpn.net/openvpn/wiki/PrivilegeSeparation#GUIservice>
Also, he shared some thoughts about implementing the interactive service:
<https://community.openvpn.net/openvpn/wiki/PrivilegeSeparation#Interactiveservice>
NOTE: the wiki page is incomplete and I may have omitted many important things. Please fix them instead of complaining here :).
--
Samuli Seppänen
Community Manager
OpenVPN Technologies, Incirc freenode net: mattock
Hi
Quoted 3 lines · On Monday 12 March 2012 19:01:41 Alon Bar-Lev wrote:
Although I tried to go farther... that what James suggested. What is the baseline? This what we should agree first... Should openvpn daemon be run on completely unprivileged account or not.
I don't support the idea about running openvpn.exe with elevated privileges. It has been run as the user before and that worked fine until Microsoft limited access to system resources in Vista. The service approach with the elevation pipe solves exactly that problem.
Openvpn is very complex, running is under a privileged account is a security risk in my opinion. The elevation pipe offers a very limited and well defined interface to configure needed system resources only and tries hard to allow access for openvpn.exe only. If you compare what the possibilities of an attacker would be if the openvpn.exe process is compromised in both scenarios there's not much room to argue IMO.
Regards
Heiko
Signature · 8 lines
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200 Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe Represented by the General Partner Astaro Verwaltungs GmbH Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen, Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen
Quoted 19 lines
Hi
Quoted 3 lines · On Monday 12 March 2012 19:01:41 Alon Bar-Lev wrote:
Although I tried to go farther... that what James suggested. What is the baseline? This what we should agree first... Should openvpn daemon be run on completely unprivileged account or not.
I don't support the idea about running openvpn.exe with elevated privileges. It has been run as the user before and that worked fine until Microsoft limited access to system resources in Vista. The service approach with the elevation pipe solves exactly that problem.
Openvpn is very complex, running is under a privileged account is a security risk in my opinion. The elevation pipe offers a very limited and well defined interface to configure needed system resources only and tries hard to allow access for openvpn.exe only. If you compare what the possibilities of an attacker would be if the openvpn.exe process is compromised in both scenarios there's not much room to argue IMO.
Quoted 2 lines
Regards
Heiko
Heiko,
Could you take a look here to verify I'm describing your approach correctly:
<https://community.openvpn.net/openvpn/wiki/PrivilegeSeparation#Interactiveservice>
Also, if anyone has anything to add to the interactive service "Details for successful implementation" section, please do so. Things along the lines "this needs to be taken care of, or all hell breaks loose". As James says, we need to be very careful to avoid privilege escalation bugs.
I'll also try to get James to explain his GUI/service separation approach in more detail, maybe in an IRC meeting...
Signature · 5 lines
Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock
Hi,
2012/3/13 Heiko Hund <[email protected]...>:
Quoted 8 lines · On Monday 12 March 2012 19:01:41 Alon Bar-Lev wrote:
Quoted 2 lines
What is the baseline? This what we should agree first... Should openvpn daemon be run on completely unprivileged account or not.
I don't support the idea about running openvpn.exe with elevated privileges. It has been run as the user before and that worked fine until Microsoft limited access to system resources in Vista. The service approach with the elevation pipe solves exactly that problem.
I agree that being able to run openvpn in an unprivileged account is a worthwhile goal. The GUI/service-proposal does not appear to achieve that while the other two do.
For regular desktop systems the unprivileged account could potentially be the interactive users account. For enterprise systems, the unprivileged account should probably be separate from the interactive user's account. Only the COM+ approach appears to achieve the latter requirement. Of course, the GUI/service-proposal could be combined with the interactive service proposal to achieve something quite similar. (I don't see the interactive service proposal as sufficient for the enterprise case, because the user still has too much control over the connection (where to connect, what scripts to run, etc.))
Cheers
Fabian