Forum Discussion
miguel_alvarez_
Nimbostratus
Dec 21, 2017Is it posible to put this i-rule, to drop a hostname, instead an IP addr?:
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals some_hostname] } {
drop
}
}
Hannes_Rapp
Nimbostratus
Dec 21, 2017You drop connections not IP addresses or Hosts. If I understand you correctly, you just want to drop a connection if a particular HTTP Host is requested. That can be done as follows
when HTTP_REQUEST {
if { [HTTP::host] eq "www.drop.me" }{
drop
}
}
This requires HTTP profile applied to your Virtual Server, and SSL/TLS must be offloaded with a clientSSL profile by BigIP if it arrives encrypted
miguel_alvarez_
Nimbostratus
Dec 21, 2017One question: Is this the source address that arrives to the F5?: [HTTP::host] eq ";
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