OpenWrt、Padavan 下 frp 服务和客户端的配置

Published on: December 15, 2022 | Reading Time: 1 min

openwrt
padavan
frp
配置

OpenWrt

frps 配置文件位置:

/etc/config/frps

config init
        option stdout 1
        option stderr 1
        option user frps
        option group frps
        option respawn 1

config conf 'common'
        option bind_port 7000
        option dashboard_addr 0.0.0.0
        option dashboard_port 7500
        option dashboard_user ***
        option dashboard_pwd ******
        option token ******

frpc 配置文件位置:

/etc/config/frpc

config init
        option stdout 1
        option stderr 1
        option user frpc
        option group frpc
        option respawn 1

config conf 'common'
        option server_addr ***.sixdian.com
        option server_port 7000
        option token ******

config conf '***'
        option type http
        option local_ip 127.0.0.1
        option local_port 80
        option subdomain ***

查看生效配置:

cat /var/etc/frps.ini
cat /var/etc/frpc.ini

Padavan

frp、frps 配置文件位置:

/etc/storage/frp_script.sh

[common]
server_addr = ***.sixdian.com
server_port = 7000
token = ******
tls_enable = true
pool_count = 1

[***]
type = http
local_ip = 127.0.0.1
local_port = 80
subdomain = ***
use_compression = true

[*** ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = ****
use_compression = true