Forum Discussion
ihsanekici_1810
Nimbostratus
Jan 03, 2015Which Client Forward Which Node Irule?
Hi
i want to add which client request forwarded which node to http request header. Can you help me for this irule?
10 Replies
- The_Bhattman
Nimbostratus
Hi Ihsanekici
Go ahead and post up what you have now and what you want in the desired effect so the community can understand how to help
Thanks, CB
- ihsanekici_1810
Nimbostratus
example ; client_ip: x.x.x.x = node: 192.168.1.10 client_ip: y.y.y.y = node: 192.168.1.11
this information will add http request header.
- Brad_Parker_139
Nacreous
Try this:
when HTTP_REQUEST { HTTP::header insert "client_ip" [IP::client_addr] "node" [IP::server_addr] }- Brad_Parker_139
Nacreous
syntax may actually need to be when HTTP_REQUEST { HTTP::header insert [list "client_ip" [IP::client_addr] "node" [IP::server_addr]] } - ihsanekici_1810
Nimbostratus
hi brad when i add this irule website isn't open. - Brad_Parker_139
Nacreous
Do you have an HTTP profile on your virtual server? It is require for http manipulation via the irule.
- Brad_Parker
Cirrus
Try this:
when HTTP_REQUEST { HTTP::header insert "client_ip" [IP::client_addr] "node" [IP::server_addr] }- Brad_Parker
Cirrus
syntax may actually need to be when HTTP_REQUEST { HTTP::header insert [list "client_ip" [IP::client_addr] "node" [IP::server_addr]] } - ihsanekici_1810
Nimbostratus
hi brad when i add this irule website isn't open. - Brad_Parker
Cirrus
Do you have an HTTP profile on your virtual server? It is require for http manipulation via the irule.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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