OpenVPN install auth against OpenLDAP
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 8
- Joined: Thu Jul 09, 2015 11:19 am
OpenVPN install auth against OpenLDAP
Hello all,
I have been using pptpd for years. I use pptp as VPN server and delegate auth with freeradius.
I wanted to use openVPN auth against our openLdap. And for users, I want them to use their username and password to connect to VPN. can you guys point me to right userguide ?
I have been using pptpd for years. I use pptp as VPN server and delegate auth with freeradius.
I wanted to use openVPN auth against our openLdap. And for users, I want them to use their username and password to connect to VPN. can you guys point me to right userguide ?
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: OpenVPN install auth against OpenLDAP
you have 2 ways,
1)configure your system PAM stack to use ldap or
2)use openvpns ldap module.
Michael.
1)configure your system PAM stack to use ldap or
2)use openvpns ldap module.
Michael.
-
- OpenVpn Newbie
- Posts: 8
- Joined: Thu Jul 09, 2015 11:19 am
Re: OpenVPN install auth against OpenLDAP
Thanks,
I see there is a ldap module from openvpns - I will try using that.
another question is, will vpn client always have to have a certificate or generate certificate to each vpn client ?
K
I see there is a ldap module from openvpns - I will try using that.
another question is, will vpn client always have to have a certificate or generate certificate to each vpn client ?
K
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: OpenVPN install auth against OpenLDAP
you can use user/pass auth only..
Michael.
Michael.
-
- OpenVpn Newbie
- Posts: 8
- Joined: Thu Jul 09, 2015 11:19 am
Re: OpenVPN install auth against OpenLDAP
Okay, thanks
for the testing enviornment. I have three IP address
server 192.168.1.1 (this is where it listen etc)
clients1 192.168.1.2
clients2 192.168.1.3
clients3 192.168.1.4
and i wanted to do dev tun - where shall i tell openvpn server user these three address for the client ?
for the testing enviornment. I have three IP address
server 192.168.1.1 (this is where it listen etc)
clients1 192.168.1.2
clients2 192.168.1.3
clients3 192.168.1.4
and i wanted to do dev tun - where shall i tell openvpn server user these three address for the client ?
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: OpenVPN install auth against OpenLDAP
you cant have the same ip range in both lan & vpn interface,
you can assign static ips to your clients by using ccd files.
Michael.
you can assign static ips to your clients by using ccd files.
Michael.
-
- OpenVpn Newbie
- Posts: 8
- Joined: Thu Jul 09, 2015 11:19 am
Re: OpenVPN install auth against OpenLDAP
humm why can't ? At present I have one whole subnet for the VPN server, where 1st IPs is for VPN server interface rest is for the VPN clients.
All I am trying to testing here and there to move from pptpd to openvpn.
All I am trying to testing here and there to move from pptpd to openvpn.
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: OpenVPN install auth against OpenLDAP
Meaning that you CANT have lan ip 192.168.110 and vpn ip 192.168.1.1 when you useyou cant have the same ip range in both lan & vpn interface,
openvpn in tun mode.
i think you didnt understood what i said...At present I have one whole subnet for the VPN server, where 1st IPs is for VPN server interface rest is for the VPN clients.
Michael.
-
- OpenVpn Newbie
- Posts: 8
- Joined: Thu Jul 09, 2015 11:19 am
Re: OpenVPN install auth against OpenLDAP
ah, Now I understood.
my server is up and running now !!!
where can I dowload openvpn client for mac, windows ? seem openvpn client from openvpn - licensed ?
K
my server is up and running now !!!
where can I dowload openvpn client for mac, windows ? seem openvpn client from openvpn - licensed ?
K
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: OpenVPN install auth against OpenLDAP
openvpn open source edition is the SAME binary acting as server/client depending on its config file.
AS version is NOT free...
Michael.
AS version is NOT free...
Michael.
-
- OpenVpn Newbie
- Posts: 8
- Joined: Thu Jul 09, 2015 11:19 am
Re: OpenVPN install auth against OpenLDAP
Hi Again,
I am having trouble openvpn with client authentication.
I have now physical hardware with two physical interface. eth0 and eth1
I have been given a small subnet by the network administrator which I wanted to use for Openvpn via eth1 here are my server.conf and client.conf
clients.conf
When I am trying to connect from client I get the following message on the server.
I used self signed certificate.
Any guidance would be great
I am having trouble openvpn with client authentication.
I have now physical hardware with two physical interface. eth0 and eth1
I have been given a small subnet by the network administrator which I wanted to use for Openvpn via eth1 here are my server.conf and client.conf
Code: Select all
local 130.208.143.88
proto udp
dev tun
ca ca.crt
cert jord.crt
key jord.key
dh dh2048.pem
server 130.208.72.64 255.255.255.240
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
log /var/log/openvpn.log
verb 5
plugin /usr/lib64/openvpn/plugin/lib/openvpn-auth-ldap.so /etc/openvpn/auth/ldap.conf
client-cert-not-required
username-as-common-name
Code: Select all
client
proto udp
dev tun
remote 130.208.143.88
ca ca.crt
comp-lzo
auth-user-pass
verb 5
Code: Select all
Mon Sep 21 11:16:25 2015 us=979107 MULTI: multi_create_instance called
Mon Sep 21 11:16:25 2015 us=979211 130.208.144.79:1194 Re-using SSL/TLS context
Mon Sep 21 11:16:25 2015 us=979265 130.208.144.79:1194 LZO compression initialized
Mon Sep 21 11:16:25 2015 us=979450 130.208.144.79:1194 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:3 ]
Mon Sep 21 11:16:25 2015 us=979472 130.208.144.79:1194 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:143 ET:0 EL:3 AF:3/1 ]
Mon Sep 21 11:16:25 2015 us=979648 130.208.144.79:1194 Local Options String: 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Mon Sep 21 11:16:25 2015 us=979683 130.208.144.79:1194 Expected Remote Options String: 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Mon Sep 21 11:16:25 2015 us=979716 130.208.144.79:1194 Local Options hash (VER=V4): '530fdded'
Mon Sep 21 11:16:25 2015 us=979741 130.208.144.79:1194 Expected Remote Options hash (VER=V4): '41690919'
RMon Sep 21 11:16:25 2015 us=979815 130.208.144.79:1194 TLS: Initial packet from [AF_INET]130.208.144.79:1194, sid=4dff416d d16921f6
WRRWWWWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRWRMon Sep 21 11:16:28 2015 us=13015 130.208.144.79:1194 TLS: new session incoming connection from [AF_INET]130.208.144.79:1194
WWRWWWWWWWWWWWWWWWMon Sep 21 11:17:25 2015 us=218778 130.208.144.79:1194 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Mon Sep 21 11:17:25 2015 us=218818 130.208.144.79:1194 TLS Error: TLS handshake failed
Mon Sep 21 11:17:25 2015 us=218961 130.208.144.79:1194 SIGUSR1[soft,tls-error] received, client-instance restarting
Any guidance would be great
- Traffic
- OpenVPN Protagonist
- Posts: 4066
- Joined: Sat Aug 09, 2014 11:24 am
Re: OpenVPN install auth against OpenLDAP
You need a script to drive that; See --auth-user-pass-verify in The Manual v23xkhapare wrote:plugin /usr/lib64/openvpn/plugin/lib/openvpn-auth-ldap.so /etc/openvpn/auth/ldap.conf
-
- OpenVpn Newbie
- Posts: 8
- Joined: Thu Jul 09, 2015 11:19 am
Re: OpenVPN install auth against OpenLDAP
isn't this plugin should handle the openldap auth ?
plugin /usr/lib64/openvpn/plugin/lib/openvpn-auth-ldap.so /etc/openvpn/auth/ldap.conf
ldap.conf has a information where to get the users from
What script need to be kick on ?
plugin /usr/lib64/openvpn/plugin/lib/openvpn-auth-ldap.so /etc/openvpn/auth/ldap.conf
ldap.conf has a information where to get the users from
What script need to be kick on ?