@vultr, SSH tunneling & jump host

I’ve got a few @vultr instances that have Squid listening for connections that I also use to tunnel through my local machine’s HTTP/HTTPS traffic.

In the example config below, Piscataway is the “jump host” to Frankfurt & Tokyo

Remember to modify the “username”, “ip address” & “port” values accordingly. Also, I’m assuming you already have an IdentityFile setup.

edit ~/.ssh/config and add the lines below:

Host piscataway
        User username
        Hostname piscataway_sshd_ip_address
        Port 22
        IdentityFile /path/to/file
        LocalForward 1234 piscataway_squid_ip_address:3128

Host tokyo
        User username
        Hostname tokyo_sshd_ip_address
        Port 22
        IdentityFile /path/to/file
        ProxyCommand ssh -q -W %h:%p piscataway
        LocalForward 5678 tokyo_squid_ip_address:3128

Host frankfurt
        User username
        Hostname frankfurt_sshd_ip_address
        Port 22
        IdentityFile /path/to/file
        ProxyCommand ssh -q -W %h:%p piscataway
        LocalForward 6969 frankfurt_squid_ip_address:3128

To connect to “Frankfurt” & tunnel through, simply type: ssh frankfurt then configure your local machine Proxy settings to point to port 6969

To verify your IP address, you can use https://danskoya.com/ipmoose.php