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

    Isolating VLANs from each other and management interface

    Scheduled Pinned Locked Moved Firewalling
    18 Posts 2 Posters 4.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.
    • O
      octoberfest @johnpoz
      last edited by

      @johnpoz said in Isolating VLANs from each other and management interface:

      And your doing your block OUTBOUND on the floating or inbound? Or any... Why not just put the rule on the interface so you can easy see them as you look at a specific interface.

      Umm...because I'm a n00b trying to learn. šŸ˜•

      Also setting rule for 1024-65 for source ports? Dude just use ANY... Same as your dest... I mean really What do you think your going to stop there? If you only want to allow 80 and 443, then just allow those.. If your going to do 80,443 and >1024 might as well just say ANY..

      See my previous comment about being a n00b. My goal is the best privacy & security possible, and it seems I'm misunderstanding the risk profile of different scenarios. Perhaps I am trying to think too much of my network firewall as similar to a client-side firewall that blocks certain applications from accessing the internet (because really, many programs that want internet access don't need it, i.e. privacy exposure).

      1 Reply Last reply Reply Quote 0
      • O
        octoberfest
        last edited by octoberfest

        One other thing I don’t quite understand — where does LAN fit into all this based on the SG-3100 and my VLAN topology? It seems to me as an interface from a firewall perspective, it is transparent and ā€œrule-less.ā€ Is that correct?

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          Huh? Lan is just your first network behind your firewall - no different than any other vlan/network you create..

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          1 Reply Last reply Reply Quote 0
          • O
            octoberfest
            last edited by

            Right, but from a firewall rule standpoint, it doesn’t seem much goes on there, as traffic originates either from a VLAN or the WAN, right?

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by johnpoz

              Huh? Most of my traffic comes from LAN, since that is where my main machine and nas sit.. If you don't put anything on that specific network - then no there wouldn't be much traffic there.

              But your typical user might only have that 1 lan network, and not have any other network segments/vlans..

              Not getting what your question is exactly?

              All your vlans/interfaces other than wan connections would be considered LAN side interfaces..

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 0
              • O
                octoberfest
                last edited by

                Maybe if I take the example of what I did with that floating rule and DNS. My configuration is that each port in the 'LAN' is a VLAN. I took your advice and moved my 'pass DNS' rule to individual VLAN segments and it seems to work fine.

                Would putting a 'pass DNS' rule on the LAN interface, instead of each individual VLAN interface, have the same result, such that the 1 rule covers all the segments below it?

                1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by johnpoz

                  I still have no clue to what your talking about with LAN... That out of the box would be just local side network that is not tagged. This would normally be your physical interface say em1 or igb1

                  Wan em0
                  Lan em1

                  Wan igb0
                  Lan igb1

                  Or those could be the other way around.

                  If you do not put a network on em1 or igb1, and just put vlans sitting on the physical interface.. There is would be NO rules or even a untagged network on that interface...

                  Post up your interface assignment page..
                  example
                  0_1545233685080_intass.png

                  See my lan is attached is on igb0, I also have another network wlan that is on igb2 untagged, and then have VLANS on igb2 as well.

                  Here I changed its name from LAN to something else
                  0_1545233853662_renamed.png

                  Lan is not really anything special..

                  Its just the NAME that pfsense gives to the first local side network. That is not a WAN connection, ie it does not have a gateway.

                  That interface is also the interface that pfsense would put the antilock out rules on - unless you disabled them.

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                  1 Reply Last reply Reply Quote 0
                  • O
                    octoberfest
                    last edited by

                    I can get the actual interfaces screen shot tonight.

                    What I can recall and dig from the setup guide of the SG-3100, is the following:
                    WAN: mvneta2
                    OPT1: mvneta0
                    LAN : mvneta1
                    VLAN1: 4081 on mvneta1
                    VLAN2: 4082 on mvneta1
                    VLAN3: 4083 on mvneta1
                    VLAN4: 4084 on mvneta1

                    For the VLANs, they're setup with 802.1Q and each of the VLAN1-4 segments has as members itself untagged and the LAN uplink tagged.

                    1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator
                      last edited by

                      Again you can assign "LAN" to whatever you be it the actual interface or the switch ports, etc.

                      If you don't want to use the "LAN" network then don't.. Did you assign a IP to it?

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

                      1 Reply Last reply Reply Quote 0
                      • O
                        octoberfest
                        last edited by

                        I'll probably need to dig up some stuff from the unit tonight. I think I have it set to 172.16.1.1. What I don't understand well is in this topology how the tagged trunk fits into things. I probably don't understand enough to ask the right question(s)....

                        1 Reply Last reply Reply Quote 0
                        • johnpozJ
                          johnpoz LAYER 8 Global Moderator
                          last edited by

                          The tagged trunk is the connection from the "switch" to pfsense..

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 24.11 | Lab VMs 2.8, 24.11

                          1 Reply Last reply Reply Quote 0
                          • O
                            octoberfest
                            last edited by

                            Right, that makes sense to me. From a firewall rule standpoint, does applying rules to that connection cover all the VLANs (similar to, but different from, a 'floating' rule)? Or in my case is the LAN something that basically I ignore and I just focus on each VLAN interface?

                            1 Reply Last reply Reply Quote 0
                            • O
                              octoberfest
                              last edited by

                              Much thanks for your patience trying to understand my ignorance and naivete.

                              Here's my interfaces tab:
                              0_1545269228180_741230b4-cf10-4bf9-8a8c-273947d7e03e-image.png

                              And my VLANS:
                              0_1545269272488_b24c3799-d7c2-4795-bc8a-9577fcff12e8-image.png

                              I presently have no firewall rules on the 'LAN' interface, given my topology, and things basically seem to work. I am just so novice at this (it's like moving from an automatic to a manual transmission, quite simple once you know what you'e doing, but hard when you don't) I'm hoping the experts can help me avoid doing something stupid.

                              From a management standpoint, my original gravitation toward floating rules was based on the idea of applying something in 1 place that affects many, since I have the VLAN segments. My goal with VLAN segments is to allow rigid partitioning of the network and get to a point I have private & guest WIFI access via AP's and that nothing can see anything else. I have no trust for IoT devices, so they end up on their own isolated segment.

                              And I want it all routing through VPN (including DNS and anything else) since my ISP is questionable at best. I pay for service, I am a customer, not a product whose privacy doesn't matter. (stepping off soap box)

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