Forum Discussion
Block external IP address from hitting VS
Can someone help me with an iRule that blocks and external IP address from hitting my VS"s?
External IP VS
177.177.177.177 -----------------------> 180.180.180.180:21
I know I would normally just add a firewall ACL, but this VS sits directly out in 'net and would like to use a iRule to issue the block.
Thank you!! Sincerely,
RGW
3 Replies
- Kevin_Davies_40
Nacreous
when CLIENT_ACCEPTED {
if {[IP::client_addr] eq "yourIPaddress"]} { reject }
}
replace yourIPaddress with the address of the client you are trying to stop.
Regards
Kevin
- What_Lies_Bene1
Cirrostratus
Note that a Packet Filter might provide better DDoS protection. Also, using 'drop' rather than 'reject' in the iRule will prevent any response to the client at all and save a few CPU cycles, RAM bits and connections. - Mohamed_Lrhazi
Altocumulus
Should be:when CLIENT_ACCEPTED { if { [IP::addr [IP::client_addr] equals 10.10.10.10] } { drop } }
drop also waists the attackers time, which is cool 🙂
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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