update v0.55.1
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
FROM alpine:3.8
|
FROM alpine:3.8
|
||||||
LABEL maintainer="Stille <stille@ioiox.com>"
|
LABEL maintainer="Stille <stille@ioiox.com>"
|
||||||
|
|
||||||
ENV VERSION 0.54.0
|
ENV VERSION 0.55.1
|
||||||
ENV TZ=Asia/Shanghai
|
ENV TZ=Asia/Shanghai
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
> *docker image support for X86 and ARM*
|
> *docker image support for X86 and ARM*
|
||||||
|
|
||||||
## 更新
|
## 更新
|
||||||
|
- **2024-03-19** 更新到最新版本`0.55.1`,全新版本配置文件已更新,请注意修改配置文件。
|
||||||
- **2024-03-03** 更新到toml配置文件
|
- **2024-03-03** 更新到toml配置文件
|
||||||
- **2021-05-31** 更新国内镜像方便使用
|
- **2021-05-31** 更新国内镜像方便使用
|
||||||
- **2021-05-31** 目前 X86 群晖 DMS 7.0 可直接使用 Linux 版本脚本,已实测.由于没有 ARM 版可尝试,请自行尝试.
|
- **2021-05-31** 目前 X86 群晖 DMS 7.0 可直接使用 Linux 版本脚本,已实测.由于没有 ARM 版可尝试,请自行尝试.
|
||||||
|
|||||||
23
frpc.ini
23
frpc.ini
@@ -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
|
|
||||||
39
frpc.toml
39
frpc.toml
@@ -1,24 +1,25 @@
|
|||||||
serverAddr = "1.2.3.4"
|
serverAddr = "frp.freefrp.net"
|
||||||
serverPort = 7000
|
serverPort = 7000
|
||||||
auth.method = "token"
|
auth.method = "token"
|
||||||
auth.token = "123456"
|
auth.token = "freefrp.net"
|
||||||
transport.poolCount = 200
|
|
||||||
transport.tcpMux = true
|
|
||||||
transport.tcpMuxKeepaliveInterval = 60
|
|
||||||
transport.protocol = "tcp"
|
|
||||||
transport.tls.enable = false
|
|
||||||
udpPacketSize = 1500
|
|
||||||
|
|
||||||
|
|
||||||
[[proxies]]
|
[[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"
|
type = "tcp"
|
||||||
localIP = "127.0.0.1"
|
localIP = "192.168.1.3"
|
||||||
localPort = 443
|
localPort = 22
|
||||||
remotePort = 14443
|
remotePort = 22222
|
||||||
[[proxies]]
|
|
||||||
name = "web1_443"
|
|
||||||
type = "udp"
|
|
||||||
localIP = "127.0.0.1"
|
|
||||||
localPort = 443
|
|
||||||
remotePort = 14443
|
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ Font="\033[0m"
|
|||||||
# variable
|
# variable
|
||||||
WORK_PATH=$(dirname $(readlink -f $0))
|
WORK_PATH=$(dirname $(readlink -f $0))
|
||||||
FRP_NAME=frpc
|
FRP_NAME=frpc
|
||||||
FRP_VERSION=0.54.0
|
FRP_VERSION=0.55.1
|
||||||
FRP_PATH=/usr/local/frp
|
FRP_PATH=/usr/local/frp
|
||||||
PROXY_URL="https://ghproxy.com/"
|
PROXY_URL="https://mirror.ghproxy.com/"
|
||||||
|
|
||||||
# check frpc
|
# check frpc
|
||||||
if [ -f "/usr/local/frp/${FRP_NAME}" ] || [ -f "/usr/local/frp/${FRP_NAME}.toml" ] || [ -f "/lib/systemd/system/${FRP_NAME}.service" ];then
|
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}
|
mv ${FILE_NAME}/${FRP_NAME} ${FRP_PATH}
|
||||||
|
|
||||||
# configure frpc.toml
|
# configure frpc.toml
|
||||||
|
RADOM_NAME=$(cat /dev/urandom | head -n 10 | md5sum | head -c 8)
|
||||||
cat >${FRP_PATH}/${FRP_NAME}.toml<<EOF
|
cat >${FRP_PATH}/${FRP_NAME}.toml<<EOF
|
||||||
serverAddr = "1.2.3.4"
|
serverAddr = "frp.freefrp.net"
|
||||||
serverPort = 7000
|
serverPort = 7000
|
||||||
auth.method = "token"
|
auth.method = "token"
|
||||||
auth.token = "123456"
|
auth.token = "freefrp.net"
|
||||||
transport.poolCount = 200
|
|
||||||
transport.tcpMux = true
|
|
||||||
transport.tcpMuxKeepaliveInterval = 60
|
|
||||||
transport.protocol = "tcp"
|
|
||||||
transport.tls.enable = false
|
|
||||||
udpPacketSize = 1500
|
|
||||||
|
|
||||||
|
|
||||||
[[proxies]]
|
[[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"
|
type = "tcp"
|
||||||
localIP = "127.0.0.1"
|
localIP = "192.168.1.3"
|
||||||
localPort = 443
|
localPort = 22
|
||||||
remotePort = 14443
|
remotePort = 22222
|
||||||
[[proxies]]
|
|
||||||
name = "web1_443"
|
|
||||||
type = "udp"
|
|
||||||
localIP = "127.0.0.1"
|
|
||||||
localPort = 443
|
|
||||||
remotePort = 14443
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# configure systemd
|
# configure systemd
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ Font="\033[0m"
|
|||||||
# variable
|
# variable
|
||||||
WORK_PATH=$(dirname $(readlink -f $0))
|
WORK_PATH=$(dirname $(readlink -f $0))
|
||||||
FRP_NAME=frpc
|
FRP_NAME=frpc
|
||||||
FRP_VERSION=0.54.0
|
FRP_VERSION=0.55.1
|
||||||
FRP_PATH=/usr/local/frp
|
FRP_PATH=/usr/local/frp
|
||||||
|
|
||||||
# 停止frpc
|
# 停止frpc
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ Font="\033[0m"
|
|||||||
# variable
|
# variable
|
||||||
WORK_PATH=$(dirname $(readlink -f $0))
|
WORK_PATH=$(dirname $(readlink -f $0))
|
||||||
FRP_NAME=frpc
|
FRP_NAME=frpc
|
||||||
FRP_VERSION=0.54.0
|
FRP_VERSION=0.55.1
|
||||||
FRP_PATH=/usr/local/frp
|
FRP_PATH=/usr/local/frp
|
||||||
PROXY_URL="https://ghproxy.com/"
|
PROXY_URL="https://mirror.ghproxy.com/"
|
||||||
|
|
||||||
# check frpc
|
# check frpc
|
||||||
if [ -f "/usr/local/frp/${FRP_NAME}" ] || [ -f "/usr/local/frp/${FRP_NAME}.toml" ] || [ -f "/lib/systemd/system/${FRP_NAME}.service" ];then
|
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}
|
mv ${FILE_NAME}/${FRP_NAME} ${FRP_PATH}
|
||||||
|
|
||||||
# configure frpc.toml
|
# configure frpc.toml
|
||||||
|
RADOM_NAME=$(cat /dev/urandom | head -n 10 | md5sum | head -c 8)
|
||||||
cat >${FRP_PATH}/${FRP_NAME}.toml <<EOF
|
cat >${FRP_PATH}/${FRP_NAME}.toml <<EOF
|
||||||
serverAddr = "1.2.3.4"
|
serverAddr = "frp.freefrp.net"
|
||||||
serverPort = 7000
|
serverPort = 7000
|
||||||
auth.method = "token"
|
auth.method = "token"
|
||||||
auth.token = "123456"
|
auth.token = "freefrp.net"
|
||||||
transport.poolCount = 200
|
|
||||||
transport.tcpMux = true
|
|
||||||
transport.tcpMuxKeepaliveInterval = 60
|
|
||||||
transport.protocol = "tcp"
|
|
||||||
transport.tls.enable = false
|
|
||||||
udpPacketSize = 1500
|
|
||||||
|
|
||||||
|
|
||||||
[[proxies]]
|
[[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"
|
type = "tcp"
|
||||||
localIP = "127.0.0.1"
|
localIP = "192.168.1.3"
|
||||||
localPort = 443
|
localPort = 22
|
||||||
remotePort = 14443
|
remotePort = 22222
|
||||||
[[proxies]]
|
|
||||||
name = "web1_443"
|
|
||||||
type = "udp"
|
|
||||||
localIP = "127.0.0.1"
|
|
||||||
localPort = 443
|
|
||||||
remotePort = 14443
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# clean
|
# clean
|
||||||
|
|||||||
Reference in New Issue
Block a user