forked from fatedier/frp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fatedier:dev' into dev
- Loading branch information
Showing
98 changed files
with
916 additions
and
735 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
|
||
[![Build Status](https://circleci.com/gh/fatedier/frp.svg?style=shield)](https://circleci.com/gh/fatedier/frp) | ||
[![GitHub release](https://img.shields.io/github/tag/fatedier/frp.svg?label=release)](https://github.com/fatedier/frp/releases) | ||
[![Go Report Card](https://goreportcard.com/badge/github.com/fatedier/frp)](https://goreportcard.com/report/github.com/fatedier/frp) | ||
[![GitHub Releases Stats](https://img.shields.io/github/downloads/fatedier/frp/total.svg?logo=github)](https://somsubhra.github.io/github-release-stats/?username=fatedier&repository=frp) | ||
|
||
[README](README.md) | [中文文档](README_zh.md) | ||
|
||
|
@@ -11,6 +13,10 @@ | |
<a href="https://workos.com/?utm_campaign=github_repo&utm_medium=referral&utm_content=frp&utm_source=github" target="_blank"> | ||
<img width="350px" src="https://raw.githubusercontent.com/fatedier/frp/dev/doc/pic/sponsor_workos.png"> | ||
</a> | ||
<a> </a> | ||
<a href="https://github.com/daytonaio/daytona" target="_blank"> | ||
<img width="360px" src="https://raw.githubusercontent.com/fatedier/frp/dev/doc/pic/sponsor_daytona.png"> | ||
</a> | ||
</p> | ||
<!--gold sponsors end--> | ||
|
||
|
@@ -72,6 +78,7 @@ frp also offers a P2P connect mode. | |
* [URL Routing](#url-routing) | ||
* [TCP Port Multiplexing](#tcp-port-multiplexing) | ||
* [Connecting to frps via PROXY](#connecting-to-frps-via-proxy) | ||
* [Port range mapping](#port-range-mapping) | ||
* [Client Plugins](#client-plugins) | ||
* [Server Manage Plugins](#server-manage-plugins) | ||
* [SSH Tunnel Gateway](#ssh-tunnel-gateway) | ||
|
@@ -1152,6 +1159,24 @@ serverPort = 7000 | |
transport.proxyURL = "http://user:[email protected]:8080" | ||
``` | ||
|
||
### Port range mapping | ||
|
||
*Added in v0.56.0* | ||
|
||
We can use the range syntax of Go template combined with the built-in `parseNumberRangePair` function to achieve port range mapping. | ||
|
||
The following example, when run, will create 8 proxies named `test-6000, test-6001 ... test-6007`, each mapping the remote port to the local port. | ||
|
||
``` | ||
{{- range $_, $v := parseNumberRangePair "6000-6006,6007" "6000-6006,6007" }} | ||
[[proxies]] | ||
name = "tcp-{{ $v.First }}" | ||
type = "tcp" | ||
localPort = {{ $v.First }} | ||
remotePort = {{ $v.Second }} | ||
{{- end }} | ||
``` | ||
|
||
### Client Plugins | ||
|
||
frpc only forwards requests to local TCP or UDP ports by default. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
### Features | ||
|
||
* Proxy supports configuring annotations, which will be displayed in the frps dashboard. | ||
* `https2http` and `https2https` plugin now supports `X-Forwared-For` header. | ||
|
||
### Fixes | ||
|
||
* `X-Forwared-For` header is now correctly set in the request to the backend server for proxy type http. |
Oops, something went wrong.