2020.4.3
Because the notebook set up a virtual machine environment, the company's computer use, but also with their own laptop, but want to connect a laptop in the home is not connected to the company network, wanted there a tool can be connected directly to the company network on my laptop server. A variety of Baidu, so the internal network through the term appears.
Search for a moment, what is more famous peanut shells, about her. . There is a network called FRP penetration of open source software, a configuration function can be achieved within the network to connect remote virtual machine, but on condition that I need to have a cloud server.
What meaning Sile?
I was at home, I used to be a springboard cloud server, install FRPS service by logging servers running the cloud, the company will be able to connect with FPRC SSH client server network, which was originally not possible. Figure ,,
But the cloud server installed on the FRP, execution FRPS service, local virtual machine installed FRP execution FRPC service, you can connect to the network you want to connect to a remote server via SSH cloud
Installation is particularly simple to deploy
================
surroundings:
1. Notebook Virtual Machine
CentOS7.6
Intranet IP: 192.168.124.26
2. Cloud Server
CentOS8.1
Public network IP: 118.89.xx
========================
FRP Description: https://github.com/fatedier/frp/blob/master/README_zh.md
FRP Downloads: https://github.com/fatedier/frp/releases
FRP support Linux, MacOS, Windows
Since my whole environment is centos, the client, the server will download the Linux version
Server cloud server operations:
[root@queen opt]# tar -xzvf frp_0.32.1_linux_amd64.tar.gz -C /usr/local/
Frp renamed renamed to the directory after extraction is completed,
Looking at this list:
Which, frps is a command file requires server-side runtime, frps.ini server configuration file, look here frps.ini:
No changes to the configuration, default ,,
Background FRPS ,
[Root @ queen frp] # nohup ./frps -c frps.ini> frps.log &
I've started a nice look at the log frps.log, show success represents a successful start
Client operations, as decompression, frpc.ini profiles in the network configuration,
[Common]
The server_addr = your IP server (public network IP)
SERVER_PORT # = 7000 corresponding to server configuration port
[SSH]
type = TCP
local_ip = 127.0.0.1
local_port = 22 is
REMOTE_PORT = 6000
[Remote]
type = TCP
local_ip = 127.0.0.1
local_port = 3389
remote_port = 6001
Background start FRPC ,
[root@localhost frp]# nohup ./frpc -c frpc.ini > frpc.log &
Look startup log: ,, have success means success
-------------------------------
Log in configured cloud server, start the virtual machine connected to the network,
carry out