Forum Discussion
David_Peters_19
Nimbostratus
Aug 13, 2010Creating a TCP .net iRule to reject IP
Hello All,
I am tring to block IPs that are not on a "White List" and log the rejections.
Because this is an application using .net and TCP I can not use the HTTP profile. I have trie...
Chris_Miller
Altostratus
Aug 13, 2010Posted By naladar on 08/13/2010 06:46 AM
You might try giving this a shot:
when CLIENT_ACCEPTED {
if {not ([IP::addr [IP::client_addr] equals $::IPsTest]) } {
log local0.info "WirelessCDL: Client Rejected IP:[IP::client_addr]"
discard
}
}
You have to use matchclass or class match to reference a datagroup, right?Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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