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

    Captioportal when the LAN interface IP is different from the LAN network IP range

    Scheduled Pinned Locked Moved Captive Portal
    7 Posts 3 Posters 661 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.
    • M
      mhmd
      last edited by

      Why does Captioportal not work when the LAN interface IP of the firewall is different from the IP range of the LAN network?

      1 Reply Last reply Reply Quote 0
      • F
        FSC830
        last edited by FSC830

        Not sure what you did, but CP clearly works with an IP range different from LAN.
        Vice versa, when using CP, you should create a firewall rule which blocks all access from CP to LAN. In setup guide this rule is named RFC1918.
        This is to avoid that users with CP address/access can also access internal devices.
        There it is mandatory, that the CP interface uses an different IP range.

        Regards

        M 1 Reply Last reply Reply Quote 0
        • M
          mhmd @FSC830
          last edited by

          @FSC830 said in Captioportal when the LAN interface IP is different from the LAN network IP range:

          RFC1918

          Hi
          Thank you for taking the time to answer my question
          I do all the settings related to CP and when I enable it, the network internet is unavailable
          Before that, the IP LAN firewall was also the range of the LAN network and it worked well, but with the change of the network structure and the addition of a router between the firewall and the main network switch, this problem arose.
          Thank you

          1 Reply Last reply Reply Quote 0
          • F
            FSC830
            last edited by

            Well, in that case you should provide more detailed information about your network setup.

            Regards

            M 1 Reply Last reply Reply Quote 0
            • M
              mhmd @FSC830
              last edited by

              @FSC830
              In your opinion, this can be a convincing answer:
              CP works at layer 2, it authorizes/disallows devices by MAC address. It cannot work with a router in between because it only sees the MAC address of the router, not the clients.
              thanks

              GertjanG 1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @mhmd
                last edited by

                @mhmd

                It can get worse : The portal only sees the IP of the router.
                Which can lead to hilarious effects like : some one on your portal logs in. Now every other subsequent portal user is also logged in.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                M 1 Reply Last reply Reply Quote 0
                • M
                  mhmd @Gertjan
                  last edited by

                  @Gertjan
                  It is exactly like that
                  When I first started CP, we had a virtual machine that everyone called Remote Desktop and used it for Internet-related matters, and when one of the users authenticated, the rest of the users also authenticated in CP without needing to authenticate. CP was passing and it was very funny.

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