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

    Vários Gateways + squid proxy

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 565 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.
    • D
      drlmatos
      last edited by

      hello, I'm begginer here and need help about one question. My scenario is:
      PFSense 2.4.4 with 3 gateways for differente ranges of lan, but when I enable the Squid Proxy Server it disabled my firewall configuration of gateway and setup the gateway default for all ips indepentment of the lan.
      How I can to use different gateway without the Squid Proxy Server changed the gateway.

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

        While you can use the tcp_outgoing_address directive to specify an outbound address for squid to use, I don't believe you can configure it per network. Squid only wants to use one address.

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

          I've never tried it but you should be able to specify a different address for each matching ACL. Or for all traffic if you don't specify an ACL which is how I have used it:
          http://www.squid-cache.org/Doc/config/tcp_outgoing_address/

          Steve

          1 Reply Last reply Reply Quote 1
          • D
            drlmatos
            last edited by

            where do I use the tcp_outgoing_address?
            and I have other problem, I use failover and load balance.

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

              In the Custom Options Before Auth field in the Squid general settings.

              Selection_700.png

              You can only specify an IP there, you can't use a gateway group.

              If you need Squid to use a gateway group you can leave it as default where it will use the system default route and then set that as gateway group in System > Routing.

              Steve

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