{"id":677,"date":"2012-06-01T00:00:00","date_gmt":"2012-06-01T00:00:00","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2012\/06\/01\/brocade-adx-header-insert\/"},"modified":"2023-02-24T13:07:39","modified_gmt":"2023-02-24T13:07:39","slug":"brocade-adx-header-insert","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-header-insert.html","title":{"rendered":"Brocade ADX: Insert X-Forwarded-Proto & X-Forwarded-For Headers"},"content":{"rendered":"
Within this article we will look at the configuration steps required adding headers to your HTTP based traffic.<\/p>\n
The 2 headers we will look at are X-Forwarded-Proto and X-Forwarded-For. These headers are described below.<\/p>\n
csw-policy “INSERT_X-FORWARDED-PROTO-HTTPS”
\ndefault forward 1
\ndefault rewrite request-insert header “X-Forwarded-Proto:https”<\/p>\n
csw-policy “INSERT_X-FORWARDED-PROTO-HTTP”
\ndefault forward 1
\ndefault rewrite request-insert header “X-Forwarded-Proto:http”<\/p>\n
server virtual VIP_88.88.88.88 192.168.1.88 server real REALSERVER1 192.168.1.11 server real REALSERVER2 192.168.1.12 server real REALSERVER3 192.168.1.13 csw-policy “INSERT_X-FORWARDED-FOR” server virtual VIP_88.88.88.88 192.168.1.88 server real REALSERVER1 192.168.1.11 server real REALSERVER2 192.168.1.12 server real REALSERVER3 192.168.1.13 Below we combine both headers into a single csw-policy.<\/p>\n Note<\/em> : For simplicity the virtual servers and real servers are not shown.<\/p>\n csw-policy “HEADER-INSERT-HTTP” csw-policy “HEADER-INSERT-HTTPS” <\/p>\n","protected":false},"excerpt":{"rendered":" Within this article we will look at the configuration steps required adding headers to your HTTP based traffic. The 2 headers we will look at are X-Forwarded-Proto and X-Forwarded-For. These headers are described below. X-Forwarded-Proto – Inserts the protocol used between the client and the intermediary device (such as the LoadBalancer). Typically used when protocol … Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"yoast_head":"\n
\nport ssl csw-policy “INSERT_X-FORWARDED-PROTO-HTTPS”
\nport ssl csw
\nport http csw-policy “INSERT_X-FORWARDED-PROTO-HTTP”
\nport http csw
\n\u00a0bind http REALSERVER1 http<\/span>
\n\u00a0bind http REALSERVER2 http<\/span>
\n\u00a0bind http REALSERVER3 http<\/span>
\n\u00a0bind ssl REALSERVER1 http<\/span>
\n\u00a0bind ssl REALSERVER2 http<\/span>
\n\u00a0bind ssl REALSERVER3 http<\/span><\/p>\n
\n\u00a0port http<\/span>
\n\u00a0port http keepalive<\/span>
\nport http group-id 1 1<\/p>\n
\n\u00a0port http<\/span>
\n\u00a0port http keepalive<\/span>
\nport http group-id 1 1<\/p>\n
\n\u00a0port http<\/span>
\n\u00a0port http keepalive<\/span>
\nport http group-id 1 1<\/p>\nX-Forwarded-For<\/strong><\/h3>\n
\ndefault forward 1
\ndefault rewrite request-insert client-ip “X-Forwarded-For”<\/p>\n
\nport http csw-policy “INSERT_X-FORWARDED-FOR”
\nport http csw
\n\u00a0bind http REALSERVER1 http<\/span>
\n\u00a0bind http REALSERVER2 http<\/span>
\n\u00a0bind http REALSERVER3 http<\/span><\/p>\n
\n\u00a0port http<\/span>
\n\u00a0port http keepalive<\/span>
\nport http group-id 1 1<\/p>\n
\n\u00a0port http<\/span>
\n\u00a0port http keepalive<\/span>
\nport http group-id 1 1<\/p>\n
\n\u00a0port http<\/span>
\n\u00a0port http keepalive<\/span>
\nport http group-id 1 1<\/p>\nCombined<\/strong><\/h3>\n
\ndefault forward 1
\ndefault rewrite request-insert header “X-Forwarded-Proto:http”
\ndefault rewrite request-insert client-ip “X-Forwarded-For”<\/p>\n
\ndefault forward 1
\ndefault rewrite request-insert header “X-Forwarded-Proto:https”
\ndefault rewrite request-insert client-ip “X-Forwarded-For”<\/p>\n