tobychui / zoraxy

A general purpose HTTP reverse proxy and forwarding tool. Now written in Go!
https://zoraxy.aroz.org
GNU Affero General Public License v3.0
3k stars 182 forks source link

IPv6 not working with Portainer #311

Closed JonathanN1203 closed 1 month ago

JonathanN1203 commented 1 month ago

What happened? Hi, I installed zoraxy with docker on debian 12. I noticed that ipv6 is not working with zoraxy on my server.

Describe what have you tried in a tcpdump I can see the traffic reaching the server but is not forwarded to the container. I'M able to ping from the container to adresses in the internet.

my docker config:


services:
  zoraxy:
    image: zoraxydocker/zoraxy:latest
    container_name: zoraxy
    restart: unless-stopped
    ports:
      - 80:80
      - 443:443
      - 8001:8000
    volumes:
      - zoraxy-config:/opt/zoraxy/config/
      - /var/run/docker.sock:/var/run/docker.sock
      - /etc/localtime:/etc/localtime
    environment:
      FASTGEOIP: "true"
      ZEROTIER: "false"
    networks:
      zoraxy_net:
        ipv6_address: SUBNET::2

networks:
  zoraxy_net:
    enable_ipv6: true
    ipam:
      config:
        - subnet: SUBNET::/64

volumes:
  zoraxy-config:```
PassiveLemon commented 1 month ago

I'm not familiar with Docker networks using IPv6, does the it work when using IPv4?

JonathanN1203 commented 1 month ago

yes ipv4 is working

PassiveLemon commented 1 month ago

Would you mind sharing your Portainer config? Is this only problematic with Portainer? I don't have much to go off of here

JonathanN1203 commented 1 month ago

there is no special config, the config of the stack you can see in my first post

PassiveLemon commented 1 month ago

You specifically mentioned Portainer in the title so being able to see the config/command for it may provide some use in troubleshooting. Looking at the Docker page for IPv6, it mentions that IPv6 is only supported on Linux, you didn't share your host platform or even if the problem is specific to Portainer so I really don't have much information that I can use to narrow down the problem. All I've been able to gather so far is that IPv4 works but IPv6 doesn't work for a container (Zoraxy or Portainer?) and that port forwarding to the container does not work.

JonathanN1203 commented 1 month ago

I changed from bridge to macvlan, no ipv4 and ipv6 are working