Chisel – The TCP/UDP Secure Tunnel via HTTP and SSH

If you want to bypass firewalls like a ‘magic banana’ passing through walls, or if you wish to expose one of your web services or development projects outside your network, you need the same thing as El Chapo, namely, a reliable tunnel!

And not just any tunnel: an HTTP/Socks tunnel!

For this purpose, I’m introducing you to Chisel today: a TCP/UDP tunneling tool written in Go, which is fast, secure, and runs through HTTP via SSH. You can use it to circumvent firewalls, access your own services not available via the web, or employ it in your penetration testing missions

To perform a quick test, you can deploy Chisel on a server using Docker as follows:

docker run --name chisel -p 9312:9312 -d --restart always jpillora/chisel server -p 9312 --socks5

The Socks5 protocol allows access via websockets when HTTP proxies are unsupported by your tools. You also need to install Chisel on the client side. You can do this using the following command (or by downloading the binary from here):

curl https://i.jpillora.com/chisel! | bash

Once installed, initiate Chisel in client mode by replacing IP_SERVER with the IP address of your machine hosting Chisel in server mode:

chisel client -v IP_SERVER:9312 socks

After establishing the secure tunnel, all you need to do is configure your tools, such as your browser, to route through your server. This setup allows access to all your services on your remote local network.

Set 127.0.0.1 and port 1080 as the Socks server, and you’re all set!

Find out more here.

"Because of the Google update, I, like many other blogs, lost a lot of traffic."

Join the Newsletter

Please, subscribe to get our latest content by email.

Mohamed SAKHRI
Mohamed SAKHRI

I'm the creator and editor-in-chief of Tech To Geek. Through this little blog, I share with you my passion for technology. I specialize in various operating systems such as Windows, Linux, macOS, and Android, focusing on providing practical and valuable guides.

Articles: 1643

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Leave a Reply

Your email address will not be published. Required fields are marked *