apernet / hysteria

Hysteria is a powerful, lightning fast and censorship resistant proxy.
https://v2.hysteria.network/
MIT License
15.11k stars 1.69k forks source link

[请求帮助] Docker安装Hysteria端口映射不成功 #477

Open cyrixiii opened 2 years ago

cyrixiii commented 2 years ago

问题详情

安装了tobyxdd/hysteria docker下的镜像,但是docker无法映射端口

服务器json文件如下:

{
  "listen": ":1234",
  "protocol": "faketcp",
  "acme": {
    "domains": [
      "test.domain.com"
    ],
    "email": "mail@email.com"
  },
  "obfs": "helloworld",
  "cert": "/etc/hysteria/domain.cer",
  "key": "/etc/hysteria/domain.key",
  "up": "100 Mbps",
  "down": "100 Mbps"
}

启动镜像命令如下:

docker run -idt \
--name hysteria \
--restart=always \
--net=host \
-v /etc/hysteria/cinfig.json:/etc/hysteria/cinfig.json \
-v /etc/hysteria/:/etc/hysteria/ \
tobyxdd/hysteria --config /etc/hysteria/cinfig.json server

通过docker port hysteria查看端口映射不成功

请问是什么原因呢?

服务端安装信息或者一键脚本信息

tobyxdd/hysteria latest 6 days ago 27.4MB

VPS 信息

GCP 香港 EYPC 2核8G

服务端配置

{ "listen": ":1234", "protocol": "faketcp", "acme": { "domains": [ "test.domain.com" ], "email": "mail@email.com" }, "obfs": "helloworld", "cert": "/etc/hysteria/domain.cer", "key": "/etc/hysteria/domain.key", "up": "100 Mbps", "down": "100 Mbps" }

服务端日志

客户端安装信息

SSRP

客户端配置

客户端运行环境(操作系统)

OpenWRT SSRP

客户端日志

Smallthing commented 2 years ago

你都faketcp了还映射udp口干什么

cyrixiii commented 2 years ago

你都faketcp了还映射udp口干什么

不映射udp,host模式同样不行

mritd commented 2 years ago
mritd commented 2 years ago

还有, 你注意下这种大型云服务商在最外层可能有个自己的防护墙, 你需要通过控制台打开.