go-gost / gost

GO Simple Tunnel - a simple tunnel written in golang
https://gost.run
MIT License
4.09k stars 502 forks source link

icmp on ipv6 not work #542

Closed aa51513 closed 1 month ago

aa51513 commented 2 months ago

The contents of my configuration file are as follows: 我的配置文件内容如下:

services:
- name: service-0
  addr: ":1080"
  handler:
    type: auto
    chain: chain-0
  listener:
    type: tcp
chains:
- name: chain-0
  hops:
  - name: hop-0
    nodes:
    - name: node-0
      addr: ipv6.server.com:0
      connector:
        type: http
      dialer:
        type: icmp

The domain ipv6.server.com consists of only one AAAA record that resolves to an ipv6 address ipv6.server.com这个域名只有一条AAAA记录,被解析到一个ipv6地址

The log message only suggests listening on port 1080, after that, there is no other information output, and the icmp channel is not open. 日志信息只提示监听了1080端口,之后就没有其他任何信息输出,icmp通道也没有打通

ginuerzh commented 1 month ago

ipv6需要使用对应的icmpv6,dialer和listener对应的type为icmp6。 https://gost.run/tutorials/icmp/#icmpv6