aapanel之frp内穿

frp有服务端和客户端两个配置

服务端:

bindPort = 15443
kcpBindPort = 15443
dashboardPwd = "面板密码pwd"
vhostHTTPPort = 18080
vhostHTTPSPort = 18443
maxPoolCount = 50
tcpmuxHTTPConnectPort = 16337

[webServer]
user = "面板用户"
password = "面板密码pwd"
port = 7001

[log]
file = "/var/log/frps.log"
level = "info"
maxDays = 30

[auth]
token = "连接密码pwd2"

客户端:

serverAddr = "服务器ip"
serverPort = 15443
auth.method = "token"
auth.token = "连接密码pwd2"
transport.tcpMax = true
transport.tcpMux = true
transport.tcpMuxKeepaliveInterval = 60
transport.protocol = "tcp"
transport.tls.enable = false
udpPacketSize = 1500
# transport.proxyURL = "socks5://123:123@192.168.2.1:11111"

[[proxies]]
name = "web0"
type = "tcp"
localIP = "127.0.0.1"
localPort = 80
remotePort = 80
transport.proxyProtocolVersion = "v2" # 获取真实IP

[[proxies]]
name = "web1"
type = "tcp"
localIP = "127.0.0.1"
localPort = 443
remotePort = 443
transport.proxyProtocolVersion = "v2"

[[proxies]]
name = "phpmyadmin"
type = "tcp"
localIP = "127.0.0.1"
localPort = 887
remotePort = 887

[[proxies]]
name = "aapanel"
type = "tcp"
localIP = "127.0.0.1"
localPort = 7800
remotePort = 7800

[[proxies]]
name = "xiaomirouter"
type = "tcp"
localIP = "192.168.31.1"
localPort = 22
remotePort = 3122

[[proxies]]
name = "rdp1"
type = "tcp"
localIP = "127.0.0.1"
localPort = 3389
remotePort = 3389

[[proxies]]
name = "v2raya"
type = "tcp"
localIP = "127.0.0.1"
localPort = 2017
remotePort = 2017

[[proxies]]
name = "ctrlvnc"
type = "tcp"
localIP = "127.0.0.1"
localPort = 1770
remotePort = 1770

deamon:
/usr/local/frpc/frpc -c /www/wwwroot/frpc.conf

点赞

发表回复

电子邮件地址不会被公开。必填项已用 * 标注