Skip to content

Instantly share code, notes, and snippets.

@beilly
Last active February 25, 2022 05:02
Show Gist options
  • Save beilly/7191781a934e828c85b2c9062e1bc4df to your computer and use it in GitHub Desktop.
Save beilly/7191781a934e828c85b2c9062e1bc4df to your computer and use it in GitHub Desktop.
常用shell 脚本、命令
echo time=`date +"%Y%m%d-%H%m%S"` > properties.txt
keytool -list -v -keystore "jsk路径" -storepass 密码

frp

需要或建議更換的內容

  • frps.ini
  • frpc.ini
  • token = 74cd5e5d-75fe-4b0c-89a8-af4655198a40
  • server_addr = 1.1.1.1
  • local_ip = 192.168.1.2

服务端

配置: frps.ini

[common]
bind_port = 7000
dashboard_port = 7500
authentication_method = token
token = 74cd5e5d-75fe-4b0c-89a8-af4655198a40

部署

docker run  -v ./frps.ini:/etc/frp/frps.ini \
                    -d --name=frps \
                         --net=host \
                         --restart=always \
                         --log-opt max-size=10m \
                         --log-opt max-file=3 \
                    snowdreamtech/frps

客户端

配置: frpc.ini

[common]
server_addr = 1.1.1.1
server_port = 7000
authentication_method = token
token = 74cd5e5d-75fe-4b0c-89a8-af4655198a40
tcp_mux = true

[Surge Dashboard]
local_ip = 192.168.1.2
local_port = 6171
remote_port = 6171

[TeslaMate]
local_ip = 192.168.1.2
local_port = 4000
remote_port = 4000

[TeslaMate Dashboards]
local_ip = 192.168.1.2
local_port = 3000
remote_port = 3000

部署

docker run  -v ./frpc.ini:/etc/frp/frpc.ini \
                    -d --name=frpc \
                         --net=host \
                         --restart=always \
                         --log-opt max-size=10m \
                         --log-opt max-file=3 \
                    snowdreamtech/frpc

参考

https://docs.dler.io/black-hole/jin-jie/nei-wang-chuan-tou-fang-wen-jia-zhong-she-bei

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment