Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Ipv6 to reverse proxy #861

Closed
prayag17 opened this issue Feb 3, 2021 · 6 comments
Closed

How to use Ipv6 to reverse proxy #861

prayag17 opened this issue Feb 3, 2021 · 6 comments

Comments

@prayag17
Copy link

prayag17 commented Feb 3, 2021

Hello,
I created an open media vault server and wanted to access its control panel outside my local network but my ISP has CGNAT on ipv4 but I can connect to my server using a public ipv6 address(given below). I found out about Nginx Proxy Manager a few weeks back and was able to install it on my server properly with the DB working correctly, but when I create a proxy host it would save it but will not bind to my subdomain. I have changed my Open media Vault's port to 82 to open port 80 and if it is on port 80 I can access it but I want to use subdomains as I have a plan to install Next Cloud and some other services too.
Ask me if you need more detail. PS: I am using Cloudflare as my DNS configurator.

Details:
External IP(IPV6 address): [2405:201:2002:8826:dea6:32ff:fe58:6c70]
External IP(IPV6 address) for Open Media Vault: [2405:201:2002:8826:dea6:32ff:fe58:6c70]:82
Domain: prayagnet.tk
Subdomain: openmediavault.prayagnet.tk

Image:
image

@prayag17
Copy link
Author

prayag17 commented Feb 10, 2021

Found a way to fix it

@shaojs321
Copy link

I have the same question

@prayag17
Copy link
Author

Turn's out all you need to do is give npm's container ipv6 address and use internal ipv4 address in the forward ip

@cellulosa
Copy link

Turn's out all you need to do is give npm's container ipv6 address and use internal ipv4 address in the forward ip

heya could you be a bit more specific? I'm trying to achieve the same thing. Thanks!

@prayag17
Copy link
Author

prayag17 commented Apr 15, 2023

All you need to do is that, allow ipv6 mode in rocker's bridge network (you can google it), and that will allow NPM to access the letsencrypt servers. You need to make sure tho that your server has an ipv6 address assigned (can be checked with ifconfig command and under wlan or eth0 or lan or similar you can check whether there is a field called inet6 or ipv6, if present then you have public ipv6 address and also just to confirm, open that ip address on your phone which is not connected to your lan
[ipv6Addr]:80 and if you see the nginx landing page then it worked).

After assigning the ipv6 address, just add your normal ipv4 address to the hostname field and select the enable SSL cert option and it should work. If not then send me some SS of log.

https://docs.docker.com/config/daemon/ipv6/ - link to guide on enabling ipv6 for docker network. Remember after doing this step you need to connect the docker container to only the bridge network

@cellulosa
Copy link

cellulosa commented Apr 15, 2023

heya thanks for helping!

So to recap:

        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.17.0.0/16",
                    "Gateway": "172.17.0.1"
                },
                {
                    "Subnet": "2001:db8:1::/64"
                }
            ]
        },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants