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

Multi LAN + Squid + Squidguard + MultiWAN

Scheduled Pinned Locked Moved Routing and Multi WAN
16 Posts 3 Posters 7.3k 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.
  • S
    space_new
    last edited by May 16, 2013, 8:04 PM

    Hi to all…
    I have this network configuration:

    LAN1 -------|-------------|
    LAN2 -------| PfSense + | -------- WAN1
    LAN3 -------|  Squid      |  --------WAN3
    ..              |                | -------- WAN2
    LANn ------ |__________|

    In this case my combination of PfSense + Squid + Squidguard work perfectly. But all connection are routed through the default wan (the standard behaviour of course). The system work perfectly if I set floating rules (without tcp_outgoing_address option) and failover gw group ora loadbalancing.
    But the systen not work if I want to send the traffic that come from LAN1 ONLY to WAN1, the LAN2 ONLY to WAN3 ect...
    Can you help me??

    Thx in advance!!!

    1 Reply Last reply Reply Quote 0
    • K
      kelsen
      last edited by May 18, 2013, 1:28 PM

      What you mean by "system not work"?
      If you are trying to route http|https through one gateway, this is done with squid which will route through the default, failover or loadbalance gateway; you can use tcp_outgoing_address LAN1 WAN1 and so on; for other traffic that squid doesn't handle, it will use the gateway you setup in LAN rules.

      1 Reply Last reply Reply Quote 0
      • S
        space_new
        last edited by May 18, 2013, 3:30 PM

        @kelsen:

        What you mean by "system not work"?
        If you are trying to route http|https through one gateway, this is done with squid which will route through the default, failover or loadbalance gateway; you can use tcp_outgoing_address LAN1 WAN1 and so on; for other traffic that squid doesn't handle, it will use the gateway you setup in LAN rules.

        Thx for reply!
        My goal is to route the traffic that come from LAN1 only to WAN1 (or failvoer group) and the traffic that come from LAN only to WAN2.
        Both LAN1 and LAN2 use squid+squidguard for content filtering.
        Actually I can route ALL traffic that come from LAN1 and LAN2 only to WAN1, or WAN2 or failover group!!

        1 Reply Last reply Reply Quote 0
        • K
          kelsen
          last edited by May 18, 2013, 6:21 PM

          Just create a rule on LAN and LAN2 Interface:

          LAN1
          source: lan subnet
          destination: any
          gateway: wan1GW

          LAN2
          source: lan2 subnet
          destination: any
          gateway: wan2GW

          1 Reply Last reply Reply Quote 0
          • S
            space_new
            last edited by May 18, 2013, 8:14 PM

            @kelsen:

            Just create a rule on LAN and LAN2 Interface:

            LAN1
            source: lan subnet
            destination: any
            gateway: wan1GW

            LAN2
            source: lan2 subnet
            destination: any
            gateway: wan2GW

            I have just tried, but this method not function because the http traffic is sent to Squid that send all traffic over default wan (wan1)

            1 Reply Last reply Reply Quote 0
            • K
              kelsen
              last edited by May 20, 2013, 12:18 PM

              As I said, you can use tcp_outgoing_address LAN1 WAN1 and so on.

              1 Reply Last reply Reply Quote 0
              • S
                space_new
                last edited by May 20, 2013, 2:25 PM

                @kelsen:

                As I said, you can use tcp_outgoing_address LAN1 WAN1 and so on.

                Hi,
                thx for reply…
                but if I configure custom option of Squid with: tcp_outgoing_address 192.168.0.0/24 191.X.Z.T, I recive an error from squid.
                If i write
                alc int_net 192.168.0.0/24
                tcp_outgoing_address 191.X.Z.T int_net
                squid not return any error, but the traffic do not sent through 191.X.Z.T!!!

                1 Reply Last reply Reply Quote 0
                • S
                  space_new
                  last edited by May 21, 2013, 7:45 PM

                  Someone can help me?  :'(

                  Regards,

                  1 Reply Last reply Reply Quote 0
                  • K
                    kelsen
                    last edited by May 23, 2013, 11:30 AM

                    Post a screen shot of your squid configuration.
                    You are using failover? if yes, post the lan rules and float too.

                    1 Reply Last reply Reply Quote 0
                    • S
                      space_new
                      last edited by May 28, 2013, 8:12 AM

                      @kelsen:

                      Post a screen shot of your squid configuration.
                      You are using failover? if yes, post the lan rules and float too.

                      This is my custom options on squid.
                      I do not have failover!

                      http://imageshack.us/photo/my-images/703/capturetim.jpg/?sa=0

                      1 Reply Last reply Reply Quote 0
                      • K
                        kelsen
                        last edited by May 28, 2013, 11:41 AM

                        This IP is your Gateway or Wan IP? it must be your Wan IP. Besides this, there is nothing else to do.

                        1 Reply Last reply Reply Quote 0
                        • S
                          space_new
                          last edited by May 31, 2013, 8:57 AM

                          @kelsen:

                          This IP is your Gateway or Wan IP? it must be your Wan IP. Besides this, there is nothing else to do.

                          Thx for reply…
                          This is the address of my WAN interface (not CARP address)

                          1 Reply Last reply Reply Quote 0
                          • K
                            kelsen
                            last edited by May 31, 2013, 12:04 PM

                            Yet it  still didn't work? have you saw your ip on www.meuip.com.br while using proxy?

                            1 Reply Last reply Reply Quote 0
                            • S
                              space_new
                              last edited by Jun 3, 2013, 12:52 PM

                              @kelsen:

                              Yet it  still didn't work? have you saw your ip on www.meuip.com.br while using proxy?

                              Hi, the site report that my ip is the default gw and not 191.X.Z.T (proxy is detected)

                              1 Reply Last reply Reply Quote 0
                              • N
                                niebla
                                last edited by Jun 3, 2013, 2:42 PM

                                Take a look at your DNS Settings. Are you suing the forwarder? Does the proxy have any DNS entries? If so try removing them.

                                1 Reply Last reply Reply Quote 0
                                • S
                                  space_new
                                  last edited by Jun 4, 2013, 8:57 AM

                                  @niebla:

                                  Take a look at your DNS Settings. Are you suing the forwarder? Does the proxy have any DNS entries? If so try removing them.

                                  Yes, I use DNS forwarder of PfSense, but none configurationa about DNS is dove on proxy server…

                                  1 Reply Last reply Reply Quote 0
                                  1 out of 16
                                  • First post
                                    1/16
                                    Last post
                                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                    This community forum collects and processes your personal information.
                                    consent.not_received