frp
БесплатноБез исполняемых скриптовНе проверенfrp is a reverse proxy that lets you publish services running behind NAT or a firewall through a server that has a public IP. A server (frps) and a client…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
frp — self-hosted reverse proxy for services behind NAT
Overview
frp has two programs. frps runs on a machine with a public address and listens for clients. frpc runs next to the service you want to publish, connects out to frps, and registers one or more proxies. Traffic that reaches frps is carried back through that connection to the local service, so the private machine needs no inbound firewall rule or port forwarding.
Proxy types: tcp, udp, http, https, tcpmux, plus private ones (stcp, sudp, xtcp) that require a matching visitor on the other side. Configuration is TOML (YAML and JSON also work since v0.52); the old INI format is deprecated and receives no new features, so always write TOML.
Use it only to publish services you own or are authorised to expose. For a hosted tunnel with no server of your own, see the ngrok skill.
Instructions
Installation
Download the release archive for your OS from the project's GitHub releases and check it against the checksum file in the same release.
VERSION=0.71.1 # current tag: https://github.com/fatedier/frp/releases
curl -fLO https://github.com/fatedier/frp/releases/download/v${VERSION}/frp_${VERSION}_linux_amd64.tar.gz
curl -fLO https://github.com/fatedier/frp/releases/download/v${VERSION}/frp_sha256_checksums.txt
sha256sum --ignore-missing -c frp_sha256_checksums.txt
tar xzf frp_${VERSION}_linux_amd64.tar.gz
cd frp_${VERSION}_linux_amd64
ls # frpc frpc.toml frps frps.toml LICENSE
Put frps on the public server and frpc on the private machine. Both accept -c <file>, and both have a verify subcommand that checks a config without starting anything:
./frps verify -c frps.toml
./frpc verify -c frpc.toml
Server configuration (frps.toml)
Secrets can come from environment variables inside the file with {{ .Envs.NAME }}, so no token has to be written to disk or committed.
bindAddr = "0.0.0.0" # where frpc clients connect
bindPort = 7000
vhostHTTPPort = 8080 # shared port for all `http` proxies (matched by Host header)
auth.method = "token"
auth.token = "{{ .Envs.FRP_TOKEN }}"
# clients may only claim these remote ports
allowPorts = [{ start = 6000, end = 6010 }]
# dashboard: keep it on loopback and reach it through an SSH tunnel
webServer.addr = "127.0.0.1"
webServer.port = 7500
webServer.user = "admin"
webServer.password = "{{ .Envs.FRP_DASH_PASSWORD }}"
export FRP_TOKEN="$(openssl rand -hex 24)" # share this value with each frpc
export FRP_DASH_PASSWORD="$(openssl rand -hex 16)"
./frps -c frps.toml
Token auth is the default method. allowPorts stops a client from grabbing arbitrary ports on the server. Open only bindPort and the proxy ports you really publish in the firewall.
Client configuration (frpc.toml)
serverAddr = "203.0.113.20" # the public IP or name of frps
serverPort = 7000
auth.method = "token"
auth.token = "{{ .Envs.FRP_TOKEN }}"
# local admin API used by `frpc status` and `frpc reload`
webServer.addr = "127.0.0.1"
webServer.port = 7400
proxies
name = "staging-web"
type = "http"
localIP = "127.0.0.1"
localPort = 3000
customDomains = ["staging.devteam.example"] # DNS must point at the frps host
proxies
name = "home-ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000 # must be inside allowPorts
./frpc -c frpc.toml
./frpc status -c frpc.toml # lists each proxy as running, with its remote address
./frpc reload -c frpc.toml # apply proxy changes without restarting
Each proxies block is one proxy with a unique name. A http proxy is reached at http://<domain>:<vhostHTTPPort>; subdomain can be used instead of customDomains when the server sets subdomainHost. Quick one-off tunnels are possible without a file, for example frpc tcp --help shows the flags for a single TCP proxy.
Encrypt and verify the control connection
Since v0.50 frpc uses TLS to frps by default. Two things are not automatic: frpc does not verify the server certificate unless it has a trust source, and frps still accepts non-TLS clients unless forced.
# frps.toml
transport.tls.force = true
transport.tls.certFile = "/etc/frp/server.crt"
transport.tls.keyFile = "/etc/frp/server.key"
# frpc.toml
transport.tls.useSystemCa = true # certificate issued by a public CA
# or: transport.tls.trustedCaFile = "/etc/frp/ca.crt" # your private CA
TLS on the control connection does not encrypt the end-to-end payload of an http proxy; terminate HTTPS on the local service or use an https proxy for that.
Private access with stcp
Instead of opening a public port for SSH, publish it with type = "stcp" and a shared secretKey, and connect from another machine through a visitor.
# frpc.toml on the machine that hosts the service
proxies
name = "office-ssh"
type = "stcp"
secret
Установить frp в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл frp?
frp is a reverse proxy that lets you publish services running behind NAT or a firewall through a server that has a public IP. A server (frps) and a client (frpc) are configured in TOML. Use this skill to expose a local web app, SSH or any TCP/UDP port from your own machines, protect the tunnel with a token and TLS, and check proxy status on the dashboard. Trigger phrases: "expose my local server", "self-hosted tunnel", "frp config", "frps frpc", "reach my home machine over SSH", "alternative to ngrok".
Как установить скилл frp?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл frp запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic