Bug 1471255
Summary: | X-Forwarded-For and related headers send the IPv6 form of the source IPv4 address | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Ben Bennett <bbennett> | |
Component: | Networking | Assignee: | Phil Cameron <pcameron> | |
Networking sub component: | router | QA Contact: | zhaozhanqi <zzhao> | |
Status: | CLOSED ERRATA | Docs Contact: | ||
Severity: | urgent | |||
Priority: | unspecified | CC: | aos-bugs, bmeng, hongli | |
Version: | 3.6.0 | |||
Target Milestone: | --- | |||
Target Release: | 3.7.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
Cause: No doc change
Consequence:
Fix:
Result:
|
Story Points: | --- | |
Clone Of: | ||||
: | 1472976 (view as bug list) | Environment: | ||
Last Closed: | 2017-11-28 22:01:28 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1472976, 1477673 |
Description
Ben Bennett
2017-07-14 20:16:37 UTC
Commit pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/7821bd5070fb167dfe455d017d338e22673d4cf3 Add an ENV to control ipv6 behavior in the router This patch adds an environent variable called ROUTER_IP_V4_V6_MODE which must be set to "v4" (the default), "v6", or "v4v6" to control whether the router to binds to IPv4, IPv6, or both. Note that when set to 'v6' or 'v4v6', the X-Forwarded-For and Forwarded http headers will be in IPv6 form (even when the connection was an IPv4 one, if set to 'v4v6'). Fixes bug 1471255 (https://bugzilla.redhat.com/show_bug.cgi?id=1471255) The fix had been merged into latest ocp build, move it forward. Assigning this to @pcameron to shepherd in. The PR is https://github.com/openshift/origin/pull/15566 to correct an issue. verified in atomic-openshift-3.7.0-0.143.1.git.0.e152287 and the bug has been fixed. 1. ROUTER_IP_V4_V6_MODE=v4 (by default) forwarded: for=10.8.241.59;host=header-test-insecure-hongli.apps.1009-e6s.qe.rhcloud.com;proto=http x-forwarded-for: 10.8.241.59 2. ROUTER_IP_V4_V6_MODE=v4v6 forwarded: for="[::ffff:10.8.241.59]";host=header-test-insecure-hongli.apps.1009-e6s.qe.rhcloud.com;proto=http x-forwarded-for: ::ffff:10.8.241.59 or forwarded: for="[3037::37]";host=header-test-insecure-hongli.apps.1009-e6s.qe.rhcloud.com;proto=http x-forwarded-for: 3037::37 2. ROUTER_IP_V4_V6_MODE=v6 forwarded: for="[3037::37]";host=header-test-insecure-hongli.apps.1009-e6s.qe.rhcloud.com;proto=http x-forwarded-for: 3037::37 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:3188 |