The Intelligent
Documentation Platform
Meet the next generation of documentation. AI-native, beautiful out-of-the-box, and built for collaboration.

Meet the next generation of documentation. AI-native, beautiful out-of-the-box, and built for collaboration.


Vias Romanas em Portugal
Itinerários

/etc/squid/squid.conf
Servidor A passa por Servidor B – Usando IP do B
# Definir a porta do proxy. Esta linha deve estar presente!
http_port 3128
# Força o Squid a usar este IP (o IP do Servidor B) para todas as conexões
tcp_outgoing_address BBB.BBB.BBB.BBB
# Definir ACL para o IP permitido
acl allowed_ip src AAA.AAA.AAA.AAA/32
# (Mantenha as definições de portas e métodos)
acl SSL_ports port 443
acl Safe_ports port 80 443
acl CONNECT method CONNECT
# Permitir acesso HTTP (navegação normal)
http_access allow allowed_ip
# Permitir acesso HTTPS (túnel CONNECT)
http_access allow CONNECT allowed_ip
# Negar o resto do tráfego que não for seguro ou de clientes não autorizados
http_access deny all
# Impede que o Squid adicione cabeçalhos que revelem o IP ou hostname do cliente
forwarded_for off
request_header_access X-Forwarded-For deny all
request_header_access Via deny all
request_header_access Cache-Control deny all



