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.

demandé il y a un an337 vues
1 réponse
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
répondu il y a un an
  • 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.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions