Last active
January 11, 2024 22:52
-
-
Save imannms000/dbe16d0b14cd2193fd77b81027b5e932 to your computer and use it in GitHub Desktop.
How To Use Proxy on WSL2 Ubuntu for APT, etc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How To Set Proxy on WSL2 Ubuntu for APT, etc.
.bashrc
:/etc/apt/apt.conf.d/proxy.conf
as well:sudo touch /etc/apt/apt.conf.d/proxy.conf
sudo nano /etc/apt/apt.conf.d/proxy.conf
Windows Defender:
Allow Port to Inbound and Outbound rules.
DONE.
Example
CURL
curl --proxy http://proxy:port --url www.google.com