imap
root@(B3900-R72-S16)(cfg-sync Standalone)(Active)(/Common)(tmos) list ltm virtual bar143
ltm virtual bar143 {
destination any:143
ip-protocol tcp
mask any
pool gw
profiles {
tcp { }
}
rules {
myrule143
}
source 0.0.0.0/0
source-address-translation {
type automap
}
translate-address disabled
translate-port disabled
vlans-disabled
}
root@(B3900-R72-S16)(cfg-sync Standalone)(Active)(/Common)(tmos) list ltm rule myrule143
ltm rule myrule143 {
when CLIENT_ACCEPTED {
TCP::collect 0 0
}
when CLIENT_DATA {
if { [TCP::payload] contains "LOGIN" } {
scan [TCP::payload] {%*s LOGIN %s} username
log local0. "username $username"
TCP::release
return
}
TCP::release
TCP::collect
}
}
[root@B3900-R72-S16:Active:Standalone] config tail -f /var/log/ltm
Jan 5 03:16:22 B3900-R72-S16 info tmm3[11078]: Rule /Common/myrule143 : username "garfield@something.com"
Jan 5 03:16:22 B3900-R72-S16 info tmm2[11078]: Rule /Common/myrule143 : username "garfield@something.com"
Jan 5 03:16:22 B3900-R72-S16 info tmm1[11078]: Rule /Common/myrule143 : username "odie@something.com"
Jan 5 03:16:22 B3900-R72-S16 info tmm[11078]: Rule /Common/myrule143 : username "odie@something.com"