Forum Discussion

Ernest_Engstrom's avatar
Ernest_Engstrom
Icon for Nimbostratus rankNimbostratus
Oct 11, 2013

Irule question - Finally sunsetting our v4 LTM

I need help rewriting this logging irule (from our v4 LTM). NOTE: the new LTM is currently running 10.0.4.

 

if (client_addr == 0.0.0.0 netmask 255.255.255.0) { discard } else { log local0.info "TCP connection from: [${client_addr}]:[${client_port}]" log local0.info " to [${server_addr}]:[${server_port}]" use pool dss_int_a }

 

Thanks in advance.

 

1 Reply

  • This should probably work for you:

    when CLIENT_ACCEPTED {
        if { [IP::addr [IP::client_addr] equals "0.0.0.0/24"] } { 
            discard 
        } else { 
            log local0.info "TCP connection from: [IP::client_addr]:[TCP::client_port]" 
            log local0.info " to [IP::server_addr]:[TCP::server_port]" 
            pool dss_int_a 
        }
    }