[GH-ISSUE #1027] 内网穿透失败 #811

Closed
opened 2026-05-05 12:31:03 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @droplet-js on GitHub (Dec 28, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/1027

Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)

Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST

What version of frp are you using (./frpc -v or ./frps -v)?
0.22.0

What operating system and processor architecture are you using (go env)?

Configures you used:

# 版本
version: "3.7"

# 服务
services:

  # 暂不支持设置时区
  traefik:
    image: traefik:1.7.6
#    ports:
#      - 80:80
#      - 443:443
#      - 8080:8080
    networks:
      - net # traefik_net
      - frpc
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ../dev-ops-repo/traefik/acme:/etc/traefik/acme
#    environment:
#      - TZ=${TIME_ZONE:-Asia/Shanghai}
    command:
      - "--api"
      - "--entrypoints=Name:http Address::80"
      - "--entrypoints=Name:https Address::443 TLS"
      - "--defaultentrypoints=http,https"
      - "--acme"
      - "--acme.storage=/etc/traefik/acme/acme.json"
      - "--acme.entryPoint=https"
      - "--acme.httpChallenge.entryPoint=http"
      - "--acme.onHostRule=true"
      - "--acme.onDemand=false"
      - "--acme.email=${TRAEFIK_ACME_EMAIL:-foobar@example.com}"
      - "--docker"
      - "--docker.exposedbydefault=false"
      - "--docker.swarmMode"
      - "--docker.domain=${SERVER_DOMAIN:-localhost}"
      - "--docker.watch"
    deploy:
      mode: global
      placement:
        constraints:
          - node.role == manager
      update_config:
        parallelism: 1
        delay: 10s
      restart_policy:
        condition: on-failure
      labels:
        - "traefik.enable=true"
        - "traefik.docker.network=traefik_net"
        - "traefik.port=8080"
        - "traefik.frontend.entryPoints=http"
        - "traefik.frontend.rule=Host:traefik.frpc.${SERVER_DOMAIN:-localhost}"
        - "traefik.frontend.auth.basic=${TRAEFIK_AUTH_BASIC}"

  traefik-frpc-http:
    image: v7lin/frpc:0.22.0
    networks:
      - frpc
    environment:
      - TZ=${TIME_ZONE:-Asia/Shanghai}
    command:
      - "http"
      - "--proxy_name=traefik-frpc-http"
      - "--local_ip=traefik"
      - "--local_port=80"
      - "--custom_domain=traefik.frpc.${SERVER_DOMAIN:-localhost},portainer.frpc.${SERVER_DOMAIN:-localhost},discuz.${SERVER_DOMAIN:-localhost},demo.${SERVER_DOMAIN:-localhost}"
      - "--server_addr=${FRP_SERVER_DOMAIN:-host.docker.internal}:7000"
      - "--token=${FRP_TOKEN:-xyzfrpsxyz}"
#      - "--log_level=info"
    depends_on:
      - traefik
    deploy:
      mode: global
      placement:
        constraints:
          - node.role == manager
      update_config:
        parallelism: 1
        delay: 10s
      restart_policy:
        condition: on-failure
      labels:
        - "traefik.enable=false"

  traefik-frpc-https:
    image: v7lin/frpc:0.22.0
    networks:
      - frpc
    environment:
      - TZ=${TIME_ZONE:-Asia/Shanghai}
    command:
      - "https"
      - "--proxy_name=traefik-frpc-https"
      - "--local_ip=traefik"
      - "--local_port=443"
      - "--custom_domain=traefik.frpc.${SERVER_DOMAIN:-localhost},portainer.frpc.${SERVER_DOMAIN:-localhost},discuz.${SERVER_DOMAIN:-localhost},demo.${SERVER_DOMAIN:-localhost}"
      - "--server_addr=${FRP_SERVER_DOMAIN:-host.docker.internal}:7000"
      - "--token=${FRP_TOKEN:-xyzfrpsxyz}"
#      - "--log_level=info"
    depends_on:
      - traefik
    deploy:
      mode: global
      placement:
        constraints:
          - node.role == manager
      update_config:
        parallelism: 1
        delay: 10s
      restart_policy:
        condition: on-failure
      labels:
        - "traefik.enable=false"

networks:
  # docker stack deploy -c <(docker-compose -f docker-compose-swarm-traefik.yml config) traefik
  # Creating network traefik_net
  # 外部引用 "traefik_net"
  net:
    driver: overlay
    attachable: true
  frpc:
["http","--proxy_name=traefik-frpc-http","--local_ip=traefik","--local_port=80","--custom_domain=traefik.frpc.haitanyule.com,portainer.frpc.haitanyule.com,discuz.haitanyule.com,demo.haitanyule.com","--server_addr=frp.haitanyule.com:7000","--token=xyzfrpsxyz"]

Steps to reproduce the issue:
1.
2.
3.

Describe the results you received:
traefik-frpc-http 无法向 dashboard 注册
traefik-frpc-https 能向 dashboard 注册

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):

2018/12/28 20:06:55 [W] [control.go:141] [traefik-frpc-http] start error: router config conflict,
2018/12/28 20:05:16 [W] [control.go:141] [traefik-frpc-http] start error: router config conflict

Can you point out what caused this issue (optional)

Originally created by @droplet-js on GitHub (Dec 28, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/1027 Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly. (为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。) Use the commands below to provide key information from your environment: You do NOT have to include this information if this is a FEATURE REQUEST **What version of frp are you using (./frpc -v or ./frps -v)?** 0.22.0 **What operating system and processor architecture are you using (`go env`)?** **Configures you used:** ```` # 版本 version: "3.7" # 服务 services: # 暂不支持设置时区 traefik: image: traefik:1.7.6 # ports: # - 80:80 # - 443:443 # - 8080:8080 networks: - net # traefik_net - frpc volumes: - /var/run/docker.sock:/var/run/docker.sock - ../dev-ops-repo/traefik/acme:/etc/traefik/acme # environment: # - TZ=${TIME_ZONE:-Asia/Shanghai} command: - "--api" - "--entrypoints=Name:http Address::80" - "--entrypoints=Name:https Address::443 TLS" - "--defaultentrypoints=http,https" - "--acme" - "--acme.storage=/etc/traefik/acme/acme.json" - "--acme.entryPoint=https" - "--acme.httpChallenge.entryPoint=http" - "--acme.onHostRule=true" - "--acme.onDemand=false" - "--acme.email=${TRAEFIK_ACME_EMAIL:-foobar@example.com}" - "--docker" - "--docker.exposedbydefault=false" - "--docker.swarmMode" - "--docker.domain=${SERVER_DOMAIN:-localhost}" - "--docker.watch" deploy: mode: global placement: constraints: - node.role == manager update_config: parallelism: 1 delay: 10s restart_policy: condition: on-failure labels: - "traefik.enable=true" - "traefik.docker.network=traefik_net" - "traefik.port=8080" - "traefik.frontend.entryPoints=http" - "traefik.frontend.rule=Host:traefik.frpc.${SERVER_DOMAIN:-localhost}" - "traefik.frontend.auth.basic=${TRAEFIK_AUTH_BASIC}" traefik-frpc-http: image: v7lin/frpc:0.22.0 networks: - frpc environment: - TZ=${TIME_ZONE:-Asia/Shanghai} command: - "http" - "--proxy_name=traefik-frpc-http" - "--local_ip=traefik" - "--local_port=80" - "--custom_domain=traefik.frpc.${SERVER_DOMAIN:-localhost},portainer.frpc.${SERVER_DOMAIN:-localhost},discuz.${SERVER_DOMAIN:-localhost},demo.${SERVER_DOMAIN:-localhost}" - "--server_addr=${FRP_SERVER_DOMAIN:-host.docker.internal}:7000" - "--token=${FRP_TOKEN:-xyzfrpsxyz}" # - "--log_level=info" depends_on: - traefik deploy: mode: global placement: constraints: - node.role == manager update_config: parallelism: 1 delay: 10s restart_policy: condition: on-failure labels: - "traefik.enable=false" traefik-frpc-https: image: v7lin/frpc:0.22.0 networks: - frpc environment: - TZ=${TIME_ZONE:-Asia/Shanghai} command: - "https" - "--proxy_name=traefik-frpc-https" - "--local_ip=traefik" - "--local_port=443" - "--custom_domain=traefik.frpc.${SERVER_DOMAIN:-localhost},portainer.frpc.${SERVER_DOMAIN:-localhost},discuz.${SERVER_DOMAIN:-localhost},demo.${SERVER_DOMAIN:-localhost}" - "--server_addr=${FRP_SERVER_DOMAIN:-host.docker.internal}:7000" - "--token=${FRP_TOKEN:-xyzfrpsxyz}" # - "--log_level=info" depends_on: - traefik deploy: mode: global placement: constraints: - node.role == manager update_config: parallelism: 1 delay: 10s restart_policy: condition: on-failure labels: - "traefik.enable=false" networks: # docker stack deploy -c <(docker-compose -f docker-compose-swarm-traefik.yml config) traefik # Creating network traefik_net # 外部引用 "traefik_net" net: driver: overlay attachable: true frpc: ```` ```` ["http","--proxy_name=traefik-frpc-http","--local_ip=traefik","--local_port=80","--custom_domain=traefik.frpc.haitanyule.com,portainer.frpc.haitanyule.com,discuz.haitanyule.com,demo.haitanyule.com","--server_addr=frp.haitanyule.com:7000","--token=xyzfrpsxyz"] ```` **Steps to reproduce the issue:** 1. 2. 3. **Describe the results you received:** traefik-frpc-http 无法向 dashboard 注册 traefik-frpc-https 能向 dashboard 注册 **Describe the results you expected:** **Additional information you deem important (e.g. issue happens only occasionally):** ```` 2018/12/28 20:06:55 [W] [control.go:141] [traefik-frpc-http] start error: router config conflict, 2018/12/28 20:05:16 [W] [control.go:141] [traefik-frpc-http] start error: router config conflict ```` **Can you point out what caused this issue (optional)**
gitea-mirror 2026-05-05 12:31:03 -06:00
Author
Owner

@fatedier commented on GitHub (Dec 28, 2018):

麻烦你先自己在物理机上手动用命令行去启动,使用相同或类似的参数,避免其他服务的干扰,然后再贴出错误的详细信息。

<!-- gh-comment-id:450351776 --> @fatedier commented on GitHub (Dec 28, 2018): 麻烦你先自己在物理机上手动用命令行去启动,使用相同或类似的参数,避免其他服务的干扰,然后再贴出错误的详细信息。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#811
No description provided.