Using proxies

Using proxies

Unknown macro: {scrollbar}

Using proxies with Pax Runner

There are times when you have to use proxies to access outside resources accessible via http/https/ftp or socks. If you are in such situation you have 2 options, both based on setting the proxy system properties. You can read more about on SUN documentation related to this subject.

Use System properties

This option has nothing to do with Pax Runner and is archived by setting the system properties via system properties directly. You can do that by using the JAVA_OPTS environment variable prior starting Pax Runner.
Here is an example of setting and http proxy

  • on *nix
    export JAVA_OPTS="-http.proxyHost=myHost --http.proxyPort=8080"
    pax-run.sh
    
  • on Windows
    set JAVA_OPTS="-http.proxyHost=myHost --http.proxyPort=8080"
    pax-run.bat
    

Use command line options

This feature is only available starting with release 1.2.0 of Pax Runner.
You can also use the command line options of Pax Runner, method which is actually just a convenience way of setting the system properties. So, if command lines are present, Pax Runner will set teh corresponding system properties.

The same effect as in the above example could be archived by:

pax-run --http.proxyHost=myHost --http.proxyPort=8080

The following options are supported:

  • http proxy: http.proxyHost, http.proxyPort, http.proxyNonProxyHosts
  • https proxy: https.proxyHost, https.proxyPort
  • ftp proxy: ftp.proxyHost, ftp.proxyPort, ftp.proxyNonProxyHosts
  • socks proxy: sockProxyHost, socksProxyPort