https://github.com/alash3al/tlx
a dummy tls reverse proxy written in go
https://github.com/alash3al/tlx
go golang reverse-proxy tls tls-proxy tls-tunnel
Last synced: about 1 year ago
JSON representation
a dummy tls reverse proxy written in go
- Host: GitHub
- URL: https://github.com/alash3al/tlx
- Owner: alash3al
- Created: 2018-04-16T07:57:29.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-16T08:15:58.000Z (about 8 years ago)
- Last Synced: 2025-03-30T10:33:39.159Z (about 1 year ago)
- Topics: go, golang, reverse-proxy, tls, tls-proxy, tls-tunnel
- Language: Go
- Size: 1.95 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
TLX
==========
A simple TLS proxy terminator written in Go. It uses the power of concurrency of the Go language to speed up the request itself, It creates an isloated light thread for reading and another of writing.
How it works
============
- listens on a custom port
- offloads the incoming tls connections
- forwards the offloaded tls connections to the backend server
How to install
===============
- Download a release file from [here](https://github.com/alash3al/tlx/releases)
- Extract the file from the archive
- open your Command Line Interface in the working directory of the extraction process
- run `./tlx --help` to test it
Usage
=========
#### Creating Cert & Key
```bash
# the key
openssl ecparam -genkey -name secp384r1 -out server.key
# the cert
openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650
```
#### Run
```bash
# listen on ":9000" and forward the requests to "localhost:8000"
# then set the tls cert and key
./tlx -backend "localhost:8000" -listen ":9000" -cert "./server.crt" -key "./server.key"
```