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

    Include XML code in HTTP request for WISPr compliance

    Scheduled Pinned Locked Moved Captive Portal
    9 Posts 4 Posters 6.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.
    • G
      guus77
      last edited by

      Hi all,
      I'm realizing an hot spot with captive portal + radius and, in order to allow access to roaming partners, I need to include the following XML code

      <wispaccessgatewayparam<br>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="https://login.linkem.com/smaccd/gis/WISPAccessGatewayParam.xsd">

      <redirect><accessprocedure>1.0</accessprocedure>
          <accesslocation>SomeLocationId</accesslocation>
          <locationname>SomeLocationName</locationname>
          <loginurl>https://login….............</loginurl>
          <abortloginurl>https://login.l.....................</abortloginurl>
          <messagetype>100</messagetype>
          <responsecode>0</responsecode></redirect>

      in HTTP request.
      Roaming partner client (having stored the right credentials) has to bypass the login page and access Internet but without including XML code this operation is not possible.
      How can I do?

      Thanx in advance for your support</wispaccessgatewayparam<br>

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

        This means adding a new feature to CP.
        For this you have to look at the code of CP depending on the version you are doing this.

        1 Reply Last reply Reply Quote 0
        • L
          Lee Sharp
          last edited by

          It was a few years back, but Jonathan and I spent a BUNCH of time making the m0n0wall implementation of CP wispr compliant.  And to my knowledge, no one broke anything in the series of ports since. :)  (Of course, they could have changed wispr a bit since then.)  Now some of the features are passed by the html of your login page…  How are you doing yours and what is failing?

          1 Reply Last reply Reply Quote 0
          • G
            guus77
            last edited by

            Thanx for your reply.
            Sincerely I don't have idea about to solve my problem.
            The scenario is:

            • user (roaming partner of the company that offers wireless services) launch a client on his pc. This client has stored the right credentials and bypass the login page of pfsense captive portal offering direct access to Internet
            • In order to work is necessary that the config xml file that I've posted is sent during the POST

            Some ideas?

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

              guus77 the only way is to extend CP to handle this.
              Only development will make that work.

              1 Reply Last reply Reply Quote 0
              • G
                guus77
                last edited by

                Thanx for your help.
                Do you have any idea about how I can modify the source code?

                1 Reply Last reply Reply Quote 0
                • D
                  dhatz
                  last edited by

                  @guus77:

                  Do you have any idea about how I can modify the source code?

                  guus, with all due respect, if you have to ask this, then you should consider subcontracting this feature to the pfSense core developers, who are intimately familiar with the CP code. Especially if you want to use this feature in a production setup, not just for testing.

                  1 Reply Last reply Reply Quote 0
                  • L
                    Lee Sharp
                    last edited by

                    I would need to see some other working code, but you might be able to put that in your login page html and still have it work.  Ping me directly if I loose track of this again. :)

                    1 Reply Last reply Reply Quote 0
                    • G
                      guus77
                      last edited by

                      You are saying that there is a chance to obtain this wispr compliance without asking help to pfsense developers? If yes do you have a suggest for me?

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