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

    Free access (gues access) and vouchers

    Scheduled Pinned Locked Moved Captive Portal
    8 Posts 4 Posters 2.7k 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.
    • A
      alexandrnew
      last edited by

      Hello!
      tell me whether you can make free access to some sites, but on the other - on vouchers?

      1 Reply Last reply Reply Quote 0
      • W
        wallabybob
        last edited by

        Services -> Captive Portal, click on Allowed IP Addresses tab

        1 Reply Last reply Reply Quote 0
        • A
          alexandrnew
          last edited by

          only ip?
          no urls (http\https)?

          1 Reply Last reply Reply Quote 0
          • V
            valshare
            last edited by

            Take a look under hosts

            1 Reply Last reply Reply Quote 0
            • W
              wallabybob
              last edited by

              @valshare:

              Take a look under hosts

              I wonder what captive portal will do if you want to allow access to http://access-allowed.com and refuse access to http://access-refused.com and they are both hosted on the same server.

              1 Reply Last reply Reply Quote 0
              • V
                valshare
                last edited by

                @wallabybob:

                @valshare:

                Take a look under hosts

                I wonder what captive portal will do if you want to allow access to http://access-allowed.com and refuse access to http://access-refused.com and they are both hosted on the same server.

                Sorry, i was on underway, where i wrote it. I mean Services -> Captive Portal -> allowed hostnames
                Do you have tested your example? What happens?

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

                  @wallabybob:

                  @valshare:

                  Take a look under hosts

                  I wonder what captive portal will do if you want to allow access to http://access-allowed.com and refuse access to http://access-refused.com and they are both hosted on the same server.

                  AFAIK on a CP-enabled interface all external traffic is refused by default (before successful login), except those IPs and hostnames which are explicitly allowed (aka "walled garden").

                  Taking a quick look at the source code, it seems to me that in the hypothetical scenario you describe, access to both sites would be allowed.

                  1 Reply Last reply Reply Quote 0
                  • A
                    alexandrnew
                    last edited by

                    @dhatz:

                    AFAIK on a CP-enabled interface all external traffic is refused by default (before successful login), except those IPs and hostnames which are explicitly allowed (aka "walled garden").

                    Taking a quick look at the source code, it seems to me that in the hypothetical scenario you describe, access to both sites would be allowed.

                    of course.
                    hostname  resolve to ip and add to access

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