If a client connects to the source server using the ipv6 address on the source server, how do I get the proxy server to proxy traffic for it?

0

The details are as follows. If by doing this it does enable clients connecting to the proxy to be proxied, but drops people outside the proxy. And I want to use a reverse proxy to take care of the server, not the client. I don't really want that, and if there is a ready-made example, it would be peer-to-peer, but I'm not sure how to deploy and implement it. Thanks for your answers.

asked a year ago323 views
1 Answer
4

if you are using Nginx as a proxy server, you can add the following lines to your Nginx configuration file

server {
    listen [::]:80 ipv6only=on; # Replace 80 with the desired port number
    server_name your_ipv6_domain.com;

    location / {
        proxy_pass http://[source_server_ipv6_address];
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

if you explain your question more clearly i can give a better answer to you

profile picture
EXPERT
answered a year ago
  • The details are as follows. If by doing this it does enable clients connecting to the proxy to be proxied, but drops people outside the proxy. And I want to use a reverse proxy to take care of the server, not the client. I don't really want that, and if there is a ready-made example, it would be peer-to-peer, but I'm not sure how to deploy and implement it.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions