Giter Site home page Giter Site logo

stilleshan / frps Goto Github PK

View Code? Open in Web Editor NEW
493.0 4.0 232.0 34 KB

基于原版 frp 内网穿透服务端 frps 的一键安装卸载脚本和 docker 镜像.支持 Linux 服务器和 docker 等多种环境安装部署.

Home Page: https://hub.docker.com/r/stilleshan/frps

Dockerfile 15.14% Shell 84.86%
frp frps frps-docker

frps's Introduction

frps

项目简介

基于 fatedier/frp 原版 frp 内网穿透服务端 frps 的一键安装卸载脚本和 docker 镜像.支持 Linux 服务器和 docker 等多种环境安装部署.

docker image support for X86 and ARM

更新

  • 2024-02-25 更新到新版本,支持 toml 配置文件.
  • 2021-05-31 更新国内镜像方便使用
  • 2021-05-31 更新 Linux 一键安装脚本同时支持 X86 和 ARM
  • 2021-05-29 更新从0.36.2版本起 docker 镜像同时支持 X86 和 ARM

使用

由于 frps 服务端需要配置参数,本脚本为原版 frps.toml ,安装完毕后请自行编辑 frps.toml 配置端口,密码等相关参数并重启服务.同时你也可以 fork 本仓库后自行修改 frps.toml ,在进行一键安装也非常方便.后期也可自行配置 frps.toml 和调整 frps 的版本.

一键脚本(先执行脚本,在自行修改 frps.toml 文件.)

安装

wget https://raw.githubusercontent.com/stilleshan/frps/master/frps_linux_install.sh && chmod +x frps_linux_install.sh && ./frps_linux_install.sh
# 以下为国内镜像
wget https://github.ioiox.com/stilleshan/frps/raw/branch/master/frps_linux_install.sh && chmod +x frps_linux_install.sh && ./frps_linux_install.sh

使用

vi /usr/local/frp/frps.toml
# 修改 frps.toml 配置
sudo systemctl restart frps
# 重启 frps 服务即可生效

卸载

wget https://raw.githubusercontent.com/stilleshan/frps/master/frps_linux_uninstall.sh && chmod +x frps_linux_uninstall.sh && ./frps_linux_uninstall.sh
# 以下为国内镜像
wget https://github.ioiox.com/stilleshan/frps/raw/branch/master/frps_linux_uninstall.sh && chmod +x frps_linux_uninstall.sh && ./frps_linux_uninstall.sh

自定义一键脚本(先 fork 本仓库,在自行修改 frps.toml 文件后执行脚本.)

  • 首先 fork 本仓库
  • 配置 frps.toml
  • 修改 frps_linux_install.sh 脚本
  • 修改脚本链接
  • Push 仓库到 GitHub

修改 frps_linux_install.sh 脚本

FRP_VERSION=0.59.0 可根据原版项目更新自行修改为最新版本.
REPO=stilleshan/frps 由于 fork 到你自己的仓库,需修改stilleshan为你的 GitHub 账号ID.

执行一键脚本

修改以下脚本链接中的stilleshan为你的 GitHub 账号 ID 后,执行即可.

wget https://raw.githubusercontent.com/stilleshan/frps/master/frps_linux_install.sh && chmod +x frps_linux_install.sh && ./frps_linux_install.sh

卸载脚本

frps_linux_uninstall.sh 卸载脚本为通用脚本,可直接执行,也可同上方式修改链接后执行.

wget https://raw.githubusercontent.com/stilleshan/frps/master/frps_linux_uninstall.sh && chmod +x frps_linux_uninstall.sh && ./frps_linux_uninstall.sh

frps相关命令

sudo systemctl start frps
# 启动服务 
sudo systemctl enable frps
# 开机自启
sudo systemctl status frps
# 状态查询
sudo systemctl restart frps
# 重启服务
sudo systemctl stop frps
# 停止服务

docker 部署

为避免因 frps.toml 文件的挂载,格式或者配置的错误导致容器无法正常运行并循环重启.请确保先配置好 frps.toml 后在执行启动.

git clone 本仓库,并正确配置 frps.toml 文件.

