ProxyBySsh

To get Web access to the I-MATH intranet webserver it is possible to set up a SOCKS SSH proxy channel. This setting is not persistent, start it when you need it.

The proxy configuration can be done:

SSH Proxy


ssh -C -D 1080 -N -q <I-MATH account>@ssh.math.uzh.ch &

* Define an alias to use it as a onliner (kill's stale ssh proxy connections first)


alias google-chrome-math='OLD=`ps -ef  | grep  "ssh -C -D 1080 -N" | grep -v grep | awk "{ print \\$2 }"`; for II in $OLD; do kill $II; done; (ssh -C -D 1080 -N -q ssh.math.uzh.ch & ); google-chrome --proxy-server="socks5://localhost:1080"'

Browser

To use the I-MATH internal DNS Server (necessary to 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 (see also advanced) 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"

ff-proxy.png

FAQ

#!/bin/bash

nohup google-chrome --proxy-server="socks5://localhost:1080" & ssh -C -D 1080 @ssh.math.uzh.ch

Advanced Setup: Google Chrome Proxy Switch

Install and configure the Google Chrome extension SwitchyOmega to automatically switch proxy for certain URLs.

Configurations: switchyOmega_proxy.png switchyOmega_autoswitch.png


Revision #5
Created 2026-06-30 10:52:06 CEST by admino
Updated 2026-07-01 15:04:40 CEST by Jonas Valentin Rose