Load Balancing fails?
-
Dear,
I've setup a loadbalancing/failover system using a tutorial here. Without doing a thing it seems to be broken?
I've made some screenshots of it…or did i made a mistake?PPPOE ISP 1 status
http://krisken.dommel.be/pfsense/loadbalancing/status-interfaces-isp1.jpgPPPOE ISP 2 status
http://krisken.dommel.be/pfsense/loadbalancing/status-interfaces-isp2.jpgGateway groups
http://krisken.dommel.be/pfsense/loadbalancing/system-gateway-groups.jpgFirewall Rules
http://krisken.dommel.be/pfsense/loadbalancing/firewall-rules.jpgGateways
http://krisken.dommel.be/pfsense/loadbalancing/system-gateways.jpgWhen i go to e.g. www.whatismyip.com, i always see the IP of my Belgacom account, but never the ip of my dommel account.
-
-
Both of your gateways are marked as default. Did you set that or did it happen by accident?
-
In your rules, everything will match the LB_WAN1andWAN2 rule, and never get past that in the ruleset, ever.
-
Don't use the same browser to test - It will keep a state/session open and always show the same WAN. Try several browsers, or use curl from a command prompt on a system on LAN.
-
-
-
Both of your gateways are marked as default. Did you set that or did it happen by accident?
-
In your rules, everything will match the LB_WAN1andWAN2 rule, and never get past that in the ruleset, ever.
-
Don't use the same browser to test - It will keep a state/session open and always show the same WAN. Try several browsers, or use curl from a command prompt on a system on LAN.
1. I've already seen that, and only the Belgacom line is the default one. But when i go to http://10.0.0.1/system_gateways_edit.php?id=0 and uncheck "Default Gateway", and click on save…i don't change at all?
2. could you please say me how to set it correctly?
3. I always use firefox and chrome.
-
-
re: both gateways shown as default.
If both are still shown as default, go to Diagnostics menu => Command Prompt page and executels -al /tmp/
and post the result here.
-
re: both gateways shown as default.
If both are still shown as default, go to Diagnostics menu => Command Prompt page and executels -al /tmp/
and post the result here.
Thanks for this advice!
//edit
I've tried to uncheck the "default" box using IE, firefox, chrome and safari (on different computers), but i can't change it?
//editHere you are:
$ ls -al /tmp/
total 128
drwxrwxrwt 4 root wheel 1024 Oct 9 21:51 .
drwxr-xr-x 24 root wheel 512 Oct 9 21:34 ..
-rw-r–r-- 1 root wheel 73 Oct 9 21:51 apinger.status
-rw-r--r-- 1 root wheel 83 Oct 9 21:36 bootup_messages
-rw-r--r-- 1 root wheel 0 Oct 9 21:36 captiveportal.lock
---------- 1 root wheel 61 Oct 9 21:50 check_test
-rw-r--r-- 1 root wheel 14742 Oct 9 21:50 config.cache
-rw-r--r-- 1 root wheel 0 Oct 9 21:51 config.lock
-rw-r--r-- 1 root wheel 429 Oct 9 21:36 dhcpd.sh
drwxr-xr-x 2 root wheel 512 Oct 9 21:36 lighttpdcompress
-rw-r--r-- 1 root wheel 29 Oct 9 21:50 pfSense_version
-rw-r--r-- 1 root wheel 1776 Oct 9 21:51 pfctl_si_out
-rw-r--r-- 1 root wheel 4572 Oct 9 21:51 pfctl_ss_out
srwxr-xr-x 1 root wheel 0 Oct 9 21:36 php-fastcgi.socket-0
srwxr-xr-x 1 root wheel 0 Oct 9 21:36 php-fastcgi.socket-1
-rw-r--r-- 1 root wheel 0 Oct 9 21:36 pppoe0_defaultgw
-rw-r--r-- 1 root wheel 17 Oct 9 21:36 pppoe0_ip
-rw-r--r-- 1 root wheel 12 Oct 9 21:36 pppoe0_router
-rw-r--r-- 1 root wheel 0 Oct 9 21:36 pppoe0up
-rw-r--r-- 1 root wheel 15 Oct 9 21:36 pppoe1_ip
-rw-r--r-- 1 root wheel 11 Oct 9 21:36 pppoe1_router
-rw-r--r-- 1 root wheel 0 Oct 9 21:36 pppoe1up
-rw-r--r-- 1 root wheel 4856 Oct 9 21:36 rules.debug
-rw-r--r-- 1 root wheel 4540 Oct 9 21:36 rules.debug.old
-rw-r--r-- 1 root wheel 216 Oct 9 21:36 rules.test.packages
-rw-r--r-- 1 root wheel 0 Oct 9 21:48 tmpHOSTS
drwxrwxrwx 2 root wheel 512 Oct 9 21:36 uploadbar -
I also have multiple default gateways, and I when I deselect this and save, the change is lost :
$ ls -al /tmp/ total 376 drwxrwxrwt 4 root wheel 1024 Sep 8 20:18 . drwxr-xr-x 26 root wheel 512 Oct 9 19:10 .. -rw-r--r-- 1 root wheel 147 Oct 9 20:17 bootup_messages -rw-r--r-- 1 root wheel 0 Oct 9 20:17 captiveportal.lock ---------- 1 root wheel 745 Sep 8 20:17 check_test -rw-r--r-- 1 root wheel 64444 Sep 8 20:16 config.cache -rw-r--r-- 1 root wheel 0 Sep 8 20:18 config.lock -rw-r--r-- 1 root wheel 429 Oct 9 20:17 dhcpd.sh -rw-r--r-- 1 root wheel 145 Sep 8 20:17 em3_error_output -rw-r--r-- 1 root wheel 0 Sep 8 20:16 em3_output -rw-r--r-- 1 root wheel 15 Sep 8 20:17 em3_router drwxr-xr-x 2 root wheel 512 Oct 9 20:17 lighttpdcompress -rw-r--r-- 1 root wheel 14 Oct 9 20:17 ovpns1_router -rw-r--r-- 1 root wheel 0 Sep 8 20:11 ovpns1up -rw-r--r-- 1 root wheel 29 Sep 8 20:17 pfSense_version -rw-r--r-- 1 root wheel 1738 Sep 8 20:17 pfctl_si_out -rw-r--r-- 1 root wheel 61265 Sep 8 20:17 pfctl_ss_out srwxr-xr-x 1 root wheel 0 Oct 9 20:17 php-fastcgi.socket-0 srwxr-xr-x 1 root wheel 0 Oct 9 20:17 php-fastcgi.socket-1 -rw-r--r-- 1 root wheel 14 Sep 8 20:17 pppoe0_defaultgw -rw-r--r-- 1 root wheel 16 Sep 8 20:16 pppoe0_ip -rw-r--r-- 1 root wheel 15 Sep 8 20:16 pppoe0_router -rw-r--r-- 1 root wheel 0 Sep 8 20:16 pppoe0up -rw-r--r-- 1 root wheel 16 Sep 8 20:16 pppoe1_ip -rw-r--r-- 1 root wheel 15 Sep 8 20:16 pppoe1_router -rw-r--r-- 1 root wheel 0 Sep 8 20:16 pppoe1up -rw-r--r-- 1 root wheel 16826 Sep 8 20:16 rules.debug -rw-r--r-- 1 root wheel 11648 Sep 8 20:16 rules.debug.old -rw-r--r-- 1 root wheel 0 Sep 8 20:15 tmpHOSTS drwxrwxrwx 2 root wheel 512 Oct 9 20:17 uploadbar
-
I just committed a fix for the "multiple default gateways" problem.
GB
-
Thanks for the update.
How long does it typically take for the change to make it into a current snap?
– Phob
-
How long does it typically take for the change to make it into a current snap?
The ideal case is that there have been no commits in a while, and that commit wakes up the snapshot builder and it starts a run. It takes a few hours for a full snapshot run to complete and upload, so it could be 4-6 hours, or a little more, I haven't timed the snapshot runs lately.
The worst case is that another build started before the commit, and it was missed in that run, so it would have to wait until that run finished and then the builder would immediately start a new run, so maybe 12+ hours.
You can always gitsync up to current code if there were only changes on the PHP side of things. Search the doc wiki for "gitsync" for more info.
-
Thanks for that info.
I updated to :
2.0-BETA4 (i386)
built on Sun Oct 10 10:45:27 EDT 2010
FreeBSD 8.1-RELEASE-p1The multiple default GW bug seems solved for me! Thanks.
Now I just need help to figure out my "Gathering Data" and disconnect button issues.
– Phob
-
"Gathering Data" issue is fixed now too.