Forum Discussion
James_Harris_11
Feb 21, 2007Historic F5 Account
Need to have HTTP Profile turned on?
Do I need to have an HTTP profile enabled to do an iRule that does something along the lines of:
when HTTP_REQUEST {
if { not (([HTTP::uri] contains "something unique here") and
([HTTP::method] equals "SSTP_DUPLEX_POST")) } {
drop
}
}
Thanks in advance
- hoolio
Cirrostratus
If you want to inspect HTTP headers or content you need to have an HTTP profile associated with the virtual server. - Janani_Vasudeva
Nimbostratus
I have a similar case. And I turned on HTTP profile to add the iRule. However, once I turn on the HTTP profile, even when i dont have any iRule (to restrict traffic), my connection doesnt go through. - hoolio
Cirrostratus
I would guess that you don't have a client SSL profile configured on the virtual server. When you add an HTTP profile to a virtual server, you're instructing BIG-IP to parse the content as HTTP. If the client is making an HTTPS request to the virtual server and you want to inspect/change the HTTP content of the request, you must use a client SSL profile to decrypt the traffic. Else, as you've found BIG-IP will reset the connection. - Janani_Vasudeva
Nimbostratus
I just checked...and I do have a client SSL profile. I have a profile created with clientssl as the parent profile and with my certificates selected, which I have mapped to my virtual server. - hoolio
Cirrostratus
This looks like a configuration issue as opposed to an iRule issue. I'd suggest reviewing the config guide and checking the /var/log/ltm log file for errors. - Janani_Vasudeva
Nimbostratus
When I add the HTTP profile are there any specific settings that need to be enabled like for eg. there are options like 'Redirect Rewrites' etc. - dennypayne
Employee
/var/log/ltm (that's an L not an I) = Local Traffic log in the GUI or just go to the /var/log directory on the command line. - Janani_Vasudeva
Nimbostratus
I checked the logs. I dont see anything useful, atleast I cannot make out what it means. The following line is logged again and again - JRahm
Admin
Well that depends on your application. However, the configuration parameters of the BigIP itself is out of the scope of these forums. Applying an http profile, even in it's default state, enables the HTTP events in iRules. I suggest you read the manual regarding the http profile parameters. - Janani_Vasudeva
Nimbostratus
Well. I looked through the documents, solutions and guides on this site. Nothing that I could find for my specific problem.
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