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

    Rules broken squid

    Scheduled Pinned Locked Moved pfSense Packages
    12 Posts 4 Posters 2.6k 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.
    • A
      ajuser
      last edited by

      I've disabled webconfigurator anti-lock rule and the networks still have access to webconfigurator when I put in the url address any administration. That is, the proxy is still hopping rule. Attached screenshots

      ![Captura de pantalla 2014-08-23 a la(s) 09.25.46.png](/public/imported_attachments/1/Captura de pantalla 2014-08-23 a la(s) 09.25.46.png)
      ![Captura de pantalla 2014-08-23 a la(s) 09.25.46.png_thumb](/public/imported_attachments/1/Captura de pantalla 2014-08-23 a la(s) 09.25.46.png_thumb)
      ![Captura de pantalla 2014-08-23 a la(s) 09.26.18.png](/public/imported_attachments/1/Captura de pantalla 2014-08-23 a la(s) 09.26.18.png)
      ![Captura de pantalla 2014-08-23 a la(s) 09.26.18.png_thumb](/public/imported_attachments/1/Captura de pantalla 2014-08-23 a la(s) 09.26.18.png_thumb)

      1 Reply Last reply Reply Quote 0
      • T
        Tikimotel
        last edited by

        The rules start from the bottom and then up.

        Rules are evaluated on a first-match basis (i.e. the action of the first rule to match a packet will be executed). This means that if you use block rules, you'll have to pay attention to the rule order. Everything that isn't explicitly passed is blocked by default.
        

        First you allow the LAN out. (IPv4 to Any & IPv6 to Any)
        Then you block outside to everything that is LAN. (Any to LAN)
        Then you allow the rest within your LAN.

        Rules.PNG
        Rules.PNG_thumb

        1 Reply Last reply Reply Quote 0
        • A
          ajuser
          last edited by

          The problem is squid. Everything works without squid, but to redirect all traffic to squid, webconfigurator can enter, even with the rule that does not allow it.
          As you can see in the screenshots.
          Access to webconfigurator do from another LAN, so I want to deny access to the administration to other networks.

          1 Reply Last reply Reply Quote 0
          • T
            Tikimotel
            last edited by

            When I am on a computer outside the "ManagementHosts" (in my case 192.168.0.0/25) range, I can not access the web Gui or ssh from that computer.
            But I can access outside web pages, via the proxy. (either configuring the proxy or just using the transparent rules)

            1 Reply Last reply Reply Quote 0
            • A
              ajuser
              last edited by

              if this squid in transparent mode (for example), and configure the browser with the proxy port, you can access webconfigurator, and jumps firewall rules.

              Please check it

              1 Reply Last reply Reply Quote 0
              • J
                jitguy
                last edited by

                hi ajuser,

                First, I think rules are evaluated top to bottom, first match wins.

                Second, it depends on what ManagementHosts means in your setup.  Typically it means ips that are allowed to manage pfSense.  If that is the case, it looks like you are blocking access to machines that are managers, not webConfigurator.

                I think webConfigurator is typically listening on LAN address, so maybe you want to block destination = LAN address

                1 Reply Last reply Reply Quote 0
                • J
                  jitguy
                  last edited by

                  You can check if your block rule is working by turning logging on for that rule, disable transparent squid, try the access, see what rule blocked it by checking the log.  If it was blocked by the default deny instead of your block rule, the problem is in your block rule.

                  1 Reply Last reply Reply Quote 0
                  • A
                    ajuser
                    last edited by

                    The problem is you have to have rules in the firewall, the proxy skips. And I am compelled to refuse for squid and squidGuard

                    1 Reply Last reply Reply Quote 0
                    • L
                      Liath.WW
                      last edited by

                      I think the rule could be at fault.  On my network I have this, and it seems to work fine:
                      allow in on LAN from management to port_admin
                      block in on LAN from !management to port_admin

                      Seems to work for me… and the !management is anything but my main admin computer... so it'd block even squid I think... not sure because squid might be connecting to 127.0.0.1... again not sure.

                      1 Reply Last reply Reply Quote 0
                      • A
                        ajuser
                        last edited by

                        I deny provisionally in squid, but I would like to know why it is jumping the firewall rule. I have a little crazy

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