Koozali.org: home of the SME Server

auth-user-pass-verify in OpenVPN

Offline peterphi

  • *
  • 17
  • +0/-0
auth-user-pass-verify in OpenVPN
« on: July 18, 2008, 08:49:16 AM »
Hi!
[root@sme easy-rsa]# cd ..
[root@sme openvpn]# wget -N http://sme.swerts-knudsen.dk/downloads/OpenVPN/server.conf
[root@sme openvpn]# mkdir -p /var/log/openvpn
[root@sme openvpn]# wget -N http://sme.swerts-knudsen.dk/downloads/OpenVPN/logoff.sh
[root@sme openvpn]# wget -N http://sme.swerts-knudsen.dk/downloads/OpenVPN/logoff_user.pl
[root@sme openvpn]# wget -N http://sme.swerts-knudsen.dk/downloads/OpenVPN/validate.sh
[root@sme openvpn]# wget -N http://sme.swerts-knudsen.dk/downloads/OpenVPN/validate_user.pl
[root@sme openvpn]# wget -N http://sme.swerts-knudsen.dk/downloads/OpenVPN/openvpn.up
[root@sme openvpn]# chmod 755 *.pl
[root@sme openvpn]# chmod 755 *.sh
[root@sme openvpn]# chmod 700 *.up

Server config file
 port 1194
dev tap
tls-server
dh dh1024.pem
ca ca.crt
cert server.crt
key server.key
auth-user-pass-verify ./validate.sh via-env
client-disconnect ./logoff.sh
up ./openvpn.up

Client config file
 port 1194
dev tap
remote vpn.yourdomain.com
tls-client
auth-user-pass

So may i have a question, how to create usename&password for auth-user-pass-verify. Where is it?
Thaks
Best Regard,

Offline jester

  • *
  • 496
  • +1/-0
Re: auth-user-pass-verify in OpenVPN
« Reply #1 on: July 18, 2008, 09:50:23 AM »
Hi Peterphi,

You might want to try the smeserver-openvpn-bridge contrib: http://sme.firewall-services.com/spip.php?rubrique3

HTH,
Jester.

Offline peterphi

  • *
  • 17
  • +0/-0
Re: auth-user-pass-verify in OpenVPN
« Reply #2 on: July 18, 2008, 10:23:38 AM »
I would like you see this page is clear below
"The Client installation is now complete and the user will be prompted upon login for the username and passwords." So may i ask where'r username and passwords when client login

http://sme.swerts-knudsen.dk/index.html?frame=http%3A//sme.swerts-knudsen.dk/howtos/howto_30.htm

Thanks
Best Regard,

Offline byte

  • *
  • 2,183
  • +2/-0
Re: auth-user-pass-verify in OpenVPN
« Reply #3 on: July 18, 2008, 06:52:18 PM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: auth-user-pass-verify in OpenVPN
« Reply #4 on: July 18, 2008, 08:34:39 PM »
The user uses the same user/password created in the SME panel.
Knudsen's VPN is in routed-mode and works 100%, firewall-service's uses bridged-mode and may cause other problems.

Offline peterphi

  • *
  • 17
  • +0/-0
Re: auth-user-pass-verify in OpenVPN
« Reply #5 on: July 18, 2008, 09:35:19 PM »
The user uses the same user/password created in the SME panel.
Knudsen's VPN is in routed-mode and works 100%, firewall-service's uses bridged-mode and may cause other problems.

Thank you very much, i understood and installing.

Best Regard,

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Re: auth-user-pass-verify in OpenVPN
« Reply #6 on: September 01, 2008, 02:02:10 PM »
I have just updated the Howto to fit better with SME7, updated RPMs and placed it on the wiki. I might throw the added modules (the scripts) in a RPM one of these days.

http://wiki.contribs.org/OpenVPN

Enjoy,
Jesper