Code Monkey home page Code Monkey logo

frpinstall's Introduction

frpinstall

frp install script

support installing frp service for systemd(tested) and initd(not tested)

Download script

git clone https://github.com/djangogo/frpinstall.git

Configure the script

modify the script according to your ip and port

#==========frp related configuration=====
# please refer to https://github.com/fatedier/frp
# frp server ip address(公网主机ip地址)
FRP_SERVER_IP='127.0.0.1'
# frp server port (公网主机FRP反向连接端口)
FRP_SERVER_PORT='7000'

# frp server port for ssh(公网主机外网端口号,供ssh使用)
FRP_INET_PORT='6000'

# frp token(FRP 密码,用于反向代理连接保证安全性)
FRP_TOKEN='x2dsada'


#########################################
#============frp download =============
# frp version
# please refer to https://github.com/fatedier/frp/releases
#TARFILE='frp_0.20.0_linux_386.tar.gz'
TARFILE='frp_0.20.0_linux_amd64.tar.gz'

#===========frp configuration file=======
# frp client configuration filename
FRPCCONF=frpc.ini
# frp server configuration filename
FRPSCONF=frps.ini

#=========service configuration =========
# frp service type(only support systemd or initd)
SERVICETYPE=systemd
# frp client service name
FRPC=frpc
# frp server service name
FRPS=frps

Options:

  • ins_frp : install frp binary and configuration files

  • ins_frpc_s : install frp binary and configuration files and client service

  • ins_frps_s : install frp binary and configuration files and server service

  • unins_frpc_s : delete frp binary and configuration files and client service

  • unins_frps_s : delete frp binary and configuration files and server service

Install frp

  • install frp client

./frpinstall.sh ins_frpc_s

  • install frp server

./frpinstall.sh ins_frps_s

Uninstall frp

  • uninstall frp client

./frpinstall.sh unins_frpc_s

  • uninstall frp server

./frpinstall.sh unins_frps_s

Configuration Files

  • frp client configuration file
/etc/frp/frpc.ini
  • frp server configuration file
/etc/frp/frps.ini

Manage your frp service

  • systemd system

frp client

sudo systemctl start/stop/restart/status frpc

frp server

sudo systemctl start/stop/restart/status frps

  • initd system

frp client

service frpc start/stop/restart/status

frp server

service frps start/stop/restart/status

`

frpinstall's People

Contributors

djangogo avatar xizero00 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.