Lock Voucher to one MAC address… $100



  • The voucher on the captive portal can be reused on different equipments…
    I need the voucher to be usable only on one machine based on mac address.

    Thanx in advance...



  • Any One? :(



  • :-\



  • @hardy_rafael17:

    :-\

    Have you tried disabling concurrent logins? What exactly is the problem you are trying to solve.


  • LAYER 8 Netgate

    Disable Concurrent Logins replaces the logged in MAC address with the next one that uses the voucher.

    Seems good enough to me, and allows people to switch from wireless to wired and back again if they want without creating an interrupt.

    OP might want the voucher to only work once and reject subsequent uses.



  • Thank you for your reply….

    I have different prices for different devices... let's say...  mobile phones cost less than desktop pcs and laptos...
    so if a clent gets a voucher.. after he or she leaves the store they could use the voucher for any device they want... I don't want clients to use the voucher on any other machine after they activate it on the phone....

    the problem is not concurrent logins I know how that works... and is not what I need.... thanks in advance....



  • @hardy_rafael17:

    Thank you for your reply….

    I have different prices for different devices... let's say...  mobile phones cost less than desktop pcs and laptos...
    so if a clent gets a voucher.. after he or she leaves the store they could use the voucher for any device they want... I don't want clients to use the voucher on any other machine after they activate it on the phone....

    the problem is not concurrent logins I know how that works... and is not what I need.... thanks in advance....

    This is a much clearer explanation. Thanks



  • Do you still need this feature?


  • LAYER 8 Netgate

    Doesn't:

    Disable Concurrent Logins
    Enable Passthrough MAC
    Enable Passthrough MAC with username
    Vouchers

    Do this out of the box?

    portal_reply_page($redirurl, "error", "Username: {$username} is already authenticated using another MAC address.",
    $clientmac, $clientip, $username, $password);

    Do I still get $100?

    (The return call right after that should probably be an exit to avoid double-tapping portal_reply_page())



  • @marcelloc:

    Do you still need this feature?

    Marcelloc… thank you... but I think that the way Derelict showed it was exactly what I was looking for... thank you anyways...


  • LAYER 8 Netgate

    $100?



  • @Derelict:

    Do I still get $100?

    Derelict… It seems that this is exactly what I was looking for.... thank you in so many ways...
    ... Now... since there was no coding from your part and what you told me to do was surprisingly simple...

    Would it be o.k with you if I only add 30 for you???... how do I pay you... I got Paypal...
    Thank you...


  • LAYER 8 Netgate

    I was really just funnin' you.  If you really want to fork over $30, please send it here: https://supporters.eff.org/donate



  • :) That donation was just made…  :)

    Thanks Again You guys are great!!!

    "Thank you for donating!

    Thank you for donating to the Electronic Frontier Foundation! We're proud to stand for your rights and will continue to fight for the user."


Log in to reply