I. ADDRESS related to FRP

Source address: https://github.com/fatedier/frp

The version of this installation is V0.27.0

Second, the server

CentOS7 Server IP address 100.100.100.1

1. Download

In github.com/fatedier/fr… Download the software package frp_0.27.0_linux_amd64.tar.gz

2. Configure and start the configuration

  • Unpack the
The tar - ZXF frp_0. 27.0 _linux_amd64. Tar. GzCopy the code
  • Modifying a Configuration File

Modify the server configuration file frps.ini with the following content

[common]
bind_port = 5000
token = 987654321
allow_ports = 5000-5100
Copy the code

Listen on port 5000 and add ports 5000 to 5100 so that clients can use these ports to open corresponding services. The token is the connection key

  • Start the

Run the command in the decompressed directory

$ nohup ./frps -c frps.ini&
Copy the code

Open ports 5000-5100 on the server firewall

Third, the client

CentOS7 Server IP address 192.168.0.100

1. Download

In github.com/fatedier/fr… Download the software package frp_0.27.0_linux_amd64.tar.gz

2. Configure and start the configuration

  • Unpack the
The tar - ZXF frp_0. 27.0 _linux_amd64. Tar. GzCopy the code
  • Modifying a Configuration File

  • 192.168.0.100 FRP client configuration

Modify the client configuration. For details, see frpc.ini

[common]
server_addr = 100.100.100.1
server_port = 5000
token = 987654321
admin_addr = 127.0.0.1
admin_port = 7400

[plugin_http_proxy]
type = tcp
remote_port = 5001
plugin = http_proxy
plugin_http_user = zqyu
plugin_http_passwd = zqyu123456

[ssh100]
type = tcp
local_ip = 192.168.0.100
local_port = 22
remote_port = 5002
Copy the code

Port 5000 connects to the server and has the same key token as the server. Enable plugin_HTTP_proxy and set account zqyu and password zqYU123456 using port 5001 allowed on the server. It also tested adding an SSH service that uses SSH to connect to the client machine. The admin port is enabled on the client to facilitate hot loading of client configurations.

  • Start the

Run the command in the decompressed directory

$ nohup ./frpc -c frpc.ini&
Copy the code
  • reload

After modifying the configuration, you can run commands to load the configuration again without restarting the client.

$ ./frpc reload -c frpc.ini 
Copy the code

`