当前位置:   article > 正文

记windows和docker跑frp的一个配置

记windows和docker跑frp的一个配置
version: "3"

services:
  my-frps:
    image: snowdreamtech/frps:0.51.3
    container_name: my-frps
#    ports:
#      - 7000:7000
      #- 7001:7001
#      - 7500:7500
#      - 20316-20326:20316-20326
    restart: unless-stopped
#    networks:
#      custom-bridge:
    network_mode: host
    volumes: 
      - ./frps.ini:/etc/frp/frps.ini
    environment:
      - TZ=Asia/Shanghai
    logging:
      options:
        max-size: "10m"
  my-frpc:
    image: snowdreamtech/frpc:0.51.3
    container_name: my-frpc
    #ports:
    #  - 41200:41200
    restart: unless-stopped
#    networks:
#      custom-bridge:
    network_mode: host
    volumes:
      - ./frpc.ini:/etc/frp/frpc.ini
    environment:
      - TZ=Asia/Shanghai
    logging:
      options:
        max-size: "10m"
#networks:
#  custom-bridge:
#    external: true


  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43

frps.ini

[common]
bind_addr = 0.0.0.0
bind_port = 7000
dashboard_addr = 0.0.0.0
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = ************

token = ************
allow_ports = 20316-65535

vhost_http_port = 80
vhost_https_port = 1443
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13

frpc.ini

[common]
server_addr = localhost
server_port = 7000
token = ************
login_fail_exit = false
tls_enable = true
#disable_custom_tls_first_byte = true

[stcp-remote-desktop]
type = stcp
sk = ************
local_ip = xiaolizi.anarckk.me
local_port = 3389

[sudp-remote-desktop]
type = sudp
sk = ************
local_ip = xiaolizi.anarckk.me
local_port = 3389

[xtcp-remote-desktop]
type = xtcp
sk = ************
local_ip = xiaolizi.anarckk.me
local_port = 3389
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25

在windows上运行frp,断线3秒自动重连的脚本

:@echo off
title frpc
:home
C:\\setup\\frp_0.51.3_windows_amd64\\frpc.exe -c "C:\\Users\\anarckk\\bee-frp\\frpc-248-frpc-server\\frpc-248-frpc-server.ini"
timeout /T 3
goto home
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

在访问端的xtcp配置示例

[xtcp-visitor]
type = xtcp
sk = ************
server_name = xtcp-remote-desktop
role = visitor
bind_addr = 127.0.0.1
bind_port = 39000
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/377930
推荐阅读
相关标签
  

闽ICP备14008679号