# [common] is integral section [common] # A literal address or host name for IPv6 must be enclosed # in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80" server_addr = frp 服务器的IP地址 server_port = frp 服务器的端口
# if you want to connect frps by http proxy, you can set http_proxy here or in global environment variables # it only works when protocol is tcp # http_proxy = http://user:passwd@192.168.1.128:8080
# console or real logFile path like ./frpc.log log_file = ./frpc.log
# trace, debug, info, warn, error log_level = info
log_max_days = 3
# for authentication token = frp服务器授权码,要与服务器的一致
# set admin address for control frpc's action by http api such as reload,这个的作用时可以让frpc使用reload热重启 admin_addr = 192.168.0.104 admin_port = 端口 admin_user = xxxx admin_passwd = xxxx # connections will be established in advance, default value is zero pool_count = 20
# if tcp stream multiplexing is used, default is true, it must be same with frps tcp_mux = true
# your proxy name will be changed to {user}.{proxy} user = 用户名
# decide if exit program when first login failed, otherwise continuous relogin to frps # default is true login_fail_exit = true
# communication protocol used to connect to server # now it supports tcp and kcp, default is tcp protocol = tcp
# specify a dns server, so frpc will use this instead of default one dns_server = 8.8.8.8
# proxy names you want to start divided by ',' # default is empty, means all proxies # start = ssh,dns
# heartbeat configure, it's not recommended to modify the default value # the default value of heartbeat_interval is 10 and heartbeat_timeout is 90 # heartbeat_interval = 30 # heartbeat_timeout = 90
# ssh is the proxy name same as server's configuration # if user in [common] section is not empty, it will be changed to {user}.{proxy} such as your_name.ssh
[phone_ssh] # tcp | udp | http | https, default is tcp type = tcp local_ip = 127.0.0.1 local_port = ssh的本地端口 # true or false, if true, messages between frps and frpc will be encrypted, default is false use_encryption = false # if true, message will be compressed use_compression = false # remote port listen by frps remote_port = 映射到frp服务器的端口,这个端口需要frp服务器开放才行
[phone_adb] # tcp | udp | http | https, default is tcp type = tcp local_ip = 127.0.0.1 local_port = adb的本地端口,前文章是5555 # true or false, if true, messages between frps and frpc will be encrypted, default is false use_encryption = false # if true, message will be compressed use_compression = false # remote port listen by frps remote_port = 映射到frp服务器的端口,这个端口需要frp服务器开放才行