wrong ip when using WSL2 #2195
Unanswered
MarcPlanux
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
i followed this guideline here #1724 without success.
This is my current compose file:
version: "3" services: app: image: '181802255479.dkr.ecr.eu-central-1.amazonaws.com/proxy:latest' restart: 'always' privileged: 'true' container_name: ceetrox-proxy ports: - target: 443 published: 443 # Outside port mode: host protocol: tcp - target: 80 published: 80 # Outside port mode: host protocol: tcp - target: 81 published: 81 # Outside port mode: host protocol: tcp volumes: - /docker/proxy/data:/data - /docker/proxy/letsencrypt:/etc/letsencrypt
I am running the proxy on Windows with WSL2... Everything is working fine so far except getting the IP of the client. So in my case the Access List is useless... Maybe somebody can help me on that...
This is what i get from my echo-server:
{"host":{"hostname":"debug.ceetrox.de","ip":"::ffff:172.17.0.1","ips":[]},"http":{"method":"GET","baseUrl":"","originalUrl":"/","protocol":"http"},"request":{"params":{"0":"/"},"query":{},"cookies":{},"body":{},"headers":{"host":"debug.ceetrox.de","x-forwarded-scheme":"https","x-forwarded-proto":"https","x-forwarded-for":"172.18.0.1","x-real-ip":"172.18.0.1","connection":"close","sec-ch-ua":"\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"102\", \"Google Chrome\";v=\"102\"","sec-ch-ua-mobile":"?0","sec-ch-ua-platform":"\"macOS\"","upgrade-insecure-requests":"1","dnt":"1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9","sec-fetch-site":"same-site","sec-fetch-mode":"navigate","sec-fetch-user":"?1","sec-fetch-dest":"document","referer":"https://proxy.ceetrox.de/","accept-encoding":"gzip, deflate, br","accept-language":"de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7"}},"environment":{"PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","HOSTNAME":"3e100e3666bb","NODE_VERSION":"16.16.0","YARN_VERSION":"1.22.19","HOME":"/root"}}
Beta Was this translation helpful? Give feedback.
All reactions