CentOS 7 deploys another powerful tool for intranet penetration, Frp

Keywords: Big Data CentOS github Ubuntu shell

Before I introduced the way to compile the intranet penetration software ngrok server and client under CentOS, today I introduce a better intranet penetration software than ngrok, Frp.


 

frp (fast reverse proxy) is a high performance reverse daili application that can be used for intranet penetration. It supports tcp, udp, http, https protocols, and also supports peer-to-peer intranet penetration without server relay. However, at the initial stage of development, NAT facilities can not penetrate all the examples, so the penetration success rate is low. We can try stcp when we break through the failure.


 

Project address: https://github.com/fatedier/frp


 

English: https://github.com/fatedier/frp/blob/master/README_zh.md


 

Such a good thing, of course, there is a key to deploy script server, here is to share from the koolshare forum clang brother's script, can be very convenient to re-install frp on the server


 

Currently tested platforms


 

CentOS 6 32/64bit
CentOS 7 32/64bit
Debian 6 32/64bit
Debian 7 32/64bit
Debian 8 32/64bit
Ubuntu 14 32/64bit


 

Start deployment

wget --no-check-certificate https://raw.githubusercontent.com/clangcn/onekey-install-shell/master/frps/install-frps.sh -O ./install-frps.sh

chmod 700 ./install-frps.sh

./install-frps.sh install

 

Deployment steps

Loading network version for frps, please wait…
frps Latest release file frp_0.8.1_linux_amd64.tar.gz
#This step will actively get the latest version of frp, actively operate without paying attention to it.
Loading You Server IP, please wait…
You Server IP:12.12.12.12
#Actively get the IP address of your server
Please input your server setting:

 

Please input frps bind_port [1-65535](Default Server Port: 5443): #Input the port of frp to provide service for communication between server and client
Please input frps dashboard_port [1-65535](Default dashboard_port: 6443): #Enter the console service port of frp for viewing frp task status
Please input frps vhost_http_port [1-65535](Default vhost_http_port: 80): #http service port for http penetration by inputting frp
Please input frps vhost_https_port [1-65535](Default vhost_https_port: 443): #https service port for https penetration by inputting frp
Please input privilege_token (Default: WEWLRgwRjIJVPx2kuqzkGnvuftPLQniq): #Input the key of communication between frp server and client, originally generated randomly
Please input frps max_pool_count [1-200](Default max_pool_count: 50): #Set the upper limit of connection pool that each daili can establish, original 50

 

##### Please select log_level #####
1: info
2: warn
3: error
4: debug
#####################################################
Enter your choice (1, 2, 3, 4 or exit. default [1]):
#Set the diary level, four options, originally info

 

Please input frps log_max_days [1-30]
(Default log_max_days: 3 day):
#Set the number of days to keep a diary, ranging from 1 to 30 days, and 3 days to keep the original diary.

 

##### Please select log_file #####
1: enable
2: disable
#####################################################
Enter your choice (1, 2 or exit. default [1]):
#Set whether the diary record can be opened, the original opening, the level of the diary and the number of days saved after opening will take effect, otherwise the level and the number of days saved will be invalid.


 

The following are demonstrations under CentOS 7


 

#To update

./install-frps.sh update

#uninstall

./install-frps.sh uninstall

#start-up

/etc/init.d/frps start

#termination

/etc/init.d/frps stop

#reboot

/etc/init.d/frps restart

#View state

/etc/init.d/frps status

#configuration file

/etc/init.d/frps config

#View version

/etc/init.d/frps version


 

 

 

 

Links to the original text: https://host.fubi.hk/foreshadowinghost/zhishiku/20181025/8375.html

Posted by Zyx on Thu, 24 Jan 2019 09:42:13 -0800