Running Julia and Juno from behind corporate firewall and proxy - A simple working setup

This has been asked a few times and I promised to post my setup. We run Julia on a daily basis from behind a corporate firewall. The proxy server setup uses an automatic configuration script. The script distributes traffic between different proxy servers, but the setup here needs a single proxy server IP address, so step one is to read the script and select one of the proxy servers’ IP address and port number.

Then add the following to your .gitconfig (using your own proxy server’s IP and port)

[http]
	proxy = http://123.123.123.123:12345
	sslVerify = false
[https]
	proxy = https://123.123.123.123:12345

This will sort out Julia’s own package manager, but Atom’s APM is still blocked. To get around that, I added the following to my .apmrc (in the user’s .atom folder):

strict-ssl=false
http_proxy = http://123.123.123.123:12345
https_proxy = https://123.123.123.123:12345
proxy = http://123.123.123.123:12345

I keep two copies of each of .gitconfig and .apmrc - one with these settings and one without. I then have two batch files. One replaces the active files with the “work config” and the other does the same with the “home config”. This makes for a quick and easy switch when I am working from home.

I hope this help someone else who is struggling with this.

8 Likes

Hi there, for me this settings did not work, the same approach for e.g. miniconda by installing scoop first and setting the gitconfig works perfectly but for julia not, do you have any other thoughts/options, would help alot,
BR and help in advance

Our own IT guys finally caught up with 21st century and don’t block Julia or VSCode anymore. Sorry to hear you are still struggling.

the funny thing is that I can install Julia (and VSCode + Julia extension) but the package manager does not work, gitconfig is set (I can install packages for miniconda - python) but cannot install Julia packages, I will have to push the IT then to give me some answers :slight_smile:
thanks for reply 'cause I just realized the post was from 2019:)

Maybe also look into pointing the package manager to Github for the registry. I had to do that at some point. It wasn’t fast, but it worked. Also not needed anymore, fortunately.

Best of luck.

Hi I have finally manage to solve the problem with entering corporate proxy (instead of default one) in the startup file for Julia and now it is working