Skip to content

Instantly share code, notes, and snippets.

@fartbagxp
Last active October 27, 2019 20:47
Show Gist options
  • Save fartbagxp/df7cb2a2fd5f0df5de5c3f761d17c3a0 to your computer and use it in GitHub Desktop.
Save fartbagxp/df7cb2a2fd5f0df5de5c3f761d17c3a0 to your computer and use it in GitHub Desktop.
Sock5 tunneling
#!/usr/bin/env bash
port=$1
ipv4=$2
if [ $# -eq 2 ]
then
echo "sh tunneling.sh <port> <ipv4 address>"
fi
# read https://www.digitalocean.com/community/tutorials/how-to-route-web-traffic-securely-without-a-vpn-using-a-socks-tunnel for proper setup
ssh -D $port -f -C -q -N $ipv4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment