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

    Allow traffic between VLANs

    Scheduled Pinned Locked Moved Firewalling
    31 Posts 4 Posters 6.4k 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.
    • K
      kingrazor @KOM
      last edited by

      @KOM said in Allow traffic between VLANs:

      You place rules on the interface that the traffic enters, so if you want VLAN3 to access LAN, you need to put a rule on VLAN3.

      https://docs.netgate.com/pfsense/en/latest/firewall/firewall-rule-basics.html

      https://doc.pfsense.org/index.php/Firewall_Rule_Troubleshooting

      So allowing traffic from VLAN3 to LAN would basically look like this?

      Action: Pass
      Interface: OPT2 (VLAN3)
      TCP/IP Version: IPv4
      Protocol: any
      Source: OPT2 Net
      Destination: LAN net

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        Pretty much. Try it and see for yourself how it behaves. Rules are evaluated top-down, first-match so the order of your rules is just as important as the rule itself.

        1 Reply Last reply Reply Quote 0
        • K
          kingrazor
          last edited by

          I tried the above rule, but no luck. Tried it first on the OPT interface, then on the LAN interface, then on both. The order didn't make a difference.

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            Show me. Post a screenshot.

            K 1 Reply Last reply Reply Quote 0
            • K
              kingrazor @KOM
              last edited by

              @KOM said in Allow traffic between VLANs:

              Show me. Post a screenshot.

              alt text

              1 Reply Last reply Reply Quote 0
              • KOMK
                KOM
                last edited by

                I'm not a VLAN expert, but I don't see a VLAN3 tab on your rules. Btw if you have 5 separate OPT interfaces, why are you using VLANs at all? Usually it's one or the other. You could have created all of your VLANs on LAN without needing any other interfaces.

                On my 2.5.0 test box, I created a VLAN10 on LAN and then assigned & enabled it, and it appears on my rules list as a separate tab. Your allow Any rule shows 0 bytes of traffic, so nothing is talking to that interface.

                K 1 Reply Last reply Reply Quote 0
                • K
                  kingrazor @KOM
                  last edited by kingrazor

                  @KOM said in Allow traffic between VLANs:

                  I'm not a VLAN expert, but I don't see a VLAN3 tab on your rules. Btw if you have 5 separate OPT interfaces, why are you using VLANs at all? Usually it's one or the other. You could have created all of your VLANs on LAN without needing any other interfaces.

                  On my 2.5.0 test box, I created a VLAN10 on LAN and then assigned & enabled it, and it appears on my rules list as a separate tab. Your allow Any rule shows 0 bytes of traffic, so nothing is talking to that interface.

                  I recreated the environment virtually locally so I could do some debugging, hence why the screen shot doesn't match exactly. When you assign a VLAN to an OPT interface, you don't see the VLAN in the rules list, you just see the interface. (Edit: Actually, I've never seen VLANs show up in the rules list regardless of how they're setup)

                  I'm using VLANs so that I can utilize tagging. Giving them each an interface means I have a larger address space to work with and can have a different DHCP scope for each VLAN.

                  GrimsonG 1 Reply Last reply Reply Quote 0
                  • K
                    kingrazor
                    last edited by

                    I just tried removing the VLANs from their own interfaces, so they're all just tied to LAN. The VLANs don't show up in the firewall rules page, and I can't setup a rule specific to a VLAN this way.

                    1 Reply Last reply Reply Quote 0
                    • KOMK
                      KOM
                      last edited by

                      I'm most likely doing something wrong, but there isn't a lot of other user action going on today so you're stuck with me ๐Ÿ˜†

                      I created a VLAN10 on LAN, then assigned it as an interface. You're right in that it is originally labelled OPT1 but I renamed it to VLAN10 and enabled it. Now I have a VLAN10 tab in rules.

                      K 1 Reply Last reply Reply Quote 0
                      • K
                        kingrazor @KOM
                        last edited by

                        @KOM said in Allow traffic between VLANs:

                        I'm most likely doing something wrong, but there isn't a lot of other user action going on today so you're stuck with me ๐Ÿ˜†

                        I created a VLAN10 on LAN, then assigned it as an interface. You're right in that it is originally labelled OPT1 but I renamed it to VLAN10 and enabled it. Now I have a VLAN10 tab in rules.

                        Right. The name doesn't actually matter. I have it named "Office". I just left it as OPT for simplicity in this test environment.

                        1 Reply Last reply Reply Quote 0
                        • K
                          kingrazor
                          last edited by

                          Updated screen shot setup closer to my production environment:

                          alt text

                          1 Reply Last reply Reply Quote 0
                          • GrimsonG
                            Grimson Banned @kingrazor
                            last edited by Grimson

                            @kingrazor said in Allow traffic between VLANs:

                            I recreated the environment virtually locally so I could do some debugging, hence why the screen shot doesn't match exactly.

                            As you can see on your screenshots nothing is hitting your rules, even the wide open ones, so first make sure your virtualization software is actual capable of passing/handling tagged VLANs and RTFM how it needs to be configured for it.

                            K 1 Reply Last reply Reply Quote 0
                            • K
                              kingrazor @Grimson
                              last edited by kingrazor

                              @Grimson said in Allow traffic between VLANs:

                              @kingrazor said in Allow traffic between VLANs:

                              I recreated the environment virtually locally so I could do some debugging, hence why the screen shot doesn't match exactly.

                              As you can see on your screenshots nothing is hitting your rules, even the wide open ones, so first make sure your virtualization software is actual capable of passing/handling tagged VLANs and RTFM how it needs to be configured for it.

                              That's because there's nothing hooked up to that VLAN right this second. There was earlier when I was testing. I know that the VLANs are working because I'm able to connect to the internet from hosts that I assign to that VLAN.

                              GrimsonG 1 Reply Last reply Reply Quote 0
                              • chpalmerC
                                chpalmer
                                last edited by

                                Are you actually using VLAN tagging?

                                Triggering snowflakes one by one..
                                Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                                K 1 Reply Last reply Reply Quote 0
                                • K
                                  kingrazor @chpalmer
                                  last edited by

                                  @chpalmer said in Allow traffic between VLANs:

                                  Are you actually using VLAN tagging?

                                  Yes

                                  chpalmerC 1 Reply Last reply Reply Quote 0
                                  • chpalmerC
                                    chpalmer @kingrazor
                                    last edited by

                                    @kingrazor

                                    Can devices on your VLANs access the internet and their own gateway address?

                                    Triggering snowflakes one by one..
                                    Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                                    K 1 Reply Last reply Reply Quote 0
                                    • K
                                      kingrazor @chpalmer
                                      last edited by

                                      @chpalmer said in Allow traffic between VLANs:

                                      @kingrazor

                                      Can devices on your VLANs access the internet and their own gateway address?

                                      Yes

                                      1 Reply Last reply Reply Quote 0
                                      • GrimsonG
                                        Grimson Banned @kingrazor
                                        last edited by

                                        @kingrazor said in Allow traffic between VLANs:

                                        I know that the VLANs are working because I'm able to connect to the internet from hosts that I assign to that VLAN.

                                        If they can reach the Internet with a wide open any rule, and if there is no additional blockind rule created by you it's likely not a pfSense issue. Probably a local firewall on the devices preventing access from devices outside their subnet. Capture traffic on both pfSense interfaces and see what exactly happens there.

                                        K 1 Reply Last reply Reply Quote 0
                                        • chpalmerC
                                          chpalmer
                                          last edited by

                                          Just a heads up.. Im in an establishment with a really bright background so please forgive me if I ask something that is obvious above.. :)

                                          Triggering snowflakes one by one..
                                          Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                                          1 Reply Last reply Reply Quote 0
                                          • chpalmerC
                                            chpalmer
                                            last edited by

                                            What subnets are you working with??

                                            Nothing overlapping is there?

                                            Triggering snowflakes one by one..
                                            Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

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