image-station/frpc/Readme.md

36 lines
788 B
Markdown
Raw Normal View History

2021-02-20 06:34:46 +08:00
# frpc
2021-02-03 16:48:21 +08:00
2021-02-20 06:34:46 +08:00
[frp](https://github.com/fatedier/frp) is a fast reverse proxy written in Go.
Use with Podman Pods.
2021-03-01 18:57:34 +08:00
Example: The following command expose port 8080 inside pod to frp server 192.168.0.1:28080, which listens on port 7000.
2021-02-03 16:48:21 +08:00
```shell
2021-03-01 18:57:34 +08:00
podman run --pod=... -d frpc 192.168.0.1 7000 test-service tcp 8080 28080
2021-02-03 16:48:21 +08:00
```
2021-03-01 18:57:34 +08:00
With token:
```bash
podman run --pod=... -d -v tokenFile:/tmp/token frpc -f /tmp/token 192.168.0.1 7000 test-service tcp 8080 28080
```
## Usage
**launcher** [-ezkn] [-p _PoolSize_] [-f _TokenFile_] _ServerIP_ _ServerPort_ _ProxyName_ _ProxyType_ _LocalPort_ _RemotePort_
`-e` Use encryption
`-z` Use compression
`-k` Use KCP protocol
`-n` Don't start frpc. (dry-run)
`-p PoolSize` Frp worker pool size
`-f TokenFile` Use Token
2021-07-03 17:35:44 +08:00
`-m Key=Value` Define metadata