Tomato Username/Password Authentication

Discussion in 'Tomato Firmware' started by Lavas, Jun 13, 2012.

  1. Lavas

    Lavas Serious Server Member

    I am trying to set up a VPN with multiple users which ideally would all have a unique username/password combo that is set up solely in the tomato GUI.

    I've tried what has been suggested in this thread and this one . Both fail to connect and are rejected. Here is the relevant information.

    Log File

  2. Lavas

    Lavas Serious Server Member

  3. Lavas

    Lavas Serious Server Member

    Script/init file
    echo '#!/bin/sh
    pass=`awk "\\\$1 == \"${username}\" { print substr(\\\$0,length(\\\$1)+2) }" /tmp/openvpn-auth`
    test -n "$pass" && test "$pass" == "${password}" && exit 0
    exit 1' > /tmp/
    chmod 755 /tmp/
    echo '
    user1 pass1
    user2 pass2
    user3 pass3
    user4 pass4
    ' > /tmp/openvpn-auth
    Server Custom Configuration
    script-security 3
    auth-user-pass-verify /tmp/openvpn-auth via-env
    Client Configuration
    dev tun
    tun-mtu 1400
    proto tcp-client
    remote XXX.XXX.XXX.XXX 1194
    script-security 3
    resolv-retry infinite
    cipher BF-CBC 
    ca ca.crt
    cert client1.crt
    key client1.key
    ns-cert-type server
    verb 5
    Tomato is version 1.28. Any help at all would be greatly appreciated.
  4. dada124

    dada124 Serious Server Member

    Would it be difficult to add this to the GUI directly? It would be much more convenient...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice