<-OpenSUSE-small-server

On this page... (hide)

  1.   1.  ssh Tunnel
    1.   1.1  Tunnelling Firefox
    2.   1.2  Proxying Firefox
  2.   2.  Port scanners

1.  ssh Tunnel

You often need to use a graphical application directly from the server. The main example is a browser.

1.1  Tunnelling Firefox

You can install Firefox on the server with minimal dependencies, but - who knows why - having connected your home computer to the server with ssh -X... is not enough. You have also to launch firefox with firefox -no-remote. And beware where are the files dowloaded stored (on my install it's on the server, as it should).

1.2  Proxying Firefox

You can as well use Firefox on your desktop but make is go through your server. Using your server as proxy allows you to make the Web site opened by Firefox think FF is run on your server. To do so, launch ssh proxy (ssh -D) then go on the proxy page of Firefox (on your desktop), gives localhost (better give the IP: 127.0.0.1) to have it run using your server as a proxy.

Localhost may be 127.0.0.1 (or you can make sure 127.0.0.1 is given the localhost name in /etc/hosts), and port can be nearly anything between 10000 and 20000.

The exact ssh syntax may be:

ssh -fND localhost:port login@serverIP

Exemple: ,

ssh -fND 127.0.0.1:10000 jdd@dodin.org

then, in Firefox, change the proxy settings and use *only* the "socks" parameter in "manual config", for example "127.0.0.1 10000".

2.  Port scanners

The french CNIL (in charge of the internet policy) have a page where it gives you your IP:

http://www.cnil.fr/vos-libertes/vos-traces/le-fichier-daudit/

It's easy to see is you have your local (hompe) IP or the server one.

With this setup, Firefox still works from your home, and the files are saved on this home, not on the server. This setup is only usefull to make your true location unknown or to use internet services that scans ports to find vulnerabilities, but are accorded to the IP and gives graphical results (so using w3m is not convenient). Like this one:

http://www.inoculer.com/scannerdeports.php