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

    Transparent proxy not working after upgrade to 2.2

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    45 Posts 12 Posters 17.8k 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
      Brandhor
      last edited by

      @marcelloc:

      What squid version are you using? Did you tried squid3?

      it's squid3

      1 Reply Last reply Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        Any clues on log files? I've tested squid3 on 2.2

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • B
          Brandhor
          last edited by

          @marcelloc:

          Any clues on log files? I've tested squid3 on 2.2

          no but as I said I don't think it's a squid issue, if I kill squid and run nc -l 3128 I still get nothing
          I'm not too familiar with freebsd but I think that
          fxp0 tcp 127.0.0.1:3128 (173.194.40.3:80) <- 192.168.1.9:55613      CLOSED:SYN_SENT
          should mean that the auto created firewall rule is kinda working but maybe something else blocks it

          1 Reply Last reply Reply Quote 0
          • B
            Brandhor
            last edited by

            so I tried to create a similar nat rule to redirect outgoing connection to 8080 to the pfsense ssh port

            but I have the same problem

            nat on fxp0 inet proto tcp from 192.168.1.0/24 to 127.0.0.1 port = 8080 -> (fxp0) round-robin
            rdr on fxp0 inet proto tcp from any to any port = 8080 -> 127.0.0.1 port 22
            fxp0 tcp 127.0.0.1:22 (8.8.8.8:8080) <- 192.168.1.9:60274       CLOSED:SYN_SENT
            
            

            every rules redirecting to pfsense itself don't work, is there a way to debug this? I don't see anything being blocked in the firewall logs

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

              looks like a fw issue …
              try creating a LAN firewall rule that allows lan devices to connect to 127.0.0.1:3128

              ![2015-01-25 17_23_49-Action center.jpg_thumb](/public/imported_attachments/1/2015-01-25 17_23_49-Action center.jpg_thumb)
              ![2015-01-25 17_23_49-Action center.jpg](/public/imported_attachments/1/2015-01-25 17_23_49-Action center.jpg)

              1 Reply Last reply Reply Quote 0
              • B
                Brandhor
                last edited by

                @TieT:

                looks like a fw issue …
                try creating a LAN firewall rule that allows lan devices to connect to 127.0.0.1:3128

                still not working

                1 Reply Last reply Reply Quote 0
                • B
                  Brandhor
                  last edited by

                  I've tried to disable all non essential rules and interfaces and this is the content of /tmp/rules.debug  http://pastebin.com/M8D21nC1
                  I've compared it to a fresh installation and it looks kinda the same

                  1 Reply Last reply Reply Quote 0
                  • marcellocM
                    marcelloc
                    last edited by

                    I've did once again a clean install, check steps I did to get it working without hacks.

                    https://forum.pfsense.org/index.php?topic=87424.msg480232#msg480232

                    Treinamentos de Elite: http://sys-squad.com

                    Help a community developer! ;D

                    1 Reply Last reply Reply Quote 0
                    • B
                      Brandhor
                      last edited by

                      @marcelloc:

                      I've did once again a clean install, check steps I did to get it working without hacks.

                      https://forum.pfsense.org/index.php?topic=87424.msg480232#msg480232

                      unfortunately a reinstall is not an option for me since it's 300km away

                      1 Reply Last reply Reply Quote 0
                      • marcellocM
                        marcelloc
                        last edited by

                        Can you try removing all packages  and reapply 2.2 firmware update?

                        Treinamentos de Elite: http://sys-squad.com

                        Help a community developer! ;D

                        1 Reply Last reply Reply Quote 0
                        • B
                          Brandhor
                          last edited by

                          @marcelloc:

                          Can you try removing all packages  and reapply 2.2 firmware update?

                          I'll try tonight, should I also remove the packages configuration from config.xml?

                          1 Reply Last reply Reply Quote 0
                          • marcellocM
                            marcelloc
                            last edited by

                            I don't think so.  As you posted, it doesn't looks like a package issue.

                            Treinamentos de Elite: http://sys-squad.com

                            Help a community developer! ;D

                            1 Reply Last reply Reply Quote 0
                            • B
                              Brandhor
                              last edited by

                              I tried to reapply the update but it's still not working

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

                                for what it's worth:
                                I'm using squid on 2.2 in transparent mode and its working.
                                But I'm not caching anything.

                                Can you output the contents of the squid.conf

                                1 Reply Last reply Reply Quote 0
                                • B
                                  Brandhor
                                  last edited by

                                  @TieT:

                                  for what it's worth:
                                  I'm using squid on 2.2 in transparent mode and its working.
                                  But I'm not caching anything.

                                  Can you output the contents of the squid.conf

                                  well it's not a squid issue but here it is http://pastebin.com/2htk2jg1

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

                                    Here is mine

                                    # Do not edit manually !
                                    http_port 192.168.1.254:3128
                                    http_port 127.0.0.1:3128 transparent
                                    icp_port 0
                                    
                                    pid_filename /var/run/squid.pid
                                    cache_effective_user proxy
                                    cache_effective_group proxy
                                    error_directory /usr/pbi/squid-i386/etc/squid/errors/English
                                    icon_directory /usr/pbi/squid-i386/etc/squid/icons
                                    visible_hostname fw1.home
                                    cache_mgr tielens.t@gmail.com
                                    access_log /var/squid/logs/access.log
                                    cache_log /var/squid/logs/cache.log
                                    cache_store_log none
                                    logfile_rotate 7
                                    shutdown_lifetime 3 seconds
                                    # Allow local network(s) on interface(s)
                                    acl localnet src  192.168.1.0/255.255.255.0
                                    uri_whitespace strip
                                    
                                    cache_mem 10 MB
                                    maximum_object_size_in_memory 32 KB
                                    memory_replacement_policy heap GDSF
                                    cache_replacement_policy heap LFUDA
                                    cache_dir diskd /var/squid/cache 500 16 256
                                    minimum_object_size 0 KB
                                    maximum_object_size 5 KB
                                    offline_mode off
                                    cache_swap_low 90
                                    cache_swap_high 95
                                    
                                    # No redirector configured
                                    
                                    squid.conf...skipping...
                                    # Do not edit manually !
                                    http_port 192.168.1.254:3128
                                    http_port 127.0.0.1:3128 transparent
                                    icp_port 0
                                    
                                    pid_filename /var/run/squid.pid
                                    cache_effective_user proxy
                                    cache_effective_group proxy
                                    error_directory /usr/pbi/squid-i386/etc/squid/errors/English
                                    icon_directory /usr/pbi/squid-i386/etc/squid/icons
                                    visible_hostname fw1.home
                                    cache_mgr TieT
                                    access_log /var/squid/logs/access.log
                                    cache_log /var/squid/logs/cache.log
                                    cache_store_log none
                                    logfile_rotate 7
                                    shutdown_lifetime 3 seconds
                                    # Allow local network(s) on interface(s)
                                    acl localnet src  192.168.1.0/255.255.255.0
                                    uri_whitespace strip
                                    
                                    cache_mem 10 MB
                                    maximum_object_size_in_memory 32 KB
                                    memory_replacement_policy heap GDSF
                                    cache_replacement_policy heap LFUDA
                                    cache_dir diskd /var/squid/cache 500 16 256
                                    minimum_object_size 0 KB
                                    maximum_object_size 5 KB
                                    offline_mode off
                                    cache_swap_low 90
                                    cache_swap_high 95
                                    
                                    # No redirector configured
                                    
                                    # Setup some default acls
                                    acl all src 0.0.0.0/0.0.0.0
                                    acl localhost src 127.0.0.1/255.255.255.255
                                    acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901  3128 1025-65535
                                    acl sslports port 443 563
                                    acl manager proto cache_object
                                    acl purge method PURGE
                                    
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • marcellocM
                                      marcelloc
                                      last edited by

                                      Just to be sure, Are you selecting interfaces on squid general tab?

                                      I'm asking because other users had this "issue".

                                      Treinamentos de Elite: http://sys-squad.com

                                      Help a community developer! ;D

                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        Brandhor
                                        last edited by

                                        @marcelloc:

                                        Just to be sure, Are you selecting interfaces on squid general tab?

                                        I'm asking because other users had this "issue".

                                        yeah I had that issue as well after upgrading the other day but I fixed it soon after

                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          Brandhor
                                          last edited by

                                          I tried to load a config.xml that looks as much as possible like a fresh installation and also did a checksum of all files and compared them but I don't think there was anything wrong with them

                                          the only clue I have is the CLOSED:SYN_SENT state but it's not much

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

                                            That means, you have send a sync request but no one answers (connection is closed)

                                            Did you set a virtual IP on the WAN or LAN ?

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