Can someone please let me know whats wrong with the iRULE below?
when CLIENT_ACCEPTED { if { [IP::addr [IP::local_addr] equals x.x.x.x/23] }{
Uncomment the line below to turn on logging.
log local0. "accees not allowed: [IP::local_addr] - reject traffic"
reject
} else {
Uncomment the line below to turn on logging.
log local0. "Valid client IP: [IP::local_addr] - forwarding traffic"
forward
}
snat none log local0. “Not Allowed to SNATed , [IP::client_addr]:[TCP::client_port] --> [IP::local_addr]:[TCP::local_port]” }
I am trying to reject traffic between inter vlan by limited to /23. Rest I want this server to access but no internet.
Internet part works (box have no internet access), but it is not rejected any traffic with /23, I have stuck this iRULE on a forwarding VS whwere source is y.y.y.y/24 and destination is 0.0.0.0/0.
What I am doing wrong?