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

    Squid/SquidGuard NONE/409 and DNS issue

    Scheduled Pinned Locked Moved Cache/Proxy
    69 Posts 9 Posters 19.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.
    • KOMK
      KOM @shawn8888
      last edited by

      @shawn8888 Now you can start trying to get wpad working, then squidguard.

      S 1 Reply Last reply Reply Quote 0
      • S
        shawn8888 @KOM
        last edited by

        @kom
        I will give it a couple of days to see if most of the problems can be solved in explicit mode before testing wpad again.
        Thanks!

        KOMK 1 Reply Last reply Reply Quote 0
        • KOMK
          KOM @shawn8888
          last edited by

          @shawn8888 WPAD solves the problem of having to manually configure proxy setting on every device so it's kind of important to get it working. You can also push a proxy via DHCP option 252. I would do both, and don't forget to add your block rule on LAN to prevent people from going around the proxy.

          1 Reply Last reply Reply Quote 0
          • S
            shawn8888
            last edited by

            After a week testing, I can confirm that NONE/409 issue is gone with the explicit mode. It seems that the issue only happens with the transparent mode.

            WPAD is still a hit and miss. I will test it more later. Right now I set all the devices need to go through squid manually.

            A 1 Reply Last reply Reply Quote 0
            • A
              aGeekhere @shawn8888
              last edited by

              @shawn8888 @shawn8888 You can always try the Wpad Unofficial package https://github.com/marcelloc/Unofficial-pfSense-packages/tree/master/pkg-wpad

              Never Fear, A Geek is Here!

              S 1 Reply Last reply Reply Quote 0
              • S
                shawn8888 @aGeekhere
                last edited by

                @ageekhere

                It doesn't install. :(

                4ac949b1-f7ec-4ff8-b358-d16ee69a3d21-image.png

                KOMK 1 Reply Last reply Reply Quote 0
                • KOMK
                  KOM @shawn8888
                  last edited by

                  @shawn8888 I don't see any error. Did you look for the menu?

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    shawn8888 @KOM
                    last edited by

                    @kom
                    The install command, the last one, finishes in less than a second
                    I cannot find wpad in "Installed Packages" or any change on the menu.

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      aGeekhere @shawn8888
                      last edited by

                      @shawn8888 first follow this step https://github.com/marcelloc/Unofficial-pfSense-packages

                      You have to first enable Unofficial pfSense packages

                      Never Fear, A Geek is Here!

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        shawn8888 @aGeekhere
                        last edited by

                        @ageekhere

                        I ran the command in ssh. No change. Then I reboot pfsense. still the same. I don't know what I did wrong.

                        fetch -q -o /usr/local/etc/pkg/repos/Unofficial.conf https://raw.githubusercontent.com/marcelloc/Unofficial-pfSense-packages/master/Unofficial_25.conf
                        
                        A 1 Reply Last reply Reply Quote 0
                        • A
                          aGeekhere @shawn8888
                          last edited by

                          @shawn8888 https://forum.netgate.com/topic/116163/unofficial-wpad-package-for-pfsense-software?_=1620716861139

                          Never Fear, A Geek is Here!

                          1 Reply Last reply Reply Quote 0
                          • SipriusPTS
                            SipriusPT
                            last edited by

                            Well seems like I am not the only one in the neighborhood having the same issue, at least with dynamic websites, under a transparent proxy with MITM Splice All. In documentation they should mention the consequences of having this setup with dynamic https websites. The idea that pass is that it should work without any issue, if configured as mention, but its not true, at all.

                            1xSG-4860-1U
                            1xSG-3100
                            2xpfSense Virtual Machines

                            1 Reply Last reply Reply Quote 0
                            • M
                              michmoor LAYER 8 Rebel Alliance
                              last edited by

                              curious as to if there was ever a fix or a solution to this. I do have a bunch of NON/409 errors for various websites with Transparent Proxy configured. The solution is either to turn off the proxy and lose reporting or enable true MITM mode but for certain vlans where I can install the certificate thereby losing the effectiveness of the reporting

                              Firewall: NetGate,Palo Alto-VM,Juniper SRX
                              Routing: Juniper, Arista, Cisco
                              Switching: Juniper, Arista, Cisco
                              Wireless: Unifi, Aruba IAP
                              JNCIP,CCNP Enterprise

                              SipriusPTS 1 Reply Last reply Reply Quote 1
                              • SipriusPTS
                                SipriusPT @michmoor
                                last edited by

                                @michmoor I end up with a non transparent proxy, using an auto config proxy deployed through pfsense DHCP option 252, and that auto proxy config hosted in one Microsoft IIS, with a bunch of my pfsense IP gateways where squid is placed/responding.

                                On MacOS's I had to enable auto config proxy. Since than I didnt had any more issues. Squid cannot handle HTTPS well under transparent proxys.

                                Thinking in using a transparent proxy on pfsense through squid still gives me nightmares when I think about it....

                                1xSG-4860-1U
                                1xSG-3100
                                2xpfSense Virtual Machines

                                1 Reply Last reply Reply Quote 1
                                • JonathanLeeJ
                                  JonathanLee @shawn8888
                                  last edited by

                                  @shawn8888 have you tried to creat a NAT rule to force all users to use the firewall for DNS?

                                  Like this ??

                                  1648916794418-rulechange.png

                                  1648916803712-nslookip.png

                                  After it doesn't matter what the devices try to use the firewall choses the DNS just change it to what your DNS server is and forget about it.

                                  Make sure to upvote

                                  JonathanLeeJ 1 Reply Last reply Reply Quote 0
                                  • JonathanLeeJ
                                    JonathanLee @JonathanLee
                                    last edited by

                                    @jonathanlee make a alias with DNS ports

                                    Make sure to upvote

                                    JonathanLeeJ 1 Reply Last reply Reply Quote 0
                                    • JonathanLeeJ
                                      JonathanLee @JonathanLee
                                      last edited by

                                      @jonathanlee also set WPAD up on the firewall

                                      Make sure to upvote

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        proggggger
                                        last edited by

                                        maybe a bit late answer but i also find such problem. And little exploring gives me a good solution.

                                        (We a talking about Transparent Proxy + Splice all SSL mode)

                                        So, first of all, the reason of such problem is one different addresses returned by DNS server

                                        So, first of all Proxy should use the same DNS server as clients, so best way to do it is to use our firewall as DNS server (DNS Resolver turned on), so by DHCP we are setting primary DNS address of our firewall, also will be good to redirect all DNS requests to firewall address and block DoH (here article about DNS redirection "Redirecting Client DNS Requests"

                                        And after this step lot of people says that it does not help, but why? the answer is simple, DNS RoundRobin, we are getting random ip address fore some websites even if we are using cache you can simply check it, if nslookup (for example for google.com, or twitch.tv or some other site which is not working) gives every time different address you will get 409 error.

                                        So how to fix this part? we need to go to DNS Resolver settings, open custom options and add rrest-roundrobin:no which disables randomization of DNS entries. (it should be disabled by default but on pfsense looks like it's enabled)

                                        JonathanLeeJ 2 Replies Last reply Reply Quote 3
                                        • JonathanLeeJ
                                          JonathanLee @proggggger
                                          last edited by

                                          @proggggger

                                          Thanks for the reply,

                                          I just tested this and I got a error,

                                          Screenshot 2023-04-13 at 2.57.23 PM.png

                                          Just to confirm rrest-roundrobin:no inside of the custom area.

                                          This is the error I got kicked back.

                                          Make sure to upvote

                                          P 1 Reply Last reply Reply Quote 0
                                          • JonathanLeeJ
                                            JonathanLee @proggggger
                                            last edited by JonathanLee

                                            @proggggger Another fix to issues with devices that have no option to configure a proxy is to configure DHCP option 252
                                            This hands the proxy out also when it hands out the dhcp ip addresses. Make sure you have the proxy set up on wpad for this to work.
                                            Example:

                                            https://192.168.1.1:8080/wpad.dat

                                            is handed out with the dhcp address again if your wpad is set up to also hand out the dns server this fixes a lot of issues.

                                            Screenshot 2023-04-13 at 3.06.39 PM.png

                                            Make sure to upvote

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