From a7cb5f1c510ea055db82c33427cdbf8c02080e59 Mon Sep 17 00:00:00 2001 From: Stille Date: Tue, 19 Mar 2024 18:04:29 +0800 Subject: [PATCH] update v0.55.1 --- Dockerfile | 2 +- README.md | 1 + frpc.ini | 23 --------------------- frpc.toml | 37 +++++++++++++++++----------------- frpc_linux_install.sh | 43 +++++++++++++++++++++------------------- frpc_linux_uninstall.sh | 2 +- frpc_synology_install.sh | 43 +++++++++++++++++++++------------------- 7 files changed, 68 insertions(+), 83 deletions(-) delete mode 100644 frpc.ini diff --git a/Dockerfile b/Dockerfile index c63b3ba..e6efee1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:3.8 LABEL maintainer="Stille " -ENV VERSION 0.54.0 +ENV VERSION 0.55.1 ENV TZ=Asia/Shanghai WORKDIR / diff --git a/README.md b/README.md index e8615b1..f96a151 100644 --- a/README.md +++ b/README.md @@ -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 版可尝试,请自行尝试. diff --git a/frpc.ini b/frpc.ini deleted file mode 100644 index fec3af4..0000000 --- a/frpc.ini +++ /dev/null @@ -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 \ No newline at end of file diff --git a/frpc.toml b/frpc.toml index e72278b..de2df32 100644 --- a/frpc.toml +++ b/frpc.toml @@ -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_xxxxx" +type = "http" +localIP = "192.168.1.2" +localPort = 5000 +customDomains = ["nas.yourdomain.com"] [[proxies]] -name = "web1_443" -type = "tcp" -localIP = "127.0.0.1" -localPort = 443 -remotePort = 14443 +name = "web2_xxxxx" +type = "https" +localIP = "192.168.1.2" +localPort = 5001 +customDomains = ["nas.yourdomain.com"] + [[proxies]] -name = "web1_443" -type = "udp" -localIP = "127.0.0.1" -localPort = 443 -remotePort = 14443 \ No newline at end of file +name = "tcp1_xxxxx" +type = "tcp" +localIP = "192.168.1.3" +localPort = 22 +remotePort = 22222 diff --git a/frpc_linux_install.sh b/frpc_linux_install.sh index deed9c7..4cf5456 100755 --- a/frpc_linux_install.sh +++ b/frpc_linux_install.sh @@ -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<${FRP_PATH}/${FRP_NAME}.toml <