User Tools

Site Tools


toolsandtechnologies:tunnel

Tunnel through a server

Colm Carew 2018/09/14 03:08

PLEASE ONLY DO THIS IF THE VPN CERT IS NOT WORKING/VPN SERVER IS DOWN

The DNS will not work in local terminals (will work for remote terminals) or in the browser!

The purpose of this is to give pseudo VPN access in Firefox so that Firefox will be able to reach internal server URLs.

There are Chrome plugins for this but they can be intermittent and often stop working with Chrome updates.

In Ireland we have Comeragh : 212.17.60.121

In the US we have Hermes : 65.74.172.42

Initial Setup with Firefox

  1. Download and install Firefox if you have not already
  2. Open Firexfox and in the URL enter `about:config`
  3. Accept any warnings if given any
  4. Look for `network.proxy.socks_version` and set this to be `4`
  5. Look for `network.proxy.socks` and set this to be `127.0.0.1`
  6. Look for `network.proxy.socks_port` and set this to be `2001`
  7. This sets up the ability to tunnel but does not enable it so once this is set up you will not have to do this setup again

Enable and Testing

  1. In a terminal ssh to one of the servers `ssh -D 2001 scotty@212.17.60.121` or `ssh -D 2001 scotty@65.74.172.42` - make sure to enter the password or have SSH key set up
  2. In Firefox google `what is my IP`
  3. Go to `about:config`
  4. Look for `network.proxy.type` and set this to `1`
  5. Search `what is my IP` again and this time it should be the public IP of the server you SSHed to
  6. Firefox will not resolve anything if there is no live ssh connection
  7. To disable this just set `network.proxy.type` to `0`

SSH to other servers

  1. In a terminal : `ssh scotty@212.17.60.121` or `ssh scotty@65.74.172.42`
  2. From this terminal you should then be able to ssh to whatever other server you need
toolsandtechnologies/tunnel.txt · Last modified: 2021/06/25 10:09 by 127.0.0.1