123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391 |
- user = "your_name"
- serverAddr = "0.0.0.0"
- serverPort = 7000
- loginFailExit = true
- log.to = "./frpc.log"
- log.level = "info"
- log.maxDays = 3
- log.disablePrintColor = false
- auth.method = "token"
- auth.token = "12345678"
- webServer.addr = "127.0.0.1"
- webServer.port = 7400
- webServer.user = "admin"
- webServer.password = "admin"
- webServer.pprofEnable = false
- transport.poolCount = 5
- transport.protocol = "tcp"
- transport.connectServerLocalIP = "0.0.0.0"
- transport.tls.enable = true
- udpPacketSize = 1500
- metadatas.var1 = "abc"
- metadatas.var2 = "123"
- [[proxies]]
- name = "ssh"
- type = "tcp"
- localIP = "127.0.0.1"
- localPort = 22
- transport.bandwidthLimit = "1MB"
- transport.bandwidthLimitMode = "client"
- transport.useEncryption = false
- transport.useCompression = false
- remotePort = 6001
- loadBalancer.group = "test_group"
- loadBalancer.groupKey = "123456"
- healthCheck.type = "tcp"
- healthCheck.timeoutSeconds = 3
- healthCheck.maxFailed = 3
- healthCheck.intervalSeconds = 10
- metadatas.var1 = "abc"
- metadatas.var2 = "123"
- [proxies.annotations]
- key1 = "value1"
- "prefix/key2" = "value2"
- [[proxies]]
- name = "ssh_random"
- type = "tcp"
- localIP = "192.168.31.100"
- localPort = 22
- remotePort = 0
- [[proxies]]
- name = "dns"
- type = "udp"
- localIP = "114.114.114.114"
- localPort = 53
- remotePort = 6002
- [[proxies]]
- name = "web01"
- type = "http"
- localIP = "127.0.0.1"
- localPort = 80
- httpUser = "admin"
- httpPassword = "admin"
- subdomain = "web01"
- customDomains = ["web01.yourdomain.com"]
- locations = ["/", "/pic"]
- hostHeaderRewrite = "example.com"
- requestHeaders.set.x-from-where = "frp"
- responseHeaders.set.foo = "bar"
- healthCheck.type = "http"
- healthCheck.path = "/status"
- healthCheck.intervalSeconds = 10
- healthCheck.maxFailed = 3
- healthCheck.timeoutSeconds = 3
- healthCheck.httpHeaders=[
- { name = "x-from-where", value = "frp" }
- ]
- [[proxies]]
- name = "web02"
- type = "https"
- localIP = "127.0.0.1"
- localPort = 8000
- subdomain = "web02"
- customDomains = ["web02.yourdomain.com"]
- transport.proxyProtocolVersion = "v2"
- [[proxies]]
- name = "tcpmuxhttpconnect"
- type = "tcpmux"
- multiplexer = "httpconnect"
- localIP = "127.0.0.1"
- localPort = 10701
- customDomains = ["tunnel1"]
- [[proxies]]
- name = "plugin_unix_domain_socket"
- type = "tcp"
- remotePort = 6003
- [proxies.plugin]
- type = "unix_domain_socket"
- unixPath = "/var/run/docker.sock"
- [[proxies]]
- name = "plugin_http_proxy"
- type = "tcp"
- remotePort = 6004
- [proxies.plugin]
- type = "http_proxy"
- httpUser = "abc"
- httpPassword = "abc"
- [[proxies]]
- name = "plugin_socks5"
- type = "tcp"
- remotePort = 6005
- [proxies.plugin]
- type = "socks5"
- username = "abc"
- password = "abc"
- [[proxies]]
- name = "plugin_static_file"
- type = "tcp"
- remotePort = 6006
- [proxies.plugin]
- type = "static_file"
- localPath = "/var/www/blog"
- stripPrefix = "static"
- httpUser = "abc"
- httpPassword = "abc"
- [[proxies]]
- name = "plugin_https2http"
- type = "https"
- customDomains = ["test.yourdomain.com"]
- [proxies.plugin]
- type = "https2http"
- localAddr = "127.0.0.1:80"
- crtPath = "./server.crt"
- keyPath = "./server.key"
- hostHeaderRewrite = "127.0.0.1"
- requestHeaders.set.x-from-where = "frp"
- [[proxies]]
- name = "plugin_https2https"
- type = "https"
- customDomains = ["test.yourdomain.com"]
- [proxies.plugin]
- type = "https2https"
- localAddr = "127.0.0.1:443"
- crtPath = "./server.crt"
- keyPath = "./server.key"
- hostHeaderRewrite = "127.0.0.1"
- requestHeaders.set.x-from-where = "frp"
- [[proxies]]
- name = "plugin_http2https"
- type = "http"
- customDomains = ["test.yourdomain.com"]
- [proxies.plugin]
- type = "http2https"
- localAddr = "127.0.0.1:443"
- hostHeaderRewrite = "127.0.0.1"
- requestHeaders.set.x-from-where = "frp"
- [[proxies]]
- name = "plugin_http2http"
- type = "tcp"
- remotePort = 6007
- [proxies.plugin]
- type = "http2http"
- localAddr = "127.0.0.1:80"
- hostHeaderRewrite = "127.0.0.1"
- requestHeaders.set.x-from-where = "frp"
- [[proxies]]
- name = "plugin_tls2raw"
- type = "tcp"
- remotePort = 6008
- [proxies.plugin]
- type = "tls2raw"
- localAddr = "127.0.0.1:80"
- crtPath = "./server.crt"
- keyPath = "./server.key"
- [[proxies]]
- name = "secret_tcp"
- type = "stcp"
- secretKey = "abcdefg"
- localIP = "127.0.0.1"
- localPort = 22
- allowUsers = ["*"]
- [[proxies]]
- name = "p2p_tcp"
- type = "xtcp"
- secretKey = "abcdefg"
- localIP = "127.0.0.1"
- localPort = 22
- allowUsers = ["user1", "user2"]
- [[visitors]]
- name = "secret_tcp_visitor"
- type = "stcp"
- serverName = "secret_tcp"
- secretKey = "abcdefg"
- bindAddr = "127.0.0.1"
- bindPort = 9000
- [[visitors]]
- name = "p2p_tcp_visitor"
- type = "xtcp"
- serverUser = "user1"
- serverName = "p2p_tcp"
- secretKey = "abcdefg"
- bindAddr = "127.0.0.1"
- bindPort = 9001
- keepTunnelOpen = false
- maxRetriesAnHour = 8
- minRetryInterval = 90
|