frp

Github.com/fatedier/fr…

frp is a fast reverse proxy to help you expose a local server behind a NAT or firewall to the Internet. As of now, it supports TCP and UDP, as well as HTTP and HTTPS protocols, where requests can be forwarded to internal services by domain name.

Server installation (Ubuntu18.04)

sudo apt-get update && sudo apt-get upgrade -y

# # download FRPWget HTTP: / / https://github.com/fatedier/frp/releases/download/v0.32.0/frp_0.32.0_linux_amd64.tar.gzUnzip and delete the compressed package and rename the folderGz rm frp_0.32.0_linux_amd64.tar.gz mv frp_0.32.0_linux_amd64 FRP## Enter the FRP folder
cd frp
Copy the code

Raspbian Buster (Raspbian Buster)

sudo apt-get update && sudo apt-get upgrade -y

wget https://github.com/fatedier/frp/releases/download/v0.32.0/frp_0.32.0_linux_arm.tar.gz
# # decompressionGz rm frp_0.32.0_linux_arm.tar.gz mv frp_0.32.0_linux_arm/ FRPCopy the code

Server Configuration

frpc.ini

[common]
server_addr = XXXXX96.com      # Change to your server IP
server_port = 233

[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 222

[vnc]
type = tcp
local_ip = 127.0.0.1
local_port = 5900
remote_port = 5900
Copy the code

Client Configuration

frps.ini

[common]
bind_port = 233     
Copy the code

Start the server and client

## ubuntu
$ ./frps -c ./frps.ini

# # raspberries pie
pi@raspberrypi:~/frp $ ./frpc -c ./frpc.ini 
Copy the code

test