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

    Allow LAN to Access Devices from OPT1

    Scheduled Pinned Locked Moved Firewalling
    12 Posts 3 Posters 2.2k Views 3 Watching
    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.
    • johnpozJ Offline
      johnpoz LAYER 8 Global Moderator @Chooks
      last edited by johnpoz

      @aldrinjohn96 well what are your rules? The default lan rule is any any - so lan should be able to access anything on opt1 out of the box.

      If you can not then you altered the rules, or the device your trying to access on opt1 has host firewall blocking.

      Post up your rules.

      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 25.07 | Lab VMs 2.8, 25.07

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        Chooks @johnpoz
        last edited by

        @johnpoz
        Here are my OPT1 Rules
        248e699c-9c89-499b-84d8-fbe56be2ccdb-image.png

        Here are my LAN Rules
        020de390-b8e5-41fa-be35-1fe1376c3f26-image.png

        46cd1a5c-2974-4d0c-bc87-fb681fb5985d-image.png

        I have existing block rules in LAN that are intended for specific websites.

        johnpozJ GertjanG 2 Replies Last reply Reply Quote 0
        • johnpozJ Offline
          johnpoz LAYER 8 Global Moderator @Chooks
          last edited by johnpoz

          None of those blocks are going to do anything.

          Rule are evaluated top down, first rule to trigger wins, no other rules are evaluated.

          Your top rule allows lan net to go anywhere - so it would never get to any rules below that..

          Your rules on opt1 (guest) all below your any any are pointless and would never trigger...

          Do you have any rules in floating - since those rules would allow access from lan to guest, and guest to lan.. If you can get to something on the other network its because its firewall is blocking you, or its not using pfsense as its gateway.

          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 25.07 | Lab VMs 2.8, 25.07

          C 1 Reply Last reply Reply Quote 0
          • GertjanG Offline
            Gertjan @Chooks
            last edited by Gertjan

            @chooks

            Your second LAN rule and before last LAN rule are "pass all" for LAN traffic to all destinations.

            If something is blocking, it must be here :

            249b00f7-dad6-491e-b297-fa585a71d98c-image.png

            You could see for yourself what rule is blocking your traffic : look at the firewall logs.
            If traffic was matching no GUI rules, it would hit the default (last - hidden) block rule : make it log by checking :

            ecbab55f-3cd6-486f-b085-e0cfa352bee3-image.png

            but, as said above, already your second LAN rule matches/accepts all traffic that is IPv4 and has a source addresses based on the LAN network, like 192.168.10.x where x is from 2 to 254.

            What are the devices you try to access from LAN, on the OPT1 network ?

            edit : I definitely should type faster.

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

            johnpozJ C 2 Replies Last reply Reply Quote 0
            • johnpozJ Offline
              johnpoz LAYER 8 Global Moderator @Gertjan
              last edited by

              @gertjan said in Allow LAN to Access Devices from OPT1:

              edit : I definitely should type faster.

              hahaha - sorry dude ;) hehehe

              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 25.07 | Lab VMs 2.8, 25.07

              1 Reply Last reply Reply Quote 0
              • C Offline
                Chooks @johnpoz
                last edited by

                @johnpoz
                The rules in between where you might think is blocking traffic is just the same with the other block rules for IP Aliases that I have made. Something like this:
                bee198bd-d2b4-4da6-94d4-2082ee3c9834-image.png

                I have an update though, if I plug a device to OPT1 and use RDC from a device connected to LAN, I can do so. However I still cant ping.

                Here's the idea of what I'm trying to achieve, on my LAN is the group of computers where the computers of my students are connected to that I want to have a static map for easier management. It is where I also connect our NAS. On OPT1, this is where I would like to put all other devices that will use internet connection and still be able to connect to our NAS and some other devices.

                PS: Yeah, really waiting for someone who knows better for help. hehe

                johnpozJ 1 Reply Last reply Reply Quote 1
                • johnpozJ Offline
                  johnpoz LAYER 8 Global Moderator @Chooks
                  last edited by johnpoz

                  @chooks And again rules are evaluated top down, first rule to trigger wins no other rules are evaluated.

                  If you want to block something, it needs to be above the rule(s) that allow it.. If you have a rule that says any any - you can do anything want. A rule below that blocks from going to X will never be evaluated.

                  If you want lan to go to opt ip:port - then that rule is above, where you put a rule that blocks lan net from going to opt net.

                  You showing specific sections of you rules isn't helpful - really need to see all the rules - because of the way they are evaluated top down..

                  If you have a any any rule that allows, and you can remote desktop too it, but not ping - then rule is not allowing icmp, or the devices firewall blocks the ping. Which is by default windows rules for example. The windows firewall out of the box will block access from anything other than its local network.. If it was on opt network, it would block lan network.. Unless you allowed it on the devices firewall.

                  If you allow remote desktop but not ping, then yeah you would be able to remote to it - but it wouldn't answer ping.

                  While pfsense firewalls between the network - you still have the local firewalls on devices running that could be blocking what your allowing on 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 25.07 | Lab VMs 2.8, 25.07

                  GertjanG C 2 Replies Last reply Reply Quote 0
                  • GertjanG Offline
                    Gertjan @johnpoz
                    last edited by

                    Example :

                    7d1cb968-9c03-4398-9cfc-dac1beccb9de-image.png

                    Line 1 is my own "anti lockout" rule.

                    Line 2 is disabled,
                    Line 3 is disabled,
                    Line 4 : consider it disabled as is a IPv6 rule.
                    Line 5 : consider it disabled as is a IPv6 rule.
                    Line 6 : consider it disabled as is a IPv6 rule.
                    So, for simplicity's sake : forget about lines 2 to 6.

                    Line 7 : like yours, a pass all rule for IPv4 and IPv6.

                    With rule 7 I can reach the entire world. That includes my own, local OPTx interfaces.

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

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      Chooks @johnpoz
                      last edited by

                      @johnpoz
                      Here's the long list of rules that I have in my firewall. I understand what you are telling me about the firewall in my device. That might be the answer, but still here's the list of rules, you might see something:

                      Rules.jpg

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        Chooks @Gertjan
                        last edited by

                        @gertjan
                        I should definitely do this to see better what's going on in my firewall. And yeah, we do have the same rules, it might be what @johnpoz is telling me about the device's firewall that doesn't allow me to ping an address that is outside of the subnet that it is in.

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

                          @chooks none of those rules do anything below this one..

                          any.jpg

                          The only reasons you seeing traffic on them - is at some point the rules were in different order. Reset you counters and you will see none of those rules will trigger.

                          run pfctl -z

                          it will clear all those counters.

                          Since you have any any rule at bottom - change that rule to lan net to opt net to allow access to your opt net.. putting that rule at the top like you have it invalidates all the rules below 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 25.07 | Lab VMs 2.8, 25.07

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