Forum Discussion
Jonathan_30755
May 24, 2012Nimbostratus
Streaming SSL Termination
I'm having an issue with a streaming profile. Currently the profile was created for SSL Termination. With the source being HTTP: and the destination being HTTPS: . The issue is that it re-writes everything in the stream, not always a bad thing. However, it re-writes thing that I don't want it to. Is there a way I can have an iRule that will only re-write for let's say *.domain.* and ignore everything else?
- Kevin_Davies_40NacreousThe iRule can specify if the stream is disabled or enabled using the STREAM::disable and STREAM::enable commands. So based on pretty much anycondition you need to you turn this off or on.
- Kevin_Davies_40NacreousThe iRule can specify if the stream is disabled or enabled using the STREAM::disable and STREAM::enable commands. So based on pretty much any condition you need to you turn this off or on.
- nitassEmployeecan you use wildcard only in front of FQDN?
[root@ve1024:Active] config b virtual bar list virtual bar { snat automap pool foo destination 172.28.19.79:80 ip protocol 6 rules myrule profiles { http {} stream {} tcp {} } } [root@ve1024:Active] config b pool foo list pool foo { members 200.200.200.101:80 {} } [root@ve1024:Active] config b rule myrule list rule myrule { when HTTP_REQUEST { STREAM::disable } when HTTP_RESPONSE { if {[HTTP::header value Content-Type] contains "text"}{ STREAM::expression {@http://[^.]*?\.domain\.com@@ @http://[^.]*?\.domain\.net@@} STREAM::enable } } when STREAM_MATCHED { STREAM::replace "[string map {http:// https://} [STREAM::match]]" } } original content [root@ve1024:Active] config curl http://200.200.200.101/test.html ... http://www.domain.com/something http://www.google.com/something http://www.domain.net/something http://sub.domain.com/something http://www.yahoo.com/something ... replaced content [root@ve1024:Active] config curl http://172.28.19.79/test.html ... https://www.domain.com/something http://www.google.com/something https://www.domain.net/something https://sub.domain.com/something http://www.yahoo.com/something ...
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