Welcome! Log In Create A New Profile

Advanced

Re: IPv6 to IPv4

All files from this thread

File Name File Size   Posted by Date  
smime.p7s 4.3 KB open | download rhysers 12/16/2019 Read message
smime.p7s 4.3 KB open | download rhysers 12/16/2019 Read message
Sergey A. Osokin
December 11, 2019 06:36PM
Hi Rhys,

hope you're doing well.

Yes, it's definitely possible. The following code snippet does the show:

server {
listen [::]:80 default ipv6only=on;
location / { proxy_pass http://127.0.0.1:8081; }
}

server {
listen 127.0.0.1:8081;
location / { return 200 "OK, 127.0.0.1:8081\n"; }
}


% curl 127.0.0.1:8081
OK, 127.0.0.1:8081
% curl -g -6 "http://[::1]/"
OK, 127.0.0.1:8081

On Wed, Dec 11, 2019 at 11:52:42AM -1000, Rhys Ferris wrote:
> Not sure if this is possible. I am trying to enable dual stack for my server, which also proxies several other internal services. Nginx is receiving requests on IPv6 fine, but some of my services are IPv4 only. Can Nginx receive the request on IPv6, retrieve the content from IPv4 internally, and the. Serve the context over IPv6?
>
> Thanks
>
> Rhys Ferris
> ??? 808-257-2252
> ???? 757-848-7278
> ???? rhys.j.ferris@gmail.com
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Re: IPv6 to IPv4

Sergey A. Osokin December 11, 2019 06:36PM

Re: IPv6 to IPv4 Attachments

rhysers December 16, 2019 04:16AM

Re: IPv6 to IPv4

Sergey Kandaurov December 16, 2019 05:38AM

Re: IPv6 to IPv4 Attachments

rhysers December 16, 2019 12:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 125
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready