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

    Voucher Sync Https Port

    Scheduled Pinned Locked Moved Captive Portal
    2 Posts 1 Posters 2.0k 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.
    • C
      carbm1
      last edited by

      I have two locations that users frequently travel back and forth between. I have vouchers setup and I would like to generate vouchers on one system and when the user goes to the other location they can use the same voucher and it work. However, I can't get the sync to work over https if the webconfigurator port is changed from 443.

      The error recieved is:
      
      The following input errors were detected:
      An error code was received while attempting CaptivePortalVoucherSync XMLRPC sync with http://[ipaddress]:10443 - Code 2: Invalid return payload: enable debugging to examine incoming payload
      

      You can see that is changes to http instead of https if I use any other port than 443.

      I opened up /etc/inc/voucher.inc and modified the if statement in 3 places.

      	if($port == "10443") 
      		$url = "https://{$syncip}";
      	else 
      		$url = "https://{$syncip}";
      

      However this doesn't make a difference. I can't seem to figure out where it is deciding to use https or http.

      Anybody know how to fix this?

      Thanks,

      Craig

      1 Reply Last reply Reply Quote 0
      • C
        carbm1
        last edited by

        Many moons later this issue came up again.

        Edit /usr/local/www/services_captiveportal_vouchers.php

        Line 234:

        
        if($config['voucher']['vouchersyncport'] == "443") 
        
        

        Change to:

        
        if($config['voucher']['vouchersyncport'] == "10443") 
        
        

        Hope this helps someone else.

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