git clone https://github.com/stilleshan/frps
# git clone 本仓库
git clone https://github.ioiox.com/stilleshan/frps
# 国内镜像
vi /root/frps/frps.toml
# 配置 frps.toml 文件

启动容器

docker run -d --name=frps --restart=always \
    --network host \
    -v /root/frps/frps.toml:/frp/frps.toml  \
    stilleshan/frps

以上命令 -v 挂载的目录是以 git clone 本仓库为例,也可以在任意位置手动创建 frps.toml 文件,并修改命令中的挂载路径.

服务运行中修改 frps.toml 配置后需重启 frps 服务.

vi /root/frps/frps.toml
# 修改 frps.toml 配置
docker restart frps
# 重启 frps 容器即可生效

链接

frps's People

Contributors

shenyunet avatar stilleshan avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

frps's Issues

'FREEFRP' service degradations

hi brother,
hope you are doing well
I suddenly found that the 'FREEFRP' was unavailable yesterday, it cant forward the web traffic to my internal servers, I have alreadly checked from my side and it is ok .
Could you please have a look on that to see if there are some issues on your side ?
here some information down below for you reference

[common]
server_addr = frp1.freefrp.net
server_port = 7000
token = freefrp.net

# 穿透需要 Web 访问的内网服务,例如群晖 NAS DSM 的管理界面.

[sam001.duckdns.org]
type = http
local_ip = 192.168.88.1
local_port = 80
custom_domains = sam001.duckdns.org
subdomain = sam001

# HTTPS

[sam001.duckdns.org_https]
type = https
local_ip = 192.168.88.1
local_port = 443
custom_domains = sam001.duckdns.org
subdomain = sam001

2022/05/16 07:20:22 [I] [proxy_manager.go:144] [f5d68077533d5f06] proxy added: [sam001.duckdns.org sam003.duckdns.org sam002.duckdns.org_https sam003.duckdns.org_https sam005.duckdns.org_https sam007.duckdns.org_https sam002.duckdns.org sam004.duckdns.org sam005.duckdns.org sam007.duckdns.org sam001.duckdns.org_https sam004.duckdns.org_https]
2022/05/16 07:20:23 [I] [control.go:180] [f5d68077533d5f06] [sam001.duckdns.org] start proxy success
2022/05/16 07:20:23 [I] [control.go:180] [f5d68077533d5f06] [sam003.duckdns.org] start proxy success
2022/05/16 07:20:23 [I] [control.go:180] [f5d68077533d5f06] [sam002.duckdns.org_https] start proxy success
2022/05/16 07:20:23 [I] [control.go:180] [f5d68077533d5f06] [sam003.duckdns.org_https] start proxy success
2022/05/16 07:20:23 [I] [control.go:180] [f5d68077533d5f06] [sam005.duckdns.org_https] start proxy success
2022/05/16 07:20:23 [I] [control.go:180] [f5d68077533d5f06] [sam007.duckdns.org_https] start proxy success
2022/05/16 07:20:23 [I] [control.go:180] [f5d68077533d5f06] [sam002.duckdns.org] start proxy success
2022/05/16 07:20:23 [I] [control.go:180] [f5d68077533d5f06] [sam004.duckdns.org] start proxy success
2022/05/16 07:20:23 [I] [control.go:180] [f5d68077533d5f06] [sam005.duckdns.org] start proxy success
2022/05/16 07:20:23 [I] [control.go:180] [f5d68077533d5f06] [sam007.duckdns.org] start proxy success
2022/05/16 07:20:23 [I] [control.go:180] [f5d68077533d5f06] [sam001.duckdns.org_https] start proxy success
2022/05/16 07:20:23 [I] [control.go:180] [f5d68077533d5f06] [sam004.duckdns.org_https] start proxy success
2022/05/16 07:31:39 [I] [control.go:289] [f5d68077533d5f06] control writer is closing
2022/05/16 07:31:39 [E] [control.go:158] [f5d68077533d5f06] work connection closed before response StartWorkConn message: EOF
2022/05/16 07:31:39 [I] [service.go:174] [f5d68077533d5f06] try to reconnect to server...

\

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.