Pages: 1 2 3 [4]   Go Down
  Print  
Author Topic: SQUID and Load Balancing doesn't work!!!! I tried for a week but nothing :'(  (Read 11447 times)
0 Members and 1 Guest are viewing this topic.
vito
Full Member
***
Offline Offline

Posts: 173


View Profile
« Reply #45 on: November 04, 2010, 12:26:43 pm »


Does anyone have this working with Squid and HAVP?
thanks
Logged
nassman
Jr. Member
**
Offline Offline

Posts: 78


View Profile
« Reply #46 on: December 23, 2010, 09:58:40 am »

Please i need the arrange steps, how to setup squid with load balance
Logged
heper
Sr. Member
****
Offline Offline

Posts: 559


View Profile
« Reply #47 on: December 26, 2010, 06:44:25 pm »

Please i need the arrange steps, how to setup squid with load balance

i'm having the same problem .... once i figure it out with ermal's help i'll write a simple how-to.

for now all i can accomplish is failover with custom scripting.
with the latest snapshot its possible to use the tcp_outgoing_adress directive in squids config in combination with a floating rule to get it working. changing the outgoing adress from WAN1 ip to WAN2 ip when either of them goes offline should be possible with fairly easy scripting.

i haven't been able to get any loadbalancing to work tho ... but its very well possible i just don't have enough braincells
Logged
nassman
Jr. Member
**
Offline Offline

Posts: 78


View Profile
« Reply #48 on: January 02, 2011, 05:00:47 am »

I try apply the above setting, but i fail, the load balance and squid not work.
why not there any standard documents?
Logged
jimp
Administrator
Hero Member
*****
Offline Offline

Posts: 12808



View Profile
« Reply #49 on: January 03, 2011, 04:14:03 pm »

I try apply the above setting, but i fail, the load balance and squid not work.
why not there any standard documents?


Because nobody that has made it work has taken the time to write out any. :-)

It's a new feature of 2.0 and only recently has it been proven to work at all for some people... Once the config is documented it'll be on the doc wiki, but until someone in a position to (a) make it work and (b) write it out in a way people can follow, some patience is needed.
Logged

Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Donate to the project | My Wish List
nassman
Jr. Member
**
Offline Offline

Posts: 78


View Profile
« Reply #50 on: January 05, 2011, 11:41:30 am »

thanks
Logged
heper
Sr. Member
****
Offline Offline

Posts: 559


View Profile
« Reply #51 on: January 11, 2011, 05:06:39 am »

I try apply the above setting, but i fail, the load balance and squid not work.
why not there any standard documents?


Because nobody that has made it work has taken the time to write out any. :-)

It's a new feature of 2.0 and only recently has it been proven to work at all for some people... Once the config is documented it'll be on the doc wiki, but until someone in a position to (a) make it work and (b) write it out in a way people can follow, some patience is needed.


Would you happen to know who those people are who got it to work, and how to get in touch with them ?
Logged
OyyoDams
Jr. Member
**
Offline Offline

Posts: 36


View Profile
« Reply #52 on: January 17, 2011, 08:01:50 am »


I'll try to write a howto later, but I haven't tested failover. In fact, my WAN interface goes directly to my ISP, and my OPT1 is an openvpn connexion to an alternative ISP.
Default gateway is WAN, but when the VPN connexion is established, the default gateway becomes OPT1.
So my goal was to route some addresses to WAN instead of OPT1 from the pfsense itself, because I use squid as transparent proxy, so http traffic is generated by pfsense, and so standard firewall rules (from LAN) can't be applied.

In my case here is how I got it to work:
1) add a floating rule with specific address as destination, and WAN gateway to force traffic on this gateway instead of OPT1
2) add a virtual IP alias on WAN interface, in WAN network range
3) add an outbound NAT rule, interface OPT1, source any, destination "the same specific address", NAT address "the virtual IP"

This last point is important, because if you only set the floating rule, traffic is sent from WAN interface, but with OPT1 address as source.

My english is not very good, so here is an example.
Imagine you want to reach http://my-i-p.com/ from WAN instead of VPN (OPT1) interface:
my-i-p.com ip address is 74.86.20.234
1) See step1 picture for floating rule
2) My WAN ip address is 192.168.0.1, let's add a virtual IP (for example 192.168.0.30) on this interface: see step2 picture
3) See step3 for NAT rule

Hope that helps you Smiley

This works on 30th november build. But it doesn't work with latest build (16th january).
It's very strange:
- I didn't change anything in my configuration
- I can't ping any address through WAN (i.e. 74.86.20.234)
- When I launch tcpdump, I see ping and echo reply, so the packet is sent and received back, but ping command doesn't see it
- When I revert back to 30th november it works again

Any idea ?
Logged
ermal
Administrator
Hero Member
*****
Offline Offline

Posts: 3094


View Profile
« Reply #53 on: February 09, 2011, 01:34:20 pm »

Anybody please upgrade to a snapshot of Feb 9 and after and just create a floating rule with direction out and a gateway pool and activate AON with source put to any.
Logged
Pages: 1 2 3 [4]   Go Up
  Print  
 
Jump to:  

 

Page created in 0.034 seconds with 20 queries.