Search Docs by Keyword
FASSE Proxy Settings
Using a proxy to reach the internet from FASSE cluster
If you are on FASSE or a VPN realm or server that is behind a firewall, there are times when you still need to reach the outside Internet. For example, you may need to install a conda, Stata, or R package. In that case, you will need to add a proxy setting to your environment.
Please note: Don’t set proxy on Cannon as it will back the internet. Our proxy does not allow all traffic, but should allow access to things necessary for your work.
Setting the proxy from the terminal
You can issue the following commands either manually each time you need access, or you can add them to your .bashrc so that the proxy is always configured when you log in or launch a new shell.
export http_proxy=http://rcproxy.rc.fas.harvard.edu:3128 export https_proxy=http://rcproxy.rc.fas.harvard.edu:3128
Setting the proxy for web browsing
For web browsing, your browser may work if set to ‘Use system proxy settings’ (Auto-detect proxy’ may also work). If this does not work automatically, you will need to manually add the proxies to your browser. You will need to disable this when not on the VPN. Settings are as follows:
HTTP Proxy: http://rcproxy.rc.fas.harvard.edu
HTTPS Proxy: http://rcproxy.rc.fas.harvard.edu
http:// is intentional for https_proxy. Your data are still encrypted between your web browser and the web server.
Also note that some applications only work if you give it the proxy address without the
http://. If your application is not working using the above definitions try:
Setting the proxy for Stata
Stata sometimes loads libraries via http. For security reasons, http access on FASSE must happen via a proxy. Proxy access can be configured in Stata with the following commands:
set httpproxy on set httpproxyhost rcproxy.rc.fas.harvard.edu set httpproxyport 3128
Proxy settings appear to persist after Stata is closed, so it is recommended to issue the following command when exiting stata:
set httpproxy off
Setting the proxy for RStudio
Occasionally, Installing a package on RStudio may require HTTP. You can set http_proxy to allow this from FASSE.
You can run these to check that the proxies are set:
To unset these variables run:
Setting the proxy for Jupyter Notebook
You can run these commands to set the proxies on FASSE:
import os os.environ['http_proxy'] = "http://rcproxy.rc.fas.harvard.edu:3128" os.environ['https_proxy'] = "https://rcproxy.rc.fas.harvard.edu:3128"
If you get the output
<Response >, proxies are appropriately set:
import requests requests.get("https://google.com") <Response >
The steps above can be seen in the screen shot:
Setting the proxy for the Virtual Remote Desktop’s Firefox
When working from the virtual remote desktop in FASSE you will have to configure Firefox manually. To configure a proxy in Firefox go to Preferences>General>Connection Settings and configure as follows:
Bookmarkable Section Links