roni_365915
Jul 04, 2018Nimbostratus
Update iRule
Hi,
I have a rule that is looking in the table for some parameter (dest ip). I want to change the table ip value. how can I do that? it is ok that old sessions will still use the old.
Hi,
I have a rule that is looking in the table for some parameter (dest ip). I want to change the table ip value. how can I do that? it is ok that old sessions will still use the old.
Hi,
simple example table with userip and name:
Just log:
set clientip [IP::client_addr]
set tablevalue [table lookup $userip]
if {$tablevalue != ""} {
set name $tablevalue
log local0. "IP $userip - name $name"
}
Modify or delete:
set clientip [IP::client_addr]
set tablevalue [table lookup $userip]
if {$tablevalue != ""} {
set name $tablevalue
log local0. "IP $userip - name $name"
delete
table delete $userip
then create
table set $userip youssef 3600
}
You can also replace:
table replace
table set $userip youssef 3600