Pruxy
A tcp port forwarding system like ngrok.
Todo
- http request handler
- agent <-> server connection
- agent
How to use
Generate cert files
mkdir ssl_certs
cd ssl_certs
openssl req -x509 -newkey rsa:1024 -keyout server.key -out server.crt -days 365 -sha256 -nodes -subj '/CN=localhost/'
Write config
cert_file = "ssl_certs/server.crt"
key_file = "ssl_certs/server.key"
addr = "localhost"
port = "443"
grpc_addr = "127.0.0.1"
grpc_port = "50051"
Start Server
$ netswap server -c YOUR_CONFIG_FILE