Forum Discussion
keefyweefy
Mar 08, 2011Nimbostratus
Filter on source & destination
Hello all
I'm trying to write what I presumed would be a simple iRule to restrict access from a client. We have a forwarding (IP) VS for a subnet say 192.168.1.0/24
I'm applying th...
hooleylist
Mar 08, 2011Cirrostratus
I'd suggest using IP::addr and/or address type datagroups which will do bit comparisons instead of string comparisons of the IP addresses:
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] eq 192.168.2.1] } {
if { [IP::addr [IP::local_addr] eq 192.168.1.100] || [IP::addr [IP::local_addr] eq 192.168.1.101]
drop
}
}
}
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects