Welcome, Guest. Please login or register.
Did you miss your activation email?
+  pfSense Forum
|-+  Retired» 2.0-RC Snapshot Feedback and Problems - RETIRED» Load Balance and Squid does not work runnig in the same server
Username:
Password:
 
 

Pages: 1 2 [3] 4   Go Down
  Print  
Author Topic: Load Balance and Squid does not work runnig in the same server  (Read 18210 times)
0 Members and 1 Guest are viewing this topic.
igmic
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #30 on: March 15, 2011, 12:24:59 pm »

didn't work for me as well..
Logged
3dinfluence
Jr. Member
**
Offline Offline

Posts: 31


View Profile
« Reply #31 on: March 15, 2011, 02:44:45 pm »

I just put a patch that will include localhost(127.0.0/8) on the default nat rules so AON will not be needed anymore in the configuration.
Should be easier now by just creating a floating rule and selecting the gateway group on it.

Is this patch now in the public RC1 builds?  I have the build from Tue Mar 15 08:53:58 EDT 2011 and when I go into the NAT rules and AON I'm not seeing any default rules for 127.0.0/8.
Logged
dave99
Newbie
*
Offline Offline

Posts: 24


View Profile
« Reply #32 on: March 15, 2011, 06:04:55 pm »

Is there anyone trying to do this with multiple vlans also? I had it working per the various posts in this thread, but it broke my ability to get to http sites on other vlans. I think having squid using 127.0.0.1 is what breaks it.
Logged
onkeldave83
Full Member
***
Offline Offline

Posts: 214


View Profile
« Reply #33 on: March 16, 2011, 10:19:07 am »

and when i use although havp with parent to squid?HuhHuh?

in this case :

tcp_outgoing_address 127.0.0.1;never_direct allow all;cache_peer 127.0.0.1 parent 4444 0 name=havp no-query no-digest no-netdb-exchange default;redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squidGuard/squidGuard.conf;redirector_bypass on;redirect_children 3


HuhHuh what is with cache peer to loopback?
Logged
nassman
Jr. Member
**
Offline Offline

Posts: 78


View Profile
« Reply #34 on: March 18, 2011, 07:19:28 am »

Still not work.
What is the solution?
Logged
rubic
Sr. Member
****
Offline Offline

Posts: 358


View Profile
« Reply #35 on: March 18, 2011, 07:55:27 am »

Heper, thanks for your guide!
What advanced option used in the "matching rule, to stop balance twice" floating rule?
I used TCP flags: out of: SYN.
It works!
Logged
heper
Sr. Member
****
Offline Offline

Posts: 559


View Profile
« Reply #36 on: March 21, 2011, 03:24:17 am »

rubic:

it's possible to 'mark' packets when they hit one of your rules. Afterwards you can "search" for them packets using other rules, sort of Wink

so basically i use a floating rule to push all http traffic through de gateway-group; at the same time i 'mark' them.

i put another floating rule IN FRONT of my loadbalance-rule and added option 'quick' ; there i push packets out without going through gateway-group ; here i specify to 'match' the packets i 'marked' in my secondary rule.


see this
Logged
rubic
Sr. Member
****
Offline Offline

Posts: 358


View Profile
« Reply #37 on: March 21, 2011, 03:38:29 am »

Hm... will think about... however, looking at pf packet flow diagram, I wonder if floating load-balance rule can fire twice
by the way, in my case your solution works even without binding squid to loopback Huh
Logged
rubic
Sr. Member
****
Offline Offline

Posts: 358


View Profile
« Reply #38 on: March 22, 2011, 12:22:35 am »

heper, you were right!
when default WAN is down, an outgoing packet hits the rule twice (both on WAN fnd OPT-WAN interface)
if you don't mind I would like to translate your how-to for russian pfSense community
thanks!
Logged
ermal
Administrator
Hero Member
*****
Offline Offline

Posts: 3097


View Profile
« Reply #39 on: March 22, 2011, 03:19:11 am »

It hits it twice but really it does not execute the policy routing the second time.
Only the nat rules are executed.
Logged
rubic
Sr. Member
****
Offline Offline

Posts: 358


View Profile
« Reply #40 on: March 22, 2011, 08:02:29 am »

Only the nat rules are executed.
There is one moment with NAT unclear to me. According to pf packet flow diagram (http://homepage.mac.com/quension/pf/flow.png) filtering happen after SNAT. That's why in the rule log we see: if:WAN src:WAN IP -> dst:remote host IP. But when packet rerouted by the policy routing rule reaches OPT-WAN outgoing chain (assuming WAN is down) it's source address appears magically restored to 127.0.0.1. Which block on the diagram do that?
Logged
heper
Sr. Member
****
Offline Offline

Posts: 559


View Profile
« Reply #41 on: March 22, 2011, 03:00:09 pm »

my "how-to" can be translated in any language ... it's only purpose was to return the info i got from ermal to the community Wink
Logged
ermal
Administrator
Hero Member
*****
Offline Offline

Posts: 3097


View Profile
« Reply #42 on: March 22, 2011, 03:23:10 pm »

rubic, its pfSense customized pf(4), by me. Smiley

This functionality can not be done with standard pf(4), at least the version that is used on FreeBSD, without too much tinkering.
Logged
rubic
Sr. Member
****
Offline Offline

Posts: 358


View Profile
« Reply #43 on: March 23, 2011, 03:20:52 am »

rubic, its pfSense customized pf(4), by me. Smiley

This functionality can not be done with standard pf(4), at least the version that is used on FreeBSD, without too much tinkering.
Ok, now I see Smiley Thank you for your work!
translated: http://forum.pfsense.org/index.php/topic,34810.0.html
Logged
lnaimi
Newbie
*
Offline Offline

Posts: 23


View Profile
« Reply #44 on: March 24, 2011, 09:26:11 am »

Ok the guide works with FailOver, but for LoadBalance?Huh Thanks
Logged
Pages: 1 2 [3] 4   Go Up
  Print  
 
Jump to:  

 

Page created in 0.03 seconds with 19 queries.