fatedier / frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
Apache License 2.0
86.64k stars 13.39k forks source link

服务端限速 #4532

Open pilgrimage233 opened 1 week ago

pilgrimage233 commented 1 week ago

Describe the feature request

请问服务端可以直接对客户端建立的通道端口进行限速吗,我不想要客户端限速,我想直接在服务端就能控制各个端口之间的速率

Describe alternatives you've considered

No response

Affected area

anhao commented 6 days ago

通过服务端插件就可以实现, https://gofrp.org/zh-cn/docs/features/common/server-plugin/

NewProxy 时修改响应参数

pilgrimage233 commented 6 days ago

抱歉,我实在没怎么看懂,我是运行在openwrt的FRPS插件,这个配置和官方还不太一样 config frps 'main' option server 'frps' option client_file '/usr/bin/frps' option bind_port '7000' option tcp_mux 'true' 是以这种形式的,如果要配置限速可以直接在上面加 option bandwidth_limit 吗?