Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

491
Visualizações
HAproxy - How to comunicate to private network from a public ip

I have a private ip on my network that it is a ipmi server. I have installed another server(Centos 7) and assign a public ip to use as a proxy for to be able to reach from an exernal network the ipmi server. I'm tried to do this with nginx and also with haproxy but there is something wrong on the configuration. Anyone can help me?

Here is my nginx config:

#cat /etc/nginx/conf.d/proxy.conf 
upstream ipmi_backend {
    # the ipmi server
    server 10.150.0.34:443;
    keepalive 64;
}
server {
    listen 8070;
    server_name ipmi.server.it;
    location / {

#        add_header X-Frame-Options SAMEORIGIN;
        add_header X-Content-Type-Options "";
        proxy_set_header X-Content-Type-Options "";
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass https://ipmi_backend/;
        proxy_http_version 1.1;
        proxy_pass_request_headers on;
        proxy_set_header Connection "keep-alive";
        proxy_store off;
    proxy_set_header Host "ipmi.server.it:443";

}

========================================================================

Here my haproxy.cfg:

#cat haproxy.cfg
global
    log         127.0.0.1 local2
    pidfile     /var/run/haproxy.pid
    maxconn     4000
    #stats socket /run/haproxy/admin.sock user haproxy group haproxy mode 660 level admin
    # turn on stats unix socket
    stats socket /var/lib/haproxy/stats

defaults
    mode                    http
    log             global
    option          http_proxy
    timeout connect         50s
    timeout client          50s
    timeout server          50s

frontend  http-in
    bind localhost:8071
    mode http
    default_backend servers

backend servers
    server server1  10.150.0.34:443 check

With nginx the error i can reach the login page, but after the credencial the page says: Your session has timed out. You will need to open a new session. With haproxy the error message is: This site can’t provide a secure connection.

Thank you.

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda