[GH-ISSUE #1606] ipv6 not working with NPM in Docker #1204

Closed
opened 2026-02-26 06:36:12 +03:00 by kerem · 10 comments
Owner

Originally created by @swoop124 on GitHub (Nov 20, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1606

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug
til now i only used ipv4 and npm was working fine, even with an Access List. Now i am beginning to switch to ipv6.
When no Acces List is set, NPM works fine with ipv6. But when i activate an Access List, i get a 403 Forbidden. Even when i allow my ipv6 Subnet in the Access List.

Nginx Proxy Manager Version
v2.9.12

To Reproduce
Steps to reproduce the behavior:

  1. add your ipv6 and ipv4 to an access list
  2. add this access list to a Website that is routed throug npm
  3. open the Website, that is routed through npm and has an access list.
  4. see 403 Forbidden

Expected behavior
open the Website even when coming from ipv6, only if in access list allowed

Screenshots
grafik

my Access List
grafik

Operating System
nmp is installed on a debian 10 (buster 10.10) in docker 20.10.8, build 3967b7d with enabled ipv6

Additional context
For testing i installed nmp on a alpine Proxmox LXC, with the same Access List. There it was working like a charme.

I found out, that when i am coming from a ipv6 subnet, then this ipv6 IP is natted to a Docker-Internal ipv4 address. Even within a internal ipv6 network it is natted to a internal ipv6-address.

Originally created by @swoop124 on GitHub (Nov 20, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1606 **Checklist** - Have you pulled and found the error with `jc21/nginx-proxy-manager:latest` docker image? - Yes - Are you sure you're not using someone else's docker image? - Yes - Have you searched for similar issues (both open and closed)? - Yes **Describe the bug** til now i only used ipv4 and npm was working fine, even with an Access List. Now i am beginning to switch to ipv6. When no Acces List is set, NPM works fine with ipv6. But when i activate an Access List, i get a 403 Forbidden. Even when i allow my ipv6 Subnet in the Access List. **Nginx Proxy Manager Version** v2.9.12 **To Reproduce** Steps to reproduce the behavior: 1. add your ipv6 and ipv4 to an access list 2. add this access list to a Website that is routed throug npm 3. open the Website, that is routed through npm and has an access list. 4. see 403 Forbidden **Expected behavior** open the Website even when coming from ipv6, only if in access list allowed **Screenshots** ![grafik](https://user-images.githubusercontent.com/75502165/142739303-aa7cfa64-6d86-4579-8a3b-1cbf0583544c.png) my Access List ![grafik](https://user-images.githubusercontent.com/75502165/142739413-982d8e26-6c98-45e7-8a0b-30df00e4d470.png) **Operating System** nmp is installed on a debian 10 (buster 10.10) in docker 20.10.8, build 3967b7d with enabled ipv6 **Additional context** For testing i installed nmp on a alpine Proxmox LXC, with the same Access List. There it was working like a charme. I found out, that when i am coming from a ipv6 subnet, then this ipv6 IP is natted to a Docker-Internal ipv4 address. Even within a internal ipv6 network it is natted to a internal ipv6-address.
kerem 2026-02-26 06:36:12 +03:00
  • closed this issue
  • added the
    stale
    bug
    labels
Author
Owner

@chaptergy commented on GitHub (Nov 21, 2021):

https://github.com/jc21/nginx-proxy-manager/issues/1105#issuecomment-950384265 might help

<!-- gh-comment-id:974899177 --> @chaptergy commented on GitHub (Nov 21, 2021): https://github.com/jc21/nginx-proxy-manager/issues/1105#issuecomment-950384265 might help
Author
Owner

@swoop124 commented on GitHub (Nov 22, 2021):

hi an thanks for the suggession, but no, it isn't helping.

still same message in log:
[22/Nov/2021:08:24:02 +0000] - - 403 - GET https sub.domain.com "/" [Client 172.18.0.1] [Length 111] [Gzip 1.35] [Sent-to host] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0" "-"
[22/Nov/2021:08:24:02 +0000] - - 403 - GET https sub.domain.com "/favicon.ico" [Client 172.18.0.1] [Length 111] [Gzip 1.35] [Sent-to host] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0" "https://sub.domain.com/"

I am coming from an ipv6 ip-address.

<!-- gh-comment-id:975259773 --> @swoop124 commented on GitHub (Nov 22, 2021): hi an thanks for the suggession, but no, it isn't helping. still same message in log: [22/Nov/2021:08:24:02 +0000] - - 403 - GET https sub.domain.com "/" [Client 172.18.0.1] [Length 111] [Gzip 1.35] [Sent-to host] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0" "-" [22/Nov/2021:08:24:02 +0000] - - 403 - GET https sub.domain.com "/favicon.ico" [Client 172.18.0.1] [Length 111] [Gzip 1.35] [Sent-to host] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0" "https://sub.domain.com/" I am coming from an ipv6 ip-address.
Author
Owner

@swoop124 commented on GitHub (Nov 27, 2021):

no one else?

<!-- gh-comment-id:980801589 --> @swoop124 commented on GitHub (Nov 27, 2021): no one else?
Author
Owner

@Saik0Shinigami commented on GitHub (Dec 10, 2021):

From my understanding the Docker gateway is converting IPv6 traffic to IPv4, thus why you see 172.18.0.1 as your client.

I'm in the same boat and have yet to find a functional solution.

(Aside from host mode networking that is.)

<!-- gh-comment-id:990591839 --> @Saik0Shinigami commented on GitHub (Dec 10, 2021): From my understanding the Docker gateway is converting IPv6 traffic to IPv4, thus why you see 172.18.0.1 as your client. I'm in the same boat and have yet to find a functional solution. (Aside from host mode networking that is.)
Author
Owner

@swoop124 commented on GitHub (Dec 10, 2021):

yes you are right. why npm-docker is doing that, i dont know.

my solution is, i use an alpine linux VM/LXC. With that it is working and ipv4 and ipv6 are working.
as soon as i have my setup running, i can report.

regards

<!-- gh-comment-id:990632361 --> @swoop124 commented on GitHub (Dec 10, 2021): yes you are right. why npm-docker is doing that, i dont know. my solution is, i use an alpine linux VM/LXC. With that it is working and ipv4 and ipv6 are working. as soon as i have my setup running, i can report. regards
Author
Owner

@swoop124 commented on GitHub (Dec 21, 2021):

ok.
i've installed a complet new alpine-lxc on my Proxmox Server and deployed npm.
now it is working as expected. even with ipv6.

the only problem was, that i had to configure all my domains an certificates once again, so it would be very goot, if there is a export and import funktionality.

regards

<!-- gh-comment-id:999122041 --> @swoop124 commented on GitHub (Dec 21, 2021): ok. i've installed a complet new alpine-lxc on my Proxmox Server and deployed npm. now it is working as expected. even with ipv6. the only problem was, that i had to configure all my domains an certificates once again, so it would be very goot, if there is a export and import funktionality. regards
Author
Owner

@Intenos commented on GitHub (Dec 27, 2021):

I believe I have also an issue with jc21/nginx-proxy-manager and ipv6.

I have setup a reverse proxy for Nextcloud (besides others). Everything works well, except of the Nextcloud Android App used remotely, not via the local WIFI. I know that this is related to ipv6 as I already had an issue with it about one year ago which I fixed by properly setting up the ipv6 routing in my router (Fritz!Box). Any issue there I can exclude as route case and clearly link it to the Nginx-Proxy-Manager as everything works when disabling NPM and setting up a reverse proxy via the local Nginx of my openmediaVault system.

However, this I did only for testing as I there miss the auto-generated LetsEntscrypt certificate. Therefore I hope that anybody can help with a solution.

<!-- gh-comment-id:1001435181 --> @Intenos commented on GitHub (Dec 27, 2021): I believe I have also an issue with jc21/nginx-proxy-manager and ipv6. I have setup a reverse proxy for Nextcloud (besides others). Everything works well, except of the Nextcloud Android App used remotely, not via the local WIFI. I know that this is related to ipv6 as I already had an issue with it about one year ago which I fixed by properly setting up the ipv6 routing in my router (Fritz!Box). Any issue there I can exclude as route case and clearly link it to the Nginx-Proxy-Manager as everything works when disabling NPM and setting up a reverse proxy via the local Nginx of my openmediaVault system. However, this I did only for testing as I there miss the auto-generated LetsEntscrypt certificate. Therefore I hope that anybody can help with a solution.
Author
Owner

@Intenos commented on GitHub (Dec 27, 2021):

I just found that it works with jlesage/nginx-proxy-manager.

<!-- gh-comment-id:1001440643 --> @Intenos commented on GitHub (Dec 27, 2021): I just found that it works with jlesage/nginx-proxy-manager.
Author
Owner

@github-actions[bot] commented on GitHub (Mar 1, 2024):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:1972305749 --> @github-actions[bot] commented on GitHub (Mar 1, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Apr 14, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:2800302050 --> @github-actions[bot] commented on GitHub (Apr 14, 2025): Issue was closed due to inactivity.
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
starred/nginx-proxy-manager-NginxProxyManager#1204
No description provided.