Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Voucher database synchronization

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    21 Posts 4 Posters 17.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      stefanero
      last edited by

      Well good morning,

      I tryed latestet snapsshot

      2.0-RC1 (i386) 
      built on Wed Mar 9 18:16:20 EST 2011 
      
      You are on the latest version.
      

      and deleted all my existing vouchers on the system in the LAN, then created a new roll and syncted it to the DMZ server.

      but still -> no go

      system logs on dmz box:

      Mar 10 08:11:22	php: /index.php: CaptivePortalVoucherSync XMLRPC reload data success with http://lan-server-ip:8080:8080 (pfsense.exec_php).
      Mar 10 08:11:22	php: /index.php: Captive Portal Voucher XMLRPC sync data http://lan-server-ip:8080:8080.
      

      captive logs on dmz box:

      Mar 10 08:13:05	logportalauth[36258]: TIMEOUT: qNday4Qihc63, , ip-addr
      Mar 10 08:11:22	logportalauth[60559]: Voucher login good for 1 min.: qNday4Qihc63, , ip-addr
      

      and its a 1440 min voucher  :-\ so again only the 1st digit is taken into account for voucher lifetime

      the tests on the test pages were showing informations just fine.

      Also in the Lan-pfsense I can see in the voucher status page:

      qNday4Qihc63	1	03/10/2011 08:11:22	1432 min	03/11/2011 08:11:22
      

      cu
      stefanero

      WE ARE THE MICROSOFT! YOU'LL BE ASSIMILATED! RESISTANCE IS FUTILE!

      1 Reply Last reply Reply Quote 0
      • S Offline
        stefanero
        last edited by

        Hi again,

        thought I tryed latest snapshot again.

        But problem still present.

        2.0-RC1 (i386) 
        built on Sun Mar 13 06:53:56 EDT 2011 
        
        
        
        Mar 14 09:36:31	logportalauth[61338]: Voucher login good for 1 min.: sJ74hkCMmQz, , 172.31.128.9
        
        

        cu
        stefanero

        WE ARE THE MICROSOFT! YOU'LL BE ASSIMILATED! RESISTANCE IS FUTILE!

        1 Reply Last reply Reply Quote 0
        • S Offline
          stefanero
          last edited by

          Hello,

          still not working btw, "mar 20th" snapshot

          WE ARE THE MICROSOFT! YOU'LL BE ASSIMILATED! RESISTANCE IS FUTILE!

          1 Reply Last reply Reply Quote 0
          • E Offline
            eri--
            last edited by

            Can you show me a screenshot of how you have configured the sync voucher section on pfSense?

            1 Reply Last reply Reply Quote 0
            • S Offline
              stefanero
              last edited by

              Hi erml,

              sure I can attached is a screenshot.

              The internal pfsense runs on a class 10 - priv network, we use a different user and run on port 8080 instead of the default.

              Like I already wrote in my previous posts, I think the syncronization is kinda working.

              Going to Status -> Captive Portal, I can see the rolls from the Lan - pfSense and also the test page with a voucher from lan works fine.

              Its only a matter when I actually use a voucher on a laptop.

              cu
              stefanero

              screenshot_002.png
              screenshot_002.png_thumb

              WE ARE THE MICROSOFT! YOU'LL BE ASSIMILATED! RESISTANCE IS FUTILE!

              1 Reply Last reply Reply Quote 0
              • S Offline
                sullrich
                last edited by

                Check tomorrow's snapshot.  I am about to commit a fix for this.

                1 Reply Last reply Reply Quote 0
                • S Offline
                  stefanero
                  last edited by

                  Thank you very much.

                  I will let you know as soon as possible.

                  cu
                  stefanero

                  WE ARE THE MICROSOFT! YOU'LL BE ASSIMILATED! RESISTANCE IS FUTILE!

                  1 Reply Last reply Reply Quote 0
                  • Q Offline
                    qbik
                    last edited by

                    Can this be implemented to sync on a non pfsense machine? To send info an sync with another DB?

                    1 Reply Last reply Reply Quote 0
                    • E Offline
                      eri--
                      last edited by

                      If you can talk the same xmlrpc than yes you can implement it somewhere else.

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        stefanero
                        last edited by

                        Good  morning,

                        well sry to tell but still no difference to the situation before.

                        Voucher	Roll	Activated at	Expires in	Expires at	
                        adjYYXFyUe73	1	03/25/2011 08:34:21	0 min	03/25/2011 08:35:21
                        

                        It should have been a 1440 min voucher and not just 1 minute. The sync works as before, I can test the vouchers on the test page showing up fine with a duration of 1440 minutes,
                        but when they get entered in the client, the duration is just the first digit of the duration of the voucher.

                        so when a voucher runs 200 minutes, the duration is 2, when a voucher is valid 300  minutes the duration is 3… and so on.

                        regards
                        Stefanero

                        WE ARE THE MICROSOFT! YOU'LL BE ASSIMILATED! RESISTANCE IS FUTILE!

                        1 Reply Last reply Reply Quote 0
                        • E Offline
                          eri--
                          last edited by

                          Now should be all functioning properly.
                          Test with latest snapshots.

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            stefanero
                            last edited by

                            Hi ermal,

                            this is looking good now, finally working :)

                            thnx a lot to you and sullrich

                            stefanero

                            WE ARE THE MICROSOFT! YOU'LL BE ASSIMILATED! RESISTANCE IS FUTILE!

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.