Forum Discussion
Ignat_Vassilev1
Nimbostratus
Jan 30, 2012SIP Monitor question
Hello I have problem with SIP health check. F5 send a SIP OPTIONS request on UDP port 5060 to the SIP server. The SIP server reply with SIP/2.0 200 OK but include SDP in the a...
Yann_Desmarest
Cirrus
Mar 24, 2016Hello,
You can use the following :
when HTTP_REQUEST {
if {[HTTP::header exists X-Forwarded-For]}{
HTTP::header replace X-Forwarded-For "[HTTP::header X-Forwarded-For], [IP::client_addr]"
} else {
HTTP::header insert X-Forwarded-For [IP::client_addr]
}
}
Yann_Desmarest
Cirrus
Mar 24, 2016Hello,
The irule provided add the client ip to an existing X- header otherwise, it will add a new one with the clientip.
Insert allow you to add a new header.
Replace add a new header if there is no existing header with the same name, otherwise it changes the value of an existing x- header
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