Michel_Lepage_5
Sep 06, 2013Nimbostratus
irule sequence of events
What is the sequence of events.
For example
Does HTTP_REQUEST happen before or after CLIENT_ACCEPTED
I need to allow access to a specific URI only to 2 specific IP addresses
I have this irule. Do I need to check the URI before or after
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 1ST_ADDRESS || [IP::addr [IP::client_addr] equals 2ND_ADDRESS] } {
log local0. "Valid client IP: [IP::client_addr] - forwarding traffic"
forward
}
else {
discard
log local0. "Invalid client IP: [IP::client_addr] - discarding"
}
}
Thank you your help
Michel