Forum Discussion
nitass
Jan 05, 2013Employee
e.g.
[root@ve10:Active] config b virtual bar80 list
virtual bar80 {
snatpool mysnatpool
pool foo
destination 172.28.19.252:80
ip protocol 6
rules myrule
}
[root@ve10:Active] config b pool foo list
pool foo {
members 200.200.200.101:80 {}
}
[root@ve10:Active] config b snatpool mysnatpool list
snatpool mysnatpool {
members {
200.200.200.201
200.200.200.202
}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when SERVER_CONNECTED {
log local0. ""
log local0. "cs client [IP::client_addr]:[TCP::client_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]"
}
}
[root@ve10:Active] config tail -f /var/log/ltm
Jan 5 17:41:29 local/tmm info tmm[8623]: Rule myrule :
Jan 5 17:41:29 local/tmm info tmm[8623]: Rule myrule : cs client 192.168.206.33:51080
Jan 5 17:41:29 local/tmm info tmm[8623]: Rule myrule : cs server 172.28.19.252:80
Jan 5 17:41:29 local/tmm info tmm[8623]: Rule myrule : ss client 200.200.200.201:51080
Jan 5 17:41:29 local/tmm info tmm[8623]: Rule myrule : ss server 200.200.200.101:80