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

    Can't Get It Working

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    29 Posts 7 Posters 5.9k 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.
    • B Offline
      bluegrass
      last edited by

      Ok, I'm able to access the internet through both LAN ports on my firewall HOWEVER, I can also access the web GUI on either port using either IP address. No matter which LAN port I'm on I can sign in to the GUI with 192.168.2.1 and 192.168.3.1

      That shouldn't be happening, right?

      1 Reply Last reply Reply Quote 0
      • stephenw10S Offline
        stephenw10 Netgate Administrator
        last edited by

        That is the expected behaviour if you have 'allow any' rules on each LAN interface.

        Steve

        1 Reply Last reply Reply Quote 0
        • B Offline
          bluegrass
          last edited by

          I tried changing the "allow any" rule to "allow WAN subnet to LAN1 subnet" but then I can't access anything over that port. I put back the allow any rule and it works but I can also access both ports from either again.

          1 Reply Last reply Reply Quote 0
          • D Offline
            divsys
            last edited by

            @bluegrass:

            I tried changing the "allow any" rule to "allow WAN subnet to LAN1 subnet" but then I can't access anything over that port. I put back the allow any rule and it works but I can also access both ports from either again.

            If you're just trying to stop LAN from seeing OPT1 (and vice versa), you can add a LAN1 rule:

            "Allow LAN to NOT OPT1 subnet"

            And similarly on OPT1

            "Allow OPT1 to NOT LAN"

            Depends on what you're trying to acheive

            -jfp

            1 Reply Last reply Reply Quote 0
            • stephenw10S Offline
              stephenw10 Netgate Administrator
              last edited by

              Yep. Or you can explicitly block access to the OPT1 interface address from the LAN subnet with a block rule placed above the 'allow any' rule. Then you can still access devices on OPT1 from LAN.

              1 Reply Last reply Reply Quote 0
              • B Offline
                bluegrass
                last edited by

                I'm not sure if I'm doing this right so here's a screen cap of what I did. There was no change.

                fhgf.JPG
                fhgf.JPG_thumb

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

                  So you want to BLOCK going anywhere but that lan segment?  That is what that rule would do.

                  Post your lan rules so we can see exactly what other rules you have in place, etc.  That rule by itself would block everything but the lan segment.  So you would not be able to go to the internet..  Is that what your after?

                  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.1 | Lab VMs 2.8, 25.07.1

                  1 Reply Last reply Reply Quote 0
                  • ? This user is from outside of this forum
                    Guest
                    last edited by

                    Enter firewall block rules on the "LAN" or "OPT1" for port 80 and 443 from "LAN" or "OPT1" to "IP of ROUTER", then nobody can reach the interface from this LAN / OPT1

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S Offline
                      stephenw10 Netgate Administrator
                      last edited by

                      Hmm, that rule is definitely wrong. It will never (or should never) match any traffic as you will never see any packets going into the LAN interface that have source 'SERVER subnet'.

                      What exactly are you trying to achieve?

                      Steve

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

                        I didn't even catch the server source ;)  Yeah that would never even trigger.

                        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.1 | Lab VMs 2.8, 25.07.1

                        1 Reply Last reply Reply Quote 0
                        • B Offline
                          bluegrass
                          last edited by

                          What I'm trying to do is keep the SERVER and LAN ports from being able to communicate with each other.

                          I don't want anyone on my home network to accidently get access to my little web server and screw something up. And I don't want any traffic for the server getting onto my home network.

                          1 Reply Last reply Reply Quote 0
                          • B Offline
                            bluegrass
                            last edited by

                            Ok I think I got it fixed. I looked in the 'Definitive Guide to PFSense' and it said: "Rules in PFSense are applied on a per-interface basis, always in the inbound direction on that interface. This means traffic initiated from the LAN is filtered using the LAN interface rules.Traffic initiated from the Internet is filtered with the WAN interface rules."

                            So I changed the source on Server TO server and source on LAN to LAN and now the two ports don't appear to be able to access each other.

                            1 Reply Last reply Reply Quote 0
                            • stephenw10S Offline
                              stephenw10 Netgate Administrator
                              last edited by

                              Sounds good.
                              If you're in any doubt post up some screen shots of your rules.  :)

                              Steve

                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                bluegrass
                                last edited by

                                Ok, here's the rules for my LAN and SERVER ports.

                                ![LAN Rules 2.JPG](/public/imported_attachments/1/LAN Rules 2.JPG)
                                ![LAN Rules 2.JPG_thumb](/public/imported_attachments/1/LAN Rules 2.JPG_thumb)
                                ![Server Rules 2.JPG](/public/imported_attachments/1/Server Rules 2.JPG)
                                ![Server Rules 2.JPG_thumb](/public/imported_attachments/1/Server Rules 2.JPG_thumb)
                                ![LAN Rules.JPG](/public/imported_attachments/1/LAN Rules.JPG)
                                ![LAN Rules.JPG_thumb](/public/imported_attachments/1/LAN Rules.JPG_thumb)
                                ![Server Rules.JPG](/public/imported_attachments/1/Server Rules.JPG)
                                ![Server Rules.JPG_thumb](/public/imported_attachments/1/Server Rules.JPG_thumb)

                                1 Reply Last reply Reply Quote 0
                                • stephenw10S Offline
                                  stephenw10 Netgate Administrator
                                  last edited by

                                  Looks good, that should block all IPv4 traffic between the LAN and SERVER subnets.  :)
                                  It won't block IPv6 traffic if you are using IPv6 at all. Change the TCP/IP version to 'any' if you want to block v6 too.

                                  Steve

                                  1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    bluegrass
                                    last edited by

                                    Thanks for all the help.

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