]> WSL: opensuse proxy settings 🌐:aligrant.com

WSL: opensuse proxy settings

Alastair Grant | Fri 20 Sep 2019

I'm using openSUSE Leap on Windows 10 with WSL (Windows Subsystem for Linux), it provides a great way of accessing useful command line tools without having to install Linux - helpful where the client operating system has to be Windows.

I found one hitch and that's a proxy server being in my way when using the WSL shell.  Fortunately configuring a proxy in openSUSE is very easy, you just need to create a file /etc/sysconfig/proxy with contents similar to:

NO_PROXY="localhost,, *.local, *.mydomain"

I though encountered a strange issue when implementing this.  Every time I logged in with a Bash shell, my console would be spammed with the letter "y" for a long time before I'd get in.  And when I did get in, the bash shell didn't have any of the configuration you'd normally expect.

Turns out I made the mistake of including spaces between the key and values in the proxy configuration file, e.g. HTTP_PROXY = "...".  When I went back through and collapsed all the whitespace the issue went away.

Breaking from the voyeuristic norms of the Internet, any comments can be made in private by contacting me.