frp Home:https://gofrp.org/docs/
Frp GitHub:https://gofrp.org/docs/

网卡名称子网IP
Web192.168.158.0/24
Nat0172.16.115.0/24
Nat1192.168.104.0/24
Nat2172.16.186.0/24

方案1

Frpc.ini

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#frpc
[common]
server_addr = 192.168.158.3
server_port = 7000
[socks_proxy]
type = tcp
local_port = 9999
remote_port = 9999
use_encryption = true
use_compression = true

# frpc1
[common]
server_addr = 172.16.115.6
server_port = 7000
token = uknowsec
[socks_proxy]
type = tcp
local_port = 9999
remote_port = 9999
use_encryption = true
use_compression = true

# frpc2
[common]
server_addr = 192.168.104.4
server_port = 7000
token = uknowsec
[socks_proxy]
type = tcp
local_port = 9999
remote_port = 9999
use_encryption = true
use_compression = true
plugin = socks5

```ini

### Frpc.ini

```ini
# frps.ini
[common]
bind_port = 7000
use_encryption = true
use_compression = true

方案二

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#frpc
[common]
server_addr = 192.168.158.3
server_port = 7000
[socks_proxy]
type = tcp
local_port = 9999
remote_port = 9999
use_encryption = true
use_compression = true
plugin = socks5

# frpc1
[common]
server_addr = 172.16.115.6
server_port = 7000
token = uknowsec
[socks_proxy]
type = tcp
local_port = 9999
remote_port = 9999
use_encryption = true
use_compression = true
plugin = socks5

# frpc2
[common]
server_addr = 192.168.104.4
server_port = 7000
token = uknowsec
[socks_proxy]
type = tcp
local_port = 9999
remote_port = 9999
use_encryption = true
use_compression = true
plugin = socks5

Frpc.ini

1
2
3
4
5
# frps.ini
[common]
bind_port = 7000
use_encryption = true
use_compression = true

方案一与方案二的区别

image-20210817184013064

红圈 圈选的是最后到不了的代理,很奇怪

Tips

  • 端口可以保持一致复用
  • 可以使用自定义证书进行单向加密,双向加密

XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way