Forum Discussion
JRahm
Mar 08, 2007Admin
Sorry, had some extra brackets in there around the class. This may be simpler, and tested fine on my 9.1.2 HF5 system just now.
when CLIENT_ACCEPTED {
if { ([matchclass [IP::client_addr] equals $::allowed_clients]) and (([TCP::local_port] < 13800) or ([TCP::local_port] > 300))} {
log local0. "Connection accepted from [IP::client_addr] destined for tcp port [TCP::local_port]"
forward
} else {
log local0. "Connection discarded from [IP::client_addr] destined for tcp port [TCP::local_port]"
discard
}
}
HTH...Jason