Hprc banner tamu.png

Difference between revisions of "SW:WebProxy"

From TAMU HPRC
Jump to: navigation, search
(Web Proxy)
(added http portal to proxy env variables and sections for FASTER)
 
Line 18: Line 18:
 
==== Terra ====
 
==== Terra ====
 
<pre>
 
<pre>
export http_proxy=10.76.5.24:8080
+
export http_proxy=http://10.76.5.24:8080
export https_proxy=10.76.5.24:8080
+
export https_proxy=http://10.76.5.24:8080
 
</pre>
 
</pre>
  
 
==== Grace ====
 
==== Grace ====
 
<pre>
 
<pre>
export http_proxy=10.73.132.63:8080
+
export http_proxy=http://10.73.132.63:8080
export https_proxy=10.73.132.63:8080
+
export https_proxy=http://10.73.132.63:8080
 
</pre>
 
</pre>
 +
 +
==== FASTER ====
 +
<pre>
 +
export http_proxy=http://10.72.8.25:8080
 +
export https_proxy=http://10.72.8.25:8080
 +
</pre>
 +
 +
  
 
=== Set up proxy in the browser ===
 
=== Set up proxy in the browser ===
Line 39: Line 47:
 
<pre>
 
<pre>
 
import os
 
import os
os.environ['http_proxy'] = '10.76.5.24:8080'
+
os.environ['http_proxy'] = 'http://10.76.5.24:8080'
os.environ['https_proxy'] = '10.76.5.24:8080'
+
os.environ['https_proxy'] = 'http://10.76.5.24:8080'
 
</pre>
 
</pre>
  
Line 46: Line 54:
 
<pre>
 
<pre>
 
import os
 
import os
os.environ['http_proxy'] = '10.73.132.63:8080'
+
os.environ['http_proxy'] = 'http://10.73.132.63:8080'
os.environ['https_proxy'] = '10.73.132.63:8080'
+
os.environ['https_proxy'] = 'http://10.73.132.63:8080'
 +
</pre>
 +
 
 +
==== FASTER ====
 +
<pre>
 +
import os
 +
os.environ['http_proxy'] = 'http://10.72.8.25:8080'
 +
os.environ['https_proxy'] = 'http://10.72.8.25:8080'
 
</pre>
 
</pre>
  
  
 
[[Category:Software]]
 
[[Category:Software]]

Latest revision as of 15:49, 6 September 2022

Web Proxy

The compute nodes for the HPRC clusters do not have access to the internet. In order to allow internet access for compute nodes, you can enable web proxy when you run interactive or batch jobs on the compute nodes, by configuration environment variables, http_proxy and https_proxy or by loading the WebProxy module.

WebProxy module

For your convenience, a module has been provided to set the appropriate environment variables automatically.

module load WebProxy

This is the preferred method whenever it's applicable. Otherwise, proceed with the manual options below.

Set up environment variables

To enable web proxy, run these two lines before starting your interactive programs or add to your job script.

Terra

export http_proxy=http://10.76.5.24:8080
export https_proxy=http://10.76.5.24:8080

Grace

export http_proxy=http://10.73.132.63:8080
export https_proxy=http://10.73.132.63:8080

FASTER

export http_proxy=http://10.72.8.25:8080
export https_proxy=http://10.72.8.25: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:

Terra

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

Grace

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

FASTER

import os
os.environ['http_proxy'] = 'http://10.72.8.25:8080'
os.environ['https_proxy'] = 'http://10.72.8.25:8080'