Do not use peanut shell free to achieve intranet penetration

Source: Internet
Author: User
Tags frps

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.