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

    Configure 3 lan in pfsense

    Scheduled Pinned Locked Moved Cache/Proxy
    42 Posts 4 Posters 6.7k Views 4 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.
    • A Offline
      ab96
      last edited by

      Good day I'm setting up 3 lan, the first one blocks the content I want but the others do not block me I'm using squidguard in pfsense are 2 new interfaces. !!

      1 Reply Last reply Reply Quote 0
      • A Offline
        akuma1x
        last edited by

        So... what's your question?

        Jeff

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          ab96 @akuma1x
          last edited by

          @akuma1x How do I get internet and block content on the other 2 LANs? already configure the squidguard to block but it does not :(

          1 Reply Last reply Reply Quote 0
          • A Offline
            akuma1x
            last edited by akuma1x

            For this example, let's say your lans are called LAN, LAN2, and LAN3.

            You need to add firewall rules for each of the interfaces, whether they be physical or virtual. This 1 simple rule (for IPv4 or IPv6) will allow traffic to pass to the internet (out thru your default gateway). The rule is as follows (sorry, it's an old version of pfsense, but still applies):

            031716_1614_pfSenseSeri2.png

            During your initial setup, on whatever interface you pick as LAN, these rules are auto-created. You can recreate them, or duplicate them, for your other interfaces very easily. But, they have to be there, or no traffic moves out of that particular network.

            And, since we're talking about making firewall rules, here's a good summary on what all the terms mean in the "source" and "destination" drop down menus. If you're wondering...

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

            Finally, you might need to reboot the pfsense box after you fiddle with all these settings. It never hurts.

            Hope that helps!

            By the way, I don't use squidguard, so I can't comment on how that might be affecting this problem, or not.

            Jeff

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              ab96 @akuma1x
              last edited by

              @akuma1x thank you, I could already with 2 lan !!!

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

                @akuma1x sure hope you pulled that picture from somewhere... That is OLD... your not running that version of pfsense are you?

                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

                A 1 Reply Last reply Reply Quote 0
                • A Offline
                  akuma1x @johnpoz
                  last edited by

                  @johnpoz No, I'm running current 2.4.4p2 on all my gear.

                  But, when I went to search for an image of the default LAN rules, it only shows old pfsense versions, apparently. Try it, do a search for "pfsense default lan rules" and check the images that it finds. I was only looking for the 2 default rules, nothing additional. So, I simply posted what I found.

                  I should have just screenshot'ted my own setup, but I've got some extra rules on my LAN interface besides default stuff.

                  Jeff

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

                    quick google found this ;)
                    alt text

                    But yeah lots of OLD stuff comes up as well ;)

                    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

                    A A 2 Replies Last reply Reply Quote 0
                    • A Offline
                      ab96 @johnpoz
                      last edited by

                      @johnpoz I did it like that jejej the version is 2.4.4 thank you !!

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        akuma1x @johnpoz
                        last edited by akuma1x

                        @johnpoz doh, look at that! Picture option number 2, my bad...

                        Jeff

                        A 1 Reply Last reply Reply Quote 0
                        • A Offline
                          ab96 @akuma1x
                          last edited by

                          @akuma1x It is only configured there for internet access, because it does not have internet access anymore, mmm something is wrong here :o :( Thanks for your help

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

                            Do you have Squid set to listen on those new interfaces?

                            Steve

                            A 1 Reply Last reply Reply Quote 0
                            • A Offline
                              ab96 @stephenw10
                              last edited by

                              @stephenw10 I did it like that 1.JPG 1.3.JPG 1.2.JPG

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

                                Hmm, OK do you see hits in the squid access log from clients on all 3 interfaces?

                                If so the Squidguard ACLs are probably not set for all three subnets as sources.

                                Steve

                                A 1 Reply Last reply Reply Quote 0
                                • A Offline
                                  ab96 @stephenw10
                                  last edited by

                                  @stephenw10 And why does not squidguard block the list that I have assigned :( ?? and how do I configure that?

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

                                    See my last question ^. Is squid showing it's proxying that traffic?

                                    Is Squidguard configured to filter traffic from all three subnets?

                                    Steve

                                    A 2 Replies Last reply Reply Quote 0
                                    • A Offline
                                      ab96 @stephenw10
                                      last edited by

                                      @stephenw10 Yes I do it

                                      1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        ab96 @stephenw10
                                        last edited by

                                        @stephenw10 Captura1.JPG Captura2.JPG

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

                                          Your group ACL there only contains 15 IPs. Is that the group that should be allowed access to any site?

                                          What targets do you have set there?

                                          What do you have in the Common ACLs?

                                          Do you actually see traffic from all three subnet in the Squid RealTime logs to show they are all being proxied?

                                          Steve

                                          A 1 Reply Last reply Reply Quote 0
                                          • A Offline
                                            ab96 @stephenw10
                                            last edited by

                                            @stephenw10 Your group ACL there only contains 15 IPs. Is that the group that should be allowed access to any site? R: That group of ips should be restricted some content and enable all

                                            What targets do you have set there? R: I have a blacklist where I added the domains to block

                                            What do you have in the Common ACLs? R: I deny the black list that I just created for the group of ips and I allow everything else

                                            Do you actually see traffic from all three subnets in the Squid RealTime logs to show they are all being proxied? R: yes i have access logs

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