Forum Discussion
Fernando_33356
Nimbostratus
Oct 07, 2010rules based on destination using standard VS
Hi have a standard VS (I can't change it to http). I want to drop connection going to a specific IP, I used:
when CLIENT_ACCEPTED {
if { [IP::addr [IP::remote_addr] equals 66.6.63.43/255.255.255.255] } then { drop } }
And it is not working. What am i doing wrong?
4 Replies
Sort By
- Fernando_33356
Nimbostratus
I forgot to tell. The LTM are used to balance between our two firewall to get access to the internet. The idea is block one website with irules and use it in the future to block any access to malicious IP addresses. - Fernando_33356
Nimbostratus
I am sorry, you said " you are checking the clients sourceIP and not the destinationIP" , but the irule you posted is using IP::local_addr. As far as I know local_addr is the client IP, that's why I used remote_add. The goal of my rule is to take the decision (drop) based on the destination IP. - Chris_Miller
Altostratus
http://devcentral.f5.com/wiki/default.aspx/iRules.IP - hoolio
Cirrostratus
As Chris and Stefan have suggested, IP::local_addr in CLIENT_ACCEPTED will return the LTM (client's destniation) address for the client connection. In CLIENT_ACCEPTED, IP::remote_addr will return the client IP.
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