Forum Discussion
Md__Hasanul_Kab
Nimbostratus
Jul 26, 2017Drop Traffic
Traffic Details 1. Source IP Any, Destination IP Fixed, Service Any, Action Drop. 2. Source IP any, Destination IP any , Service specific, Action Drop.
I need to write iRule to implement above condition.
Here is a simple rule that will do what you've described:
when CLIENT_ACCEPTED { discard }
- Md__Hasanul_Kab
Nimbostratus
I will try
- Lee_Sutcliffe
Nacreous
This should do what you want:
when CLIENT_ACCEPTED { if {([IP::addr[IP::client_addr] equals x.x.x.x]) || ([TCP::server_port] equals xxx)} { drop } else { return } }
- Md__Hasanul_Kab
Nimbostratus
if { [class match [IP::client_addr] equals Destination_IP] } { discard }
elseif { [class match [TCP::local_port] equals Destination_port] } { discard }
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