-
Deploy the server somewhere with the image
registry.app.unistra.fr/bramas/docker-containers/frpc
set the Token as an environment variableFRP_AUTH_TOKEN
-
Then, on your local machine, add an alias to your
.bashrc
or.zshrc
file:alias tun='docker run -e FRP_LOCAL_PORT="$1" -e FRP_SERVER_ADDR="THE SERVER ADDR" --network host -e FRP_AUTH_TOKEN="THE TOKEN" -e FRP_SERVER_PORT="THE SERVER PORT" registry.app.unistra.fr/bramas/docker-containers/frpc'
Replace
THE SERVER ADDR
,THE SERVER PORT
andTHE TOKEN
with the correct values. -
Then, you can use the alias to expose a local port to the server:
tun 8000

Quentin Bramas
authored
Name | Last commit | Last update |
---|---|---|
Dockerfile | ||
Dockerfile-client | ||
Readme.md | ||
captain-definition | ||
frpc.toml | ||
frps.toml |