Skip to content

Commit

Permalink
update v0.55.1
Browse files Browse the repository at this point in the history
  • Loading branch information
stilleshan committed Mar 19, 2024
1 parent b69995f commit a7cb5f1
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 83 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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 /

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 版可尝试,请自行尝试.
Expand Down
23 changes: 0 additions & 23 deletions frpc.ini

This file was deleted.

37 changes: 19 additions & 18 deletions frpc.toml
Original file line number Diff line number Diff line change
@@ -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
name = "tcp1_xxxxx"
type = "tcp"
localIP = "192.168.1.3"
localPort = 22
remotePort = 22222
43 changes: 23 additions & 20 deletions frpc_linux_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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_${RADOM_NAME}"
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_${RADOM_NAME}"
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
name = "tcp1_${RADOM_NAME}"
type = "tcp"
localIP = "192.168.1.3"
localPort = 22
remotePort = 22222
EOF

# configure systemd
Expand Down
2 changes: 1 addition & 1 deletion frpc_linux_uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
43 changes: 23 additions & 20 deletions frpc_synology_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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_${RADOM_NAME}"
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_${RADOM_NAME}"
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
name = "tcp1_${RADOM_NAME}"
type = "tcp"
localIP = "192.168.1.3"
localPort = 22
remotePort = 22222
EOF

# clean
Expand Down

0 comments on commit a7cb5f1

Please sign in to comment.