Hprc banner tamu.png

SW:WebProxy

From TAMU HPRC
Revision as of 10:01, 20 January 2021 by Tmarkhuang (talk | contribs)
Jump to: navigation, search

Web Proxy

Ada and Terra compute nodes do not have access to internet. You can enable web proxy when you run interactive jobs on the compute nodes, by configuration environment variables, http_proxy and https_proxy.


Set up environment variables

To enable web proxy, run these two lines before starting your interactive programs on Terra.

export http_proxy=10.76.5.24:8080
export https_proxy=10.76.5.24:8080

On Ada, run these two lines before starting interactive programs.

export http_proxy=10.72.2.7:18080
export https_proxy=10.72.2.7:18080

On Grace, run these two lines before starting interactive programs.

export http_proxy=10.73.132.63:8080
export https_proxy=10.73.132.63:8080


Set up proxy in the browser

You can enable web proxy for Firefox by following instruction and provide the IP/port for both HTTP and HTTPS proxies. For Terra, use 10.76.5.24 and port 8080. For Ada, use IP 10.72.2.7 and port 18080. For Grace, use IP 10.73.132.63 and port 8080.


Set up proxy in Jupyter Notebook Portal app

Run the following lines in your notebook on Terra:

import os
os.environ['http_proxy'] = '10.76.5.24:8080'
os.environ['https_proxy'] = '10.76.5.24:8080'

On Ada:

import os
os.environ['http_proxy'] = '10.72.2.7:18080'
os.environ['https_proxy'] = '10.72.2.7:18080'

On Grace:

import os
os.environ['http_proxy'] = '10.73.132.63:8080'
os.environ['https_proxy'] = '10.73.132.63:8080'