F5 SMTP
Jump to navigation
Jump to search
set logging in irule via TCL
Something like
when CLIENT_ACCEPTED { # log local0. "Client:[IP::client_addr]:[TCP::client_port]: Connection to [virtual name] [IP::local_addr]:[TCP::local_port]" if { not ([class match [IP::remote_addr] equals smtp_relay_allowed]) } { log local0. "[IP::client_addr]:[TCP::client_port]: Rejecting client - not in list" reject } log local0. "Client:[IP::client_addr]:[TCP::client_port]: SMTP Relay Connection to [virtual name] [IP::local_addr]:[TCP::local_port]" }
tail -f /var/log/ltm | grep "SMTP Relay"