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

    CP + Inter VLAN routing

    Scheduled Pinned Locked Moved Captive Portal
    13 Posts 3 Posters 2.5k 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.
    • DerelictD
      Derelict LAYER 8 Netgate
      last edited by

      So just put pass rules on the Wi-Fi interface for the servers/ports on Wired you want them to have access to.  If you want them to have access to these servers whether or not they're through the portal, put the server IP in allowed IP addresses in the Wi-Fi CP and probably a MAC address pass-through for the server in the Wired CP.  Better would be to move the server outside of the CP onto another interface.

      Chattanooga, Tennessee, USA
      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
      Do Not Chat For Help! NO_WAN_EGRESS(TM)

      1 Reply Last reply Reply Quote 0
      • E
        EMWEE
        last edited by

        If I put the MAC of the server in the passtrough would the bandwidth limits still apply to the WiFi users? ( I could simply test this but I can't access the box right now and just need some ideas before I start on it next week)

        I could set the server on a different interfaces/VLAN without a CP. That way I could add the IP of the server in the allow IP on the WiFi CP. I guess that is what u mean with: Better put it on a different interface.

        1 Reply Last reply Reply Quote 0
        • E
          EMWEE
          last edited by

          So I saw a reply of you Derelict were u stated to change some things in captiveportal.inc.

          The uidea was to change the ipfw in captiveportal.inc. So that would result in something like:

          pass traffic destined for Wired VLAN

          add 65531 pass ip from Wifi subnet to Wired subnet in

          I couldn't determined if this worked but I would love this approach.

          1 Reply Last reply Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate
            last edited by

            Yes.  That's what I mean by another interface.

            Your limiters should still apply to the CP clients even with pass-through entries, though not for the traffic to/from that server.  You could probably generically limit that traffic with a limiter defined just for that.

            No, I wouldn't modify captiveportal.inc.  I would put the IP in the allowed IPs and limit the ports with firewall rules.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

            1 Reply Last reply Reply Quote 0
            • E
              EMWEE
              last edited by

              Alright that would be fine as long as the bandwidth limit won't apply.

              Thanks for your fast ( and with fast I mean really fast) reply on my question!

              1 Reply Last reply Reply Quote 0
              • E
                EMWEE
                last edited by

                So I tried both solutions. Adding the MACs and IPs manually and editing captiveportal.inc

                Both worked perfectly. I chose for the later since I need to deploy the same config around 20 times. It would take to much time adding all those IP addresses manually.

                1 Reply Last reply Reply Quote 0
                • DerelictD
                  Derelict LAYER 8 Netgate
                  last edited by

                  @Derelict:

                  Your limiters should still apply to the CP clients even with pass-through entries, though not for the traffic to/from that server.  You could probably generically limit that traffic with a limiter defined just for that.

                  Actually, I can't remember in what order the rules are processed.  I'm pretty sure your traffic to the pass-through devices will not be limited before adding the captive portal entry by logging in but they might be in effect afterward.

                  Chattanooga, Tennessee, USA
                  A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                  DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                  Do Not Chat For Help! NO_WAN_EGRESS(TM)

                  1 Reply Last reply Reply Quote 0
                  • E
                    EMWEE
                    last edited by

                    Sounds right. I'll test it next week to make sure.

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

                      You do not need any of these apart adding allowed ips for the services to be reached and firewall rules to allow the services to be reached.

                      1 Reply Last reply Reply Quote 0
                      • E
                        EMWEE
                        last edited by

                        Yes but its easier for me to add a whole subnet in captiveportal.inc since I have no control what IPs the servers will get. I only supply a pre configured pfsense.

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