FKM-PROXY
Simple yet powerful proxy for http(s) traffic (can also handle websockets).
Features
- 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
How to setup E2E encryption:
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
CNAMErecord to your domain pointing tovps.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-addrargument 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
--addrargument (you can set anything, it won't be used)
Dev
Server
To run dev server use this command (with local ssl cert generation):
BIND_NONSSL=0.0.0.0:8080 BIND_SSL=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:
[!IMPORTANT] Panel domain can be specified using --panel-domain argument, by default its using --domain argument value.
It will return something like this:
Client
To run client (using custom proxy server) use this command:
[!NOTE]
Change yourTOKENto values previously generated on server.
[!IMPORTANT] You can specify Proxy ip using
-pargument (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