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

    Squid + 5 VPN conection on one WAN

    Scheduled Pinned Locked Moved Cache/Proxy
    4 Posts 2 Posters 682 Views 2 Watching
    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.
    • reza3swR Offline
      reza3sw
      last edited by reza3sw

      Hi
      I have a pfsense vm with spec below:


      Version 2.4.3-RELEASE-p1 (amd64)
      Wan : [My Wan IP]
      Lan : 192.168.1.0/24

      5 VPN conection on WAN (VPN1,VPN2,VPN3,VPN4,VPN5) To pass traffic from client
      I have defined gatwaye group ( VPN1,VPN2,VPN3,VPN4,VPN5 ) by name "VPNLoadBalancing" in same tire1

      Overall I have 7 interfaces on pfsense

      Squid + SquidGuard


      I used several scenarios :


      First scenarios:

      I read About Squid on pfsense forum and squid forum and I know squid pass traffic from default gateway ( In my scenario squid pass my traffic from WAN).

      in custom option Squid I define tcp_outgoing_address 127.0.0.1 and create Floating rule (Pass - WAN - Out - any-any - port 80 ) to gateway "VPNLoadBalancing"

      and I have defined NAT Outbound for VPN Corectly

      but in log pfsense say "CLOSED:SYN_SENT" and any pages Don't work

      also I checked my VPN conection without SQUID and everything is OK and work

      This scenario Doesn't Work......


      Second scenarios:

      I created Virtual interface (fake) and set Ip to 11.11.11.11/32 and set squid tcp_outgoing_address 11.11.11.11 and I defined NAT outbound for all VPN pass 11.11.11.11/32
      In fake interface rule I created rule (pass-any-any-any-VPNLoadBalancing).

      But no results...


      Third scenario:

      I created OpenVPN server on LAN and WAN and I created Openvpn Client

      In this scenarios pfsense Conect to itself with Openvpn with Tunnel 192.168.4.0/24

      I Assign OpenVPN client interface and get IP 192.168.4.4 and defined NAT outbound and rule and I set tcp_outgoing_address 192.168.4.4.
      I created rul in OpenVPN (pass-any-any-any)to gateway "VPNLoadBalancing".
      I defined NAT outbound for all VPN pass 192.168.4.0/24

      But again Error in log CLOSED:SYN_SENT


      Does anyone have any solution?
      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • R Offline
        ravegen
        last edited by

        that was insane. and you did not mention what is your goal.

        if i am going to bleed my mind out, i think what you want to do is do squid proxy for your vpn connection.

        reza3swR 1 Reply Last reply Reply Quote 0
        • reza3swR Offline
          reza3sw
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • reza3swR Offline
            reza3sw @ravegen
            last edited by

            @ravegen Hello my friend
            My goal :
            set proxy (SquidGuard-Cach server-Control Bandwidth with squid ) on VPN conection with LoadBalancing
            And I have One wan conection and 5 VPN conection on WAN

            This very simle ... I want pass traffic from VPN (LoadBalancing gateway (5vpn conection)) . also I want to have Squid proxy and SquidGuard ... But squid not compatible with loadbalancing very simple..I want tcp_outgoing_address to another interface and create rule for my traffic
            Did you realize what I mean?

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