Skip to content

Instantly share code, notes, and snippets.

View mpdhavale's full-sized avatar

Mike Dhavale mpdhavale

View GitHub Profile
#!/bin/bash
# This script shares a local internet connection with a remote $HOST.
# The result is that that remote $HOST can use "localhost:12345" as a SOCKS5 proxy.
# NOTE: This script is only needed if the remote $HOST cannot already SSH to this (local) host
# (i.e, the host with an internet connection). If your remote $HOST *CAN* already SSH to a host
# with an internet connection, ignore this script and just run the following from the remote $HOST:
# ssh -D localhost:12345 $INTERNET_ENABLED_HOST

Keybase proof

I hereby claim:

  • I am mpdhavale on github.
  • I am mpdhavale (https://keybase.io/mpdhavale) on keybase.
  • I have a public key ASBn-gaRN1AFLpI7xxkmNd7goHdSiXUNSYe8SwdFIdcoIgo

To claim this, I am signing this object: