# [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 = 0.0.0.0
server_port = # 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:pwd@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 = # for authentication
privilege_token = # set admin address for control frpc's action by http api such as reload
admin_addr = 127.0.0.1
admin_port =
admin_user = admin
admin_pwd = admin # connections will be established in advance, default value is zero
pool_count = # 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 = your_name # 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 # 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 and heartbeat_timeout is
# heartbeat_interval =
# heartbeat_timeout = # 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
[ssh]
# tcp | udp | http | https, default is tcp
type = tcp
local_ip = 127.0.0.1
local_port =
# 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 = [ssh_random]
type = tcp
local_ip = 127.0.0.1
local_port =
# if remote_port is , frps will assgin a random port for you
remote_port = # if you want tp expose multiple ports, add 'range:' prefix to the section name
# frpc will generate multiple proxies such as 'tcp_port_6010', 'tcp_port_6011' and so on.
[range:tcp_port]
type = tcp
local_ip = 127.0.0.1
local_port = -,,-
remote_port = -,,-
use_encryption = false
use_compression = false [dns]
type = udp
local_ip = 114.114.114.114
local_port =
remote_port =
use_encryption = false
use_compression = false [range:udp_port]
type = udp
local_ip = 127.0.0.1
local_port = -
remote_port = -
use_encryption = false
use_compression = false # Resolve your domain names to [server_addr] so you can use http://web01.yourdomain.com to browse web01 and http://web02.yourdomain.com to browse web02
[web01]
type = http
local_ip = 127.0.0.1
local_port =
use_encryption = false
use_compression = true
# http username and password are safety certification for http protocol
# if not set, you can access this custom_domains without certification
http_user = admin
http_pwd = admin
# if domain for frps is frps.com, then you can access [web01] proxy by URL http://test.frps.com
subdomain = web01
custom_domains = web02.yourdomain.com
# locations is only available for http type
locations = /,/pic
host_header_rewrite = example.com [web02]
type = https
local_ip = 127.0.0.1
local_port =
use_encryption = false
use_compression = false
subdomain = web01
custom_domains = web02.yourdomain.com [plugin_unix_domain_socket]
type = tcp
remote_port =
# if plugin is defined, local_ip and local_port is useless
# plugin will handle connections got from frps
plugin = unix_domain_socket
# params set with prefix "plugin_" that plugin needed
plugin_unix_path = /var/run/docker.sock [plugin_http_proxy]
type = tcp
remote_port =
plugin = http_proxy
plugin_http_user = abc
plugin_http_passwd = abc [plugin_socks5]
type = tcp
remote_port =
plugin = socks5
plugin_user = abc
plugin_passwd = abc [plugin_static_file]
type = tcp
remote_port =
plugin = static_file
plugin_local_path = /var/www/blog
plugin_strip_prefix = static
plugin_http_user = abc
plugin_http_passwd = abc [secret_tcp]
# If the type is secret tcp, remote_port is useless
# Who want to connect local port should deploy another frpc with stcp proxy and role is visitor
type = stcp
# sk used for authentication for visitors
sk = abcdefg
local_ip = 127.0.0.1
local_port =
use_encryption = false
use_compression = false # user of frpc should be same in both stcp server and stcp visitor
[secret_tcp_visitor]
# frpc role visitor -> frps -> frpc role server
role = visitor
type = stcp
# the server name you want to visitor
server_name = secret_tcp
sk = abcdefg
# connect this address to visitor stcp server
bind_addr = 127.0.0.1
bind_port =
use_encryption = false
use_compression = false [p2p_tcp]
type = xtcp
sk = abcdefg
local_ip = 127.0.0.1
local_port =
use_encryption = false
use_compression = false [p2p_tcp_visitor]
role = visitor
type = xtcp
server_name = p2p_tcp
sk = abcdefg
bind_addr = 127.0.0.1
bind_port =
use_encryption = false
use_compression = false

最新文章

  1. html+jquery翻页相册(原创)
  2. directive中的参数详解
  3. Verilog之电平检测
  4. Android--Content Provider
  5. GlusterFS创建volume失败的解决方法(* or a prefix of it is already part of a volume)
  6. PHP代码为什么不能直接保存HTML文件——>PHP生成静态页面教程
  7. JVM中可生成的最大Thread数量
  8. JVM学习之常见溢出类型
  9. MySQL存储过程--带参数报错1064
  10. tornado+WSGI+Apache
  11. ECMAScript 6 之 let 和 const 命令
  12. mac搭配Nginx服务器常见问题
  13. 项目Alpha冲刺 3
  14. 如何快速切换Python运行版本,如何选择Python版本
  15. Node.js使用rabbitMQ(一)
  16. bzoj2438
  17. JPEG Camer 图片上传
  18. vue-学习笔记(更新中...)
  19. windows到ubuntu
  20. MongoDB系列[2]:MongoDB导入导出以及数据库备份

热门文章

  1. 转[总结]FFMPEG视音频编解码零基础学习方法 .
  2. Google Spanner (中文版)
  3. C#中的IEnumerable<T>知识点
  4. 洛谷—— P3353 在你窗外闪耀的星星
  5. [Beginning SharePoint Designer 2010]Chapter2 编辑页面
  6. 【MySQL】MySQL删除匿名用户,保证登录安全
  7. 2015.04.27,外语,读书笔记-《Word Power Made Easy》 12 “如何奉承朋友” SESSION 35
  8. JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal start byte 0xfe
  9. 循环神经网络(RNN, Recurrent Neural Networks)介绍
  10. 【POJ 1741】 Tree