Skip to contentSkip to conversation

enable P2MP opentions?

Openvpn-devel jay alco 3 participants 3 messages Jul 25, 2012

lore
Share & tools
lore

jay alco

author
#0 lore raw

Hi, i build openvpn from source with the following featured disabled SSL, CRYPTO. I have successfully build openpn without this option but during the test running the server configuration it gives me error

Options error: Unrecognized option or missing parameter(s) in config.ovpn:6: client-cert-not-required (2.2.2)

i user the following options.

local xxx.xxx.xxx.xxx
port 800
proto tcp
dev tun

client-cert-not-required
script-security 2
username-as-common-name
plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login server 10.10.0.0 255.255.255.0
persist-key
persist-tun

It looks like all options under P2MP and P2MP_SERVER are disable when i disable SSL, CRYPTO. and for that i can not use client-cert-not-required, username-as-common-name, server X X, etc.. and cannot run the server. How do i eneable P2MP and P2MP_SERVER during build?

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 25/07/12 07:57, jay alco wrote:
[...snip...]

Quoted 5 lines

It looks like all options under P2MP and P2MP_SERVER are disable when i disable SSL, CRYPTO. and for that i can not use client-cert-not-required, username-as-common-name, server X X, etc.. and cannot run the server. How do i eneable P2MP and P2MP_SERVER during build?

OpenVPN does not support P2MP mode without PKI (certificates/keys). So what you're trying to do is not possible. And even though you want to use --client-cert-not-required, the server-side would still need both a key and a certificate. And the client would still need the CA certificate which issued the server certificate.

In addition common name is used in the code paths which are related to X509 verifications. These code paths are also disabled when SSL/CRYPTO features are disabled. Which again would remove the
- --username-as-common-name feature.

Compiling without SSL/CRYPTO will only make it possible to use P2P mode, which means you need a single OpenVPN process using a dedicated port for each client.

Further, if you want to use --secret instead of SSL/TLS certificates, that would be really a weak solution in a P2MP setup, as all clients would be able to decrypt the traffic from all other clients. Using SSL/TLS certificates, each client have an individual encryption so it would be much harder for other clients to eavesdrop other connected clients communication.

kind regards,

David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAPqeEACgkQDC186MBRfro0DgCgg2eckszK19J/6WFzj4zajQmn 3GMAn2KfoqiYWdJ/ygTV8GW21apBLOkA
=vsQE
-----END PGP SIGNATURE-----

#2 lore raw
In reply to jay alco

Hi,

Quoted 6 lines · jay alco

Hi, i build openvpn from source with the following featured disabled SSL, CRYPTO. I have successfully build openpn without this option but during the test running the server configuration it gives me error

Options error: Unrecognized option or missing parameter(s) in config.ovpn:6: client-cert-not-required (2.2.2)

If you build without SSL, none of the SSL-related options are compiled in (surprise!).

[..]

Quoted 4 lines

It looks like all options under P2MP and P2MP_SERVER are disable when i disable SSL, CRYPTO. and for that i can not use client-cert-not-required, username-as-common-name, server X X, etc.. and cannot run the server. How do i eneable P2MP and P2MP_SERVER during build?

P2MP_SERVER requires SSL to operate - if you disable SSL, there is no way you can use the OpenVPN server functionality. All you can do is use OpenVPN in point-to-point mode.

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]...