location: Diff for "ProxyBySsh"

Institute of Mathematics - PublicMathWiki:

Differences between revisions 1 and 9 (spanning 8 versions)
Revision 1 as of 2020-04-10 09:02:10
Size: 1226
Editor: crose
Comment:
Revision 9 as of 2020-04-11 06:42:03
Size: 1715
Editor: crose
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
To get Web access to I-MATH intranet webserver it's possible to setup a SOCKS SSH proxy channel: To get Web access to I-MATH intranet webserver it's possible to setup a SOCKS SSH proxy channel. This makes

== Start SSH Proxy ==
Line 10: Line 12:
 * Open SSH Socks connection:

{{{
# On the local computer
$ ssh -C -D <I-MATH account>@ssh.math.uzh.ch

# Type in your I-MATH password and leave the connection open all time!
 * On your '''local computer''' open a terminal and start the SSH Socks connection (provide your I-MATH password and leave the connection open all time): {{{
ssh -C -D 1080 <I-MATH account>@ssh.math.uzh.ch
Line 19: Line 16:
 * Tell the browser to use the new proxy connection.  * This terminal won't be used anymore, but it has to be open as long as the proxy is in use!
Line 21: Line 18:
   * To use the I-MATH intenal DNS Server (necessary get access to hostnames that are only known inside of I-MATH), use the SOCKS5 protocol, incl. DNS forward. == Start the Browser ==

The proxy configuration can be done:

* on the OS - not described here.
 * via commandline - described here for Google Chrome and Opera.
 * inside the browser via GUI - described here for firefox.

To use the I-MATH intenal DNS Server (necessary get access to hostnames that are only known inside of I-MATH), use the SOCKS5 protocol, '''incl. DNS forward'''.
Line 23: Line 28:
 * Google Chrome For Google Chrome or Opera, open a second terminal and type the following command
Line 25: Line 30:
   * `google-chrome --proxy-server="socks5://localhost:1080"` || Browser || Command ||
|| Google Chrome || Linux: `google-chrome --proxy-server="socks5://localhost:1080"`<<BR>>Mac OS X: `/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --proxy-server="socks5://localhost:1080"`||
|| Opera || Linux: `opera --proxy-server="socks5://localhost:1080"`<<BR>>Mac OS X: `/Applications/Opera.app/Contents/MacOS/Opera --proxy-server="socks5://localhost:1080"`||
|| Firefox || * There is no officially option '-proxy-server' for the commandline<<BR>>* Start firefox, open 'settings', navigate to 'network' > screenshot ||
Line 27: Line 35:
   * Mac OS X: `/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --proxy-server="socks5://localhost:1080"

 * Opera

   * `opera --proxy-server="socks5://localhost:1080"`

   * Mac OS X: `/Applications/Opera.app/Contents/MacOS/Opera --proxy-server="socks5://localhost:1080"

 * Firefox

   * There is no officially option '-proxy-server' for the commandline
   * Start firefox, open 'settings', navigate to 'network':
{{attachment:ff-proxy.png}}

(Web) Proxy by SSH

To get Web access to I-MATH intranet webserver it's possible to setup a SOCKS SSH proxy channel. This makes

Start SSH Proxy

Start the Browser

The proxy configuration can be done:

  • on the OS - not described here.
  • via commandline - described here for Google Chrome and Opera.
  • inside the browser via GUI - described here for firefox.

To use the I-MATH intenal DNS Server (necessary get access to hostnames that are only known inside of I-MATH), use the SOCKS5 protocol, incl. DNS forward.

For Google Chrome or Opera, open a second terminal and type the following command

Browser

Command

Google Chrome

Linux: google-chrome --proxy-server="socks5://localhost:1080"
Mac OS X: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --proxy-server="socks5://localhost:1080"

Opera

Linux: opera --proxy-server="socks5://localhost:1080"
Mac OS X: /Applications/Opera.app/Contents/MacOS/Opera --proxy-server="socks5://localhost:1080"

Firefox

* There is no officially option '-proxy-server' for the commandline
* Start firefox, open 'settings', navigate to 'network' > screenshot

ff-proxy.png

PublicMathWiki: ProxyBySsh (last edited 2021-02-04 16:23:12 by eseide)