You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a NS8 is behind a reverse proxy, its source IP must be trusted for forwarded headers. Furthermore the original client IP must be preserved for logs, authorizations and Crowdsec bans.
Activity
Merge branch 'feat-7158'
feat: restore trusted proxies (#80)
Merge pull request #81 from NethServer/feat-7305-2
DavidePrincipi commentedon Mar 12, 2025
In testing:
Test case
Goal: see the issue description
This feature is currently not exposed in the UI, it can be activated with
api-cli.Run this command to set the front-end proxy IP:
Check the configuration:
If the front-end proxy is behind another proxy and so on, use the
depthparameter too:Verify that:
feat: TLS-ALPN-01 challenge requirements (#145)
gsanchietti commentedon Mar 13, 2025
By default, traefik replaces
X-Fowarded-Forheaders, still it preserve custom headers likeX-Forwarded-Custom.Tested with a custom traefik route to local echo server, started with:
Executing a curl request while trying to forge the
X-Forwarded-For:With default traefik configuration, forwarded headers are:
After
api-cli run module/traefik1/set-trusted-proxies --data '{"proxies":["185.96.xx.yy"], "depth": 1}'Current configuration, along with depth field, is correctly returned by the get-trusted-proxies API.
Verified
DavidePrincipi commentedon Mar 14, 2025
Released