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

    Different proxy for different interfaces

    Scheduled Pinned Locked Moved General pfSense Questions
    proxyinterfaces
    6 Posts 2 Posters 1.0k 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
      burgonyapure
      last edited by burgonyapure

      Is there any option, or is it even possible in theory to use a different proxy server for different interfaces?
      For example: I have a LAN interface which is not using any proxy whatsoever, but I have another interface (OPT1) and I want any traffic happening on that specific interface to use a proxy server.
      Is there any options to achieve this, or it's not even possible?

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

        You can set Squid to listen on specific interfaces only. Ir redirect to it on only some interfaces.
        What you can't do is have it behave differently just on the basis of interfaces. You can filter on different subnets though.
        What exactly are you trying to achieve?

        Steve

        B 1 Reply Last reply Reply Quote 0
        • B
          burgonyapure @stephenw10
          last edited by burgonyapure

          Hi @stephenw10
          I'm trying to have multiple VLAN's with different proxy servers
          LAN: No proxy at all
          OPT1 (VLAN 60): http proxy 9.9.9.9:9091
          OPT2 (VLAN 31): socks proxy 10.10.10.10:9050 (another question is if there is support for socks)
          OPT3 (VLAN 90): http proxy 11.11.11.11:9091

          So the main goal would be a scenario with 3 managed switches carrying one of the three VLAN tags, and each host connected to it's corresponding switch would have it's proxy "set up" right away.
          Host A and B would like to use proxy 9.9.9.9:9091
          Host C want to have 11.11.11.11:9091 as it's proxy
          Host D wants 10.10.10.10:9050
          So I connect A and B to a switch that has two ports set up in vlan60
          C will have a port in vlan31, and D in vlan90

          Thanks!

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

            And you want the proxies to behave differently?

            You can only run a single Squid instance on pfSense itself.

            Steve

            B 1 Reply Last reply Reply Quote 0
            • B
              burgonyapure @stephenw10
              last edited by

              @stephenw10
              I have all the proxy servers ready and on my network, I just want pfsense subnets (or interfaces) to use different ones. I know I can set up one globally, but I need like 3 and on different subnets/vlans

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

                So you just need to redirect traffic to them in pfSense? You can just use port forwards for that. That's what Squid does if you set it to transparent mode.

                Steve

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