Skip to content

A simple and lightweight HTTP proxy written in Golang

License

Notifications You must be signed in to change notification settings

pedrobartolini/golang_tunnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fast and Lightweight HTTP-Proxy

This project utilizes Gin to tunnel connections man-in-the-middle style.

  • Every incoming request are proxied and response will return to the INITIATOR.
  • One direction only. (Direction = TUNNEL_IP).

May be useful for developing on local machine, as you can tunnel HTTPS to HTTP connections.

Environment variables:

TUNNEL_IP = Where proxy will forward requests to
PORT = Port proxy will listen to

Instructions

Build project

go build

Run build

./main

Remember to set your environment variables before running

Note for HTTPS connections

If you're using web services like GCP, AWS, Azure, Render, etc, HTTPS setup may be done automatically.

If you're not using an webserver with https redirection, you'll need to implement it manually into this project.