frp 工具使用

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

#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

Frpc.ini

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

方案二

#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

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

方案一与方案二的区别

image-20210817184013064

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

Tips

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