Simple yet powerful proxy for http(s) traffic (can also handle websockets).
- TCP proxy (all kinds of http(s) traffic - like websockets, http/2, etc.)
- E2E encryption (while using own https certificate on own domain)
- Tunneling is done using TLS for secure connection between proxy server and client
While doing this, proxy server won't be able to see any plain-text traffic from and to your client. All traffic will be encrypted using your own ssl on your own local webserver (fkm-proxy-client isn't using your generated cert).
- Add
CNAME
record to your domain pointing tov1.filipton.space
(this is my primary proxy server) - Generate certificate for your domain (using for example lets encrypt - with DNS verification)
- Setup your webserver to use that certificate (for example nginx)
- Pass
--ssl-addr
argument with ip:port to your webserver(https) (for example localhost:443)
Important
--ssl-addr isn't overwriting --addr, so you need to pass both addresses in that case
Note
If you are using https redirection (from fkm-proxy-client binary), you also need to set --addr
argument (you can set anything, it won't be used)
To run dev server use this command (with local ssl cert generation):
cargo run --bin fkm-proxy-server -- --domain testlocal.filipton.space --generate-cert --bind-ssl 0.0.0.0:8080 --bin-nonssl 0.0.0.0:8443
Note
*.testlocal.filipton.space is pointing to 127.0.0.1. You can also just use localhost as your domain.
To create new tunnel use your browser, and type panel url, or generate it using simple CURL:
curl -X POST http://testlocal.filipton.space:8080/create?url=test
Important
Panel domain can be specified using --panel-domain argument, by default its using --domain argument value.
It will return something like this:
{"url":"test","hash":"10426308271401697964","token":"178744005062729538121086180162812072708"}
To run client (using custom proxy server) use this command:
cargo run --bin fkm-proxy-client -- --hash 10426308271401697964 --token 178744005062729538121086180162812072708 -a 127.0.0.1:5000 -p localhost:6969
Note
Change your HASH
and TOKEN
to values previously generated on server.
Important
You can specify Proxy ip using -p
argument (by default proxy server is running on port 6969)
While running your client, you can easily see your access url's:
Access through:
- http://test.testlocal.filipton.space:8080
- https://test.testlocal.filipton.space:8443