Ryan_Rowe_79249
Sep 21, 2009Nimbostratus
Need IP restrict 9.x irule on 4.x
This is my basic 9.x rule
when CLIENT_ACCEPTED {
if {[matchclass [IP::client_addr] equals $::] || [matchclass [IP::client_addr] equals $::]}{
} else {
discard
}
}
and the datasource class contains IP's and Networks
If I could get a example of using classes in the 4.x then I think I could move forward.
This is what I have so far.
if (client_addr == one of ) {
pool
}
else {
discard
}
}
But I don't think it works.