- https://stackoverflow.com/questions/78354196/how-to-use-v2rayn-in-windows-wsl2-ubuntu
- https://stackoverflow.com/questions/35557489/how-to-set-a-system-wide-proxy-on-ubuntu
- Allow external services to access the v2rayN through firewall confirmation.
- https://unix.stackexchange.com/questions/438206/etc-profile-not-sourced-for-users
- https://superuser.com/questions/1679757/accessing-windows-localhost-from-wsl2
- Remove WSL IP from windows proxy exclude list:
- localhost;127.;10.;172.16.;172.17.;172.18.;172.19.;172.20.;172.21.;172.22.;172.23.;172.24.;172.25.;172.27.;172.28.;172.29.;172.30.;172.31.;192.168.
- For example, I removed 172.26.208.
- put in
~/.bashrc
for both root and non root user. Make sure to keep sync.- export http_proxy="http://$(hostname).local:10809"
- export https_proxy="https://$(hostname).local:10809"
nslookup $(hostname).local
- export http_proxy="http://172.26.208.1:10809"
- export https_proxy="https://172.26.208.1:10809" or export https_proxy="http://172.26.208.1:10809"
- (TODO) use $(hostname).local
- (TODO) Does https proxy actually work?
Last active
July 7, 2024 13:37
-
-
Save amirphl/2075c1fff7485b82f6fa5184fe3aecd6 to your computer and use it in GitHub Desktop.
Putting WSL2 behind proxy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment