• 0 Votes
    13 Posts
    2k Views
    I
    @stephenw10 Yes it is. And I disabled vmware virtual network local dhcp ANd it works. Thank you for your patience ! You really helped me out on this, have a nice day/night [image: 1687387415421-c3e53068-4ad2-4014-9e91-1c1ec4ab18d3-image.png]
  • 0 Votes
    4 Posts
    1k Views
    GertjanG
    @cxcx_avjj Hummm. After a success login, I simply redirect the user to the known : [image: 1680679212827-95300287-8e35-4a7f-823b-a26585729c92-image.png] as that would make the user understand he is 'online'. But I could also redirect to a "home made", locally available web page, like the portal login page. This file should be uploaded with the Services>Captive Portal>CPZONE>File Manager Be aware : the prefix "captiveporal-" will get prefixed. Take a look at what this button shows you : [image: 1680679588280-c3c27d9a-d1d4-4fb1-9c2d-c7c7bc0515fc-image.png] You will see the login page. And more important : the URL used, with the port number, as it is not port 80 (http) or 443 (https). Probably a 800x port. And the zone ID used with a parameter called 'zone'. So, this is posisbile : [image: 1680679841607-ec125b9e-23a2-4703-86f7-640e3760853a-image.png] Where : https://portal.yourzone.tld = your captive portal URL - I'm a https access :8003/ The port of this 'cpzone1 ID access captiveportal-recap.html My home made file called 'recap.html' ?zone=cpzone1 My zone ID of this portal zone The "recap.html" html can have use PHP ! And because you can use PHP, and the recap.html is called with the "?zone=cpzone" parameter, you can now access whatever you want ! Take /usr/local/captiveportal/index.php as an example. You'll see how it extract the zone argument. If, for example, you use vouchers, you can test vouchers for time left : Status > Captive Portal > CPZONE > Test Vouchers Just take a look at /usr/local/www/status_captiveportal_test.php and you'll know how to extract the time from a given voucher. How do you know what voucher is used ? Well, your 'recap.html' can obtain the IP your device is using. With this IP, and the "connected users database" (see /etc/inc/captiveportal.inc - this file is a must-read-and-understand) you can get the user login code, which is the voucher code. With the voucher code you can obtain the time left. Want to know what the default popup logout window does - or how to log out a user? Again, go have a look at /etc/inc/captiveportal.inc So, yes, the sky is the limit. An yes, this goes beyond what you can find in the GUI.