• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Sep 19, 2021, 6:35 PM Sep 19, 2021, 6:34 PM

    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
    • S
      stephenw10 Netgate Administrator
      last edited by Sep 19, 2021, 8:55 PM

      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 Sep 20, 2021, 9:29 AM Reply Quote 0
      • B
        burgonyapure @stephenw10
        last edited by burgonyapure Sep 20, 2021, 9:30 AM Sep 20, 2021, 9:29 AM

        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
        • S
          stephenw10 Netgate Administrator
          last edited by Sep 20, 2021, 9:31 PM

          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 Sep 23, 2021, 10:27 AM Reply Quote 0
          • B
            burgonyapure @stephenw10
            last edited by Sep 23, 2021, 10:27 AM

            @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
            • S
              stephenw10 Netgate Administrator
              last edited by Sep 23, 2021, 2:04 PM

              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
              2 out of 6
              • First post
                2/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received