update v0.55.1

This commit is contained in:
Stille 2024-03-19 18:04:29 +08:00
parent b69995f880
commit a7cb5f1c51
7 changed files with 71 additions and 86 deletions

View File

@ -1,7 +1,7 @@
FROM alpine:3.8
LABEL maintainer="Stille <stille@ioiox.com>"
ENV VERSION 0.54.0
ENV VERSION 0.55.1
ENV TZ=Asia/Shanghai
WORKDIR /

View File

@ -7,6 +7,7 @@
> *docker image support for X86 and ARM*
## 更新
- **2024-03-19** 更新到最新版本`0.55.1`,全新版本配置文件已更新,请注意修改配置文件。
- **2024-03-03** 更新到toml配置文件
- **2021-05-31** 更新国内镜像方便使用
- **2021-05-31** 目前 X86 群晖 DMS 7.0 可直接使用 Linux 版本脚本,已实测.由于没有 ARM 版可尝试,请自行尝试.

View File

@ -1,23 +0,0 @@
[common]
server_addr = frp.freefrp.net
server_port = 7000
token = freefrp.net
[web1_xxxxx]
type = http
local_ip = 192.168.1.2
local_port = 5000
custom_domains = yourdomain.com
[web2_xxxxx]
type = https
local_ip = 192.168.1.2
local_port = 5001
custom_domains = yourdomain.com
[tcp1_xxxxx]
type = tcp
local_ip = 192.168.1.2
local_port = 22
remote_port = 22222
custom_domains = yourdomain.com

View File

@ -1,24 +1,25 @@
serverAddr = "1.2.3.4"
serverAddr = "frp.freefrp.net"
serverPort = 7000
auth.method = "token"
auth.token = "123456"
transport.poolCount = 200
transport.tcpMux = true
transport.tcpMuxKeepaliveInterval = 60
transport.protocol = "tcp"
transport.tls.enable = false
udpPacketSize = 1500
auth.token = "freefrp.net"
[[proxies]]
name = "web1_443"
name = "web1_xxxxx"
type = "http"
localIP = "192.168.1.2"
localPort = 5000
customDomains = ["nas.yourdomain.com"]
[[proxies]]
name = "web2_xxxxx"
type = "https"
localIP = "192.168.1.2"
localPort = 5001
customDomains = ["nas.yourdomain.com"]
[[proxies]]
name = "tcp1_xxxxx"
type = "tcp"
localIP = "127.0.0.1"
localPort = 443
remotePort = 14443
[[proxies]]
name = "web1_443"
type = "udp"
localIP = "127.0.0.1"
localPort = 443
remotePort = 14443
localIP = "192.168.1.3"
localPort = 22
remotePort = 22222

View File

@ -14,9 +14,9 @@ Font="\033[0m"
# variable
WORK_PATH=$(dirname $(readlink -f $0))
FRP_NAME=frpc
FRP_VERSION=0.54.0
FRP_VERSION=0.55.1
FRP_PATH=/usr/local/frp
PROXY_URL="https://ghproxy.com/"
PROXY_URL="https://mirror.ghproxy.com/"
# check frpc
if [ -f "/usr/local/frp/${FRP_NAME}" ] || [ -f "/usr/local/frp/${FRP_NAME}.toml" ] || [ -f "/lib/systemd/system/${FRP_NAME}.service" ];then
@ -92,31 +92,34 @@ mkdir -p ${FRP_PATH}
mv ${FILE_NAME}/${FRP_NAME} ${FRP_PATH}
# configure frpc.toml
RADOM_NAME=$(cat /dev/urandom | head -n 10 | md5sum | head -c 8)
cat >${FRP_PATH}/${FRP_NAME}.toml<<EOF
serverAddr = "1.2.3.4"
serverAddr = "frp.freefrp.net"
serverPort = 7000
auth.method = "token"
auth.token = "123456"
transport.poolCount = 200
transport.tcpMux = true
transport.tcpMuxKeepaliveInterval = 60
transport.protocol = "tcp"
transport.tls.enable = false
udpPacketSize = 1500
auth.token = "freefrp.net"
[[proxies]]
name = "web1_443"
name = "web1_${RADOM_NAME}"
type = "http"
localIP = "192.168.1.2"
localPort = 5000
customDomains = ["nas.yourdomain.com"]
[[proxies]]
name = "web2_${RADOM_NAME}"
type = "https"
localIP = "192.168.1.2"
localPort = 5001
customDomains = ["nas.yourdomain.com"]
[[proxies]]
name = "tcp1_${RADOM_NAME}"
type = "tcp"
localIP = "127.0.0.1"
localPort = 443
remotePort = 14443
[[proxies]]
name = "web1_443"
type = "udp"
localIP = "127.0.0.1"
localPort = 443
remotePort = 14443
localIP = "192.168.1.3"
localPort = 22
remotePort = 22222
EOF
# configure systemd

View File

@ -14,7 +14,7 @@ Font="\033[0m"
# variable
WORK_PATH=$(dirname $(readlink -f $0))
FRP_NAME=frpc
FRP_VERSION=0.54.0
FRP_VERSION=0.55.1
FRP_PATH=/usr/local/frp
# 停止frpc

View File

@ -12,9 +12,9 @@ Font="\033[0m"
# variable
WORK_PATH=$(dirname $(readlink -f $0))
FRP_NAME=frpc
FRP_VERSION=0.54.0
FRP_VERSION=0.55.1
FRP_PATH=/usr/local/frp
PROXY_URL="https://ghproxy.com/"
PROXY_URL="https://mirror.ghproxy.com/"
# check frpc
if [ -f "/usr/local/frp/${FRP_NAME}" ] || [ -f "/usr/local/frp/${FRP_NAME}.toml" ] || [ -f "/lib/systemd/system/${FRP_NAME}.service" ];then
@ -66,31 +66,34 @@ mkdir -p ${FRP_PATH}
mv ${FILE_NAME}/${FRP_NAME} ${FRP_PATH}
# configure frpc.toml
RADOM_NAME=$(cat /dev/urandom | head -n 10 | md5sum | head -c 8)
cat >${FRP_PATH}/${FRP_NAME}.toml <<EOF
serverAddr = "1.2.3.4"
serverAddr = "frp.freefrp.net"
serverPort = 7000
auth.method = "token"
auth.token = "123456"
transport.poolCount = 200
transport.tcpMux = true
transport.tcpMuxKeepaliveInterval = 60
transport.protocol = "tcp"
transport.tls.enable = false
udpPacketSize = 1500
auth.token = "freefrp.net"
[[proxies]]
name = "web1_443"
name = "web1_${RADOM_NAME}"
type = "http"
localIP = "192.168.1.2"
localPort = 5000
customDomains = ["nas.yourdomain.com"]
[[proxies]]
name = "web2_${RADOM_NAME}"
type = "https"
localIP = "192.168.1.2"
localPort = 5001
customDomains = ["nas.yourdomain.com"]
[[proxies]]
name = "tcp1_${RADOM_NAME}"
type = "tcp"
localIP = "127.0.0.1"
localPort = 443
remotePort = 14443
[[proxies]]
name = "web1_443"
type = "udp"
localIP = "127.0.0.1"
localPort = 443
remotePort = 14443
localIP = "192.168.1.3"
localPort = 22
remotePort = 22222
EOF
# clean