GNU+Linux command memo

Proxy Firefox via SSH not to expose HTTP traffic

Rediriger les requêtes de Firefox vers une machine distante via SSH pour ne pas exposer son trafic HTTP sur un WiFi local par exemple

$ autossh -2NfCT -D 8080 distant-machine.tld (1)
1 autossh command maintains SSH connections open, but a simple ssh also work

Then, in Firefox:

  1. open about:preferences URL in a new tab

  2. search socks

  3. set socks v5 proxy line to host: localhost ; port: 8080

If it works you expose distant-machine.tld IP address to the internet and a lot of websites can help you to check it.

Using TorBrowser is also an excellent choice.