Forum Discussion
skarpovi_111573
Nimbostratus
Mar 27, 2008insert field to HTTP header
can Big IP insert field data into the HTTP header that the IIS server can then read and use to determine whether or not the user in question is coming from our internal environment or from the public networks
- Nicolas_Menant
Employee
Hi, - skarpovi_111573
Nimbostratus
what is header_1 value_3 and why do i need log local0. - The_Bhattman
Nimbostratus
Header_1 represents a header name such as "user" or "host" - Nicolas_Menant
Employee
Exactly - skarpovi_111573
Nimbostratus
OK, i guess i have to reinstate the question and describe my situation. - Nicolas_Menant
Employee
Hi,when HTTP_REQUEST { if {([TCP::local_port] eq "80") and ([IP::client_addr] eq "10.x.x.x/16")} { HTTP::redirect "https://[HTTP::host][HTTP::uri]" } elseif {[TCP::local_port] eq "80" } { HTTP::redirect "http://[HTTP::host][HTTP::uri]" } else { HTTP::header insert STRING HERE_YOU_SPECIFY_THE_VALUE_YOU_WANT_STRING_TO_HAVE pool Servers-Pool } }
- skarpovi_111573
Nimbostratus
will it work this way??? - The_Bhattman
Nimbostratus
When you do this the logic will bewhen HTTP_REQUEST { if { [IP::addr 10.0.0.0/16 eq [IP::client_addr]] } { HTTP::header insert STRING MLint if { [TCP::local_port eq "80" } { HTTP::redirect "https://[HTTP::host][HTTP::uri]" } else { pool eRoom-Servers-Pool } } }
- skarpovi_111573
Nimbostratus
tried to use this iRule, didn't get any errors, but at the same time didn't see any string incerted in Header. it does https redirect. Is there any other way to see that incert in header? i use ieHTTPheaders software to view. is anything else needs to be done on the BigIP side to enable this future.
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