Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use Frp to achieve Intranet Penetration

Shulou Source: shulou.com Published: 2022-06-02 10:33:14 11月13日 Update

This article shows you how to use Frp to achieve intranet penetration, the content is concise and easy to understand, it can definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

I. preparation

Public network server (public network IP is required) Centos 7.0

Private network server (the server that needs to do private network penetration) Centos 7.0,

Second, install Frp

Download address of installation package: https://github.com/fatedier/frp/releases

There are two installation methods:

Method 1: directly open the download address and select the installation package to download.

Method 2:

Wget https://github.com/fatedier/frp/releases/download/v0.29.0/frp_0.29.0_linux_amd64.tar.gz

After the download is complete, follow these steps:

Public network server steps

Cd / homemkdir frptar zxvf frp_0.29.0_linux_amd64.tar.gzcd frp_0.29.0_linux_amd64cp. / frps / home/frp/cp. / frps.ini / home/frp/cd.. vi frps.ini

Edit the frps.ini as follows:

[common] bind_port = 7000 # default, specify at will, client note to be consistent with this vhost_http_port = 80 # use # vhost_https_port = 443 when accessing

Save frps.ini and execute the following command:

. / frps-c. / frps.ini

Note: the ports of bind_port and vhost_http_port parameters must be able to communicate with telnet.

Private network server steps

Cd / homemkdir frptar zxvf frp_0.29.0_linux_amd64.tar.gzcd frp_0.29.0_linux_amd64cp. / frpc / home/frp/cp. / frpc.ini / home/frp/cd.. vi frpc.ini

Edit the frpc.ini as follows:

[common] bind_port = 7000 # default, specify at will, client pay attention to keep consistent with this vhost_http_port = 80 # use # vhost_https_port = 443 [common] server_addr = 39.108.209.220 # IPserver_port of public network server = 7000 # default, specify at will Note that this parameter is consistent with that of the public network server [ssh] type = tcplocal_ip = 192.168.10.81local_port = 22remote_port = 6000 [web] type = httplocal_ip = 192.168.10.81 # IPlocal_port = 80 # Port # IP parsing of the private network application # custom_domains = 39.108.209.220 # if you want to use IP access Then set this parameter # domain name resolution custom_domains = immunity.byph-china.com # if you want to use domain name access, set this parameter

Save frpc.ini and execute the following command:

. / frpc-c. / frpc.ini the above content is how to use Frp to achieve intranet penetration. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Tags: Servers services parameters public networks content penetration consistency methods steps commands addresses domain names clients clients skills knowledge ports applications concise concise Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Huawei Shulou Information Apple macOS