frp 伺服端設定檔翻譯(中英對照)

July 9, 2019 · 軟體 · 17次訪問

frp是一個用於穿透的好工具,我用了也有一段時間,現將伺服端的設定檔記錄下來方便日後查看。

# [common] is integral section
# [common] 是基礎設定
[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"
# IPv6的位址必須按照格式隔開,按照"[::1]:80", "[ipv6-host]:http" 或 "[ipv6-host%zone]:80" 這樣設定
bind_addr = 0.0.0.0
bind_port = 7000

# udp port to help make udp hole to penetrate nat
# 開放UDP埠來滲透nat

bind_udp_port = 7001

# udp port used for kcp protocol, it can be same with 'bind_port'
# if not set, kcp is disabled in frps
# 下面這個UDP埠將用作KCP協定傳輸,可以和'bind_port'相同,如果不設定,KCP會在frps中被停用
kcp_bind_port = 7000

# specify which address proxy will listen for, default value is same with bind_addr
#指明哪一個代理位址將會被偵聽,預設值同bind_addr
# proxy_bind_addr = 127.0.0.1

# if you want to support virtual host, you must set the http port for listening (optional)
# Note: http port and https port can be same with bind_port
# 如果你需要讓frps支援虛擬主機,你可能需要設定用於偵聽的埠,http和https的偵聽埠可以共用
vhost_http_port = 80
vhost_https_port = 443

# response header timeout(seconds) for vhost http server, default is 60s
# 回應網頁伺服器header的延遲,預設是一分鐘
# vhost_http_timeout = 60

# set dashboard_addr and dashboard_port to view dashboard of frps
# dashboard_addr's default value is same with bind_addr
# dashboard is available only if dashboard_port is set
# 設定 dashboard_addr 和 dashboard_port 以瀏覽狀態版
# dashboard_addr 的預設值同 bind_addr
# 僅當 dashboard_port 被設定時,狀態版才可用
dashboard_addr = 0.0.0.0
dashboard_port = 7500

# dashboard user and passwd for basic auth protect, if not set, both default value is admin
# 設定狀態版的登入用戶名和密碼,預設值均為admin(烏克蘭軍方警告)
dashboard_user = admin
dashboard_pwd = admin

# dashboard assets directory(only for debug mode)
# 狀態版資料庫路徑(僅偵錯模式)
# assets_dir = ./static
# console or real logFile path like ./frps.log
# 日誌檔位址
log_file = ./frps.log

# trace, debug, info, warn, error
# 日誌檔記錄訊息的等級,trace什麼都記,error只有當出現錯誤時才記錄
log_level = info

log_max_days = 3

# auth token
# 驗證用 token
token = 12345678

# heartbeat configure, it's not recommended to modify the default value
# the default value of heartbeat_timeout is 90
# heartbeat_timeout = 90

# only allow frpc to bind ports you list, if you set nothing, there won't be any limit
# 可用的埠列表,如果該項不設定,就不會有任何限制
allow_ports = 2000-3000,3001,3003,4000-50000

# pool_count in each proxy will change to max_pool_count if they exceed the maximum value
# 每一個伺服器中的 pool_count 若超過最大限額,會被強制設定為 max_pool_count 。
max_pool_count = 5

# max ports can be used for each client, default value is 0 means no limit
# 每一個用戶端允許同時使用的埠數量,設定為0表示沒有限制
max_ports_per_client = 0

# if subdomain_host is not empty, you can set subdomain when type is http or https in frpc's configure file
# 當服務類型是 http 或 https 時,如果 subdomain_host 沒有設定,你可以自行設定子網域
# when subdomain is test, the host used by routing is test.frps.com
# 舉個梨子,當子網域是 test 時,用於轉發的網域名稱是 test.frps.com
subdomain_host = frps.com

# if tcp stream multiplexing is used, default is true
# TCP多路並行
tcp_mux = true

# custom 404 page for HTTP requests
# 自訂的 HTTP 請求 404 頁面
# custom_404_page = /path/to/404.html

標籤:frp

最後編輯於:2019/07/09 12:34

添加新評論