[Zrouter-src] ZRouter.org: push to ZRouter profiles/lua_web_ui/files/etc/www/l...
zrouter-src at zrouter.org
zrouter-src at zrouter.org
Mon Sep 24 11:23:52 UTC 2012
details: http://zrouter.org/hg/zrouter//rev/40667c72ca98
changeset: 466:40667c72ca98
user: Aleksandr Rybalko <ray at ddteam.net>
date: Mon Sep 24 14:16:47 2012 +0300
description:
Here we will do Load Balancing support, but later.
diffstat:
profiles/lua_web_ui/files/etc/www/lib/lb.lua | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diffs (17 lines):
diff -r b61a12ee8443 -r 40667c72ca98 profiles/lua_web_ui/files/etc/www/lib/lb.lua
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/profiles/lua_web_ui/files/etc/www/lib/lb.lua Mon Sep 24 14:16:47 2012 +0300
@@ -0,0 +1,12 @@
+
+--[[
+ipfw delete 00500 00600 00610 00620 00630
+tun0_gw=`ifconfig tun0 | grep inet | awk '{print $4;}'`
+tun1_gw=`ifconfig tun1 | grep inet | awk '{print $4;}'`
+ipfw add 00500 check-state
+ipfw add 00600 prob 0.500000 skipto 620 ip from 192.168.4.0/24 to not me keep-state
+ipfw add 00610 skipto 630 ip from 192.168.4.0/24 to not me keep-state
+ipfw add 00620 fwd $tun0_gw ip from 192.168.4.0/24 to not me
+ipfw add 00630 fwd $tun1_gw ip from 192.168.4.0/24 to not me
+
+]]
\ No newline at end of file
More information about the Zrouter-src
mailing list