Forum Discussion
jrmorris_151361
Nimbostratus
Patrik,
I'm sorry, but I still get a blank results page. I have copied what you have here exactly.
ltm rule TEST_Connection_Limit_2 {
when CLIENT_ACCEPTED {
set tbl "connlimit:[IP::client_addr]"
set key "[TCP::client_port]"
table set -subtable metatable "connlimit:[IP::client_addr]" 1
table set -subtable $tbl $key "ignored" 180
if { [table keys -subtable $tbl -count] > 5000 } {
table delete -subtable $tbl $key
event CLIENT_CLOSED disable
reject
} else {
set timer [after 60000 -periodic { table lookup -subtable $tbl $key }]
}
}
when CLIENT_CLOSED {
after cancel $timer
table delete -subtable $tbl $key
}
}
ltm rule TEST_Disable_Persistence {
when LB_SELECTED {
log local0. ""
log local0. "client src - [IP::client_addr]:[TCP::client_port], client dst - [clientside {IP::local_addr}]:[clientside {TCP::local_port}]"
log local0. "cs server [clientside {IP::local_addr}]:[clientside {TCP::local_port}]"
log local0. "ss client [IP::local_addr]:[TCP::local_port]"
log local0. "ss server [IP::remote_addr]:[TCP::remote_port]"
log local0. "LB Server [LB::server]"
log local0. "LB SNAT [LB::snat]"
log local0. "LB Status [LB::status]"
log local0. "LB Server Selected [LB::server addr]"
log local0. "Persist [LB::persist]"
if { [IP::addr [IP::client_addr] equals 10.42.32.18] } {
persist none }
}
}
ltm rule TEST_View_Tables_2 {
when HTTP_REQUEST {
set response ""
foreach tablename [table keys -subtable "metatable"] {
foreach key [table keys -subtable $tablename] {
set value [table lookup -notouch -subtable $tablename $key]
set response "$response
$key = $value"
}
}
HTTP::respond 200 content $response
}
}
ltm virtual vs_lbtest.stjude.org_http {
destination 10.200.44.40:http
ip-protocol tcp
mask 255.255.255.255
persist {
source_addr {
default yes
}
}
pool lbtestpool1_http_pool
profiles {
http { }
tcp { }
}
rules {
TEST_Connection_Limit_2
TEST_Disable_Persistence
}
source 0.0.0.0/0
vs-index 36
}
ltm virtual vs_lbtest_tables {
destination 10.200.44.38:http
ip-protocol tcp
mask 255.255.255.255
profiles {
http { }
tcp { }
}
rules {
TEST_View_Tables_2
}
source 0.0.0.0/0
vs-index 35
}
When I access I get load balanced between my two test web servers. When I try to view the table, I get a 200 return, but it is a blank page. The inspector just shows:
Thanks.
Aug 12, 2015
I'll check it out tomorrow in our lab. :)
/Patrik