The company does not have fixed IP, need to test the third party asynchronous callback interface (third party server How to find the company intranet machine); Baidu Search for "intranet penetration" results are mostly peanut shells, but this article is sharing the free intranet penetration, the use of FRP tools. The text is CentOS7.4 as the FRP server end, Win7 as the FRP client.
the function of FRP utilizes the machine behind the intranet or the firewall to provide HTTP or HTTPS service to the external network environment. For HTTP, the HTTPS service supports domain-based virtual hosts, supports custom domain bindings, and enables multiple domain names to share a 80 port.
Using machines located behind the intranet or firewall, the extranet environment provides TCP and UDP services, such as accessing hosts in the corporate intranet environment via SSH at home.
Architecture
preparatory work
A set of external network fixed IP server
Download the FRP tool and provide multiple OS versions
using the sample Server-side Frps.ini file configuration want to know more configuration see Frps_full.ini file
[Common]
# FRP Listener address
bind_addr = 0.0.0.0
bind_port = 7000 #frp server listening Port
# if the Proxy web (HTTP) service is required, open this port
vhost_h Ttp_port = 8090
g_file =/var/frp/frps.log # output Log client-side Frpc.ini file configuration want to know more configuration see Frpc_full.ini file
Client-side Frpc.ini file configuration want to know more configuration see Frpc_full.ini file
[Common]
SERVER_ADDR = Extranet server IP address
server_port = 7000 # TCP is connected to the port specified on the FRP server side
[web]
Type = http
local_port = 8080 #本地web服务端口
custom_domains = wwww.youdomain.com # domain name
CentOS the Server service:./frps-c Frps.ini
Win7 Run the Client service under the command: Frpc-c Frpc.ini
Test address: http://www.youdomain.com:8090 can open your local Web service and you're done.