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

    Send Squid request to a designed gateway/nic

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 3 Posters 1.4k 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.
    • K
      kaneda
      last edited by

      HEllo guys, I tried some time ago squid and works great, but in a multiwan scenario where the default gw is not used for browser/ftp/dns request there is no way to tell squid about to send request to a different gateway than the default one.

      Any idea on this? Could be added to a wishlist for squid package?
      or perhaps if I can know source ports for squid request I can redirect the request from squid to a specific gateway.

      Any idea welcome
      many thanks

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

        Create a rule on floating tab forwarding 127.0.0.1 traffic to gateway x.
        on squid.conf add tcp_outgoing_address 127.0.0.1 to squid custom option on gui

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

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • K
          kelsen
          last edited by

          If you dont use FailOver or LoadBalance, you can just add tcp_outgoing_address WAN2_IP on squid custom options.

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