порт NAT iptables fowarding и Apache регистрируют дюйм/с

Можно использовать утилиту осады... Это - простая программа командной строки для того, чтобы примерно сравнить конфигурации сервера.

Это в основном просто запрашивает страницы из определенного списка произвольным параллельным способом и компилирует хорошую статистическую величину в конце как среднее время отклика, сколько раз приведенного к таймауту соединения, и т.д...

Хорошо оценить, сколько пользователей/трафика Ваша конфигурация сможет стоять.

2
задан 13 April 2017 в 15:14
1 ответ

You need a Layer 4 device (such as squid, apache in proxy mode, or a dedicated load balancer such as an F5 or Netscaler) if you want information about the original host making the request. If you do a straight NAT translation, then all requests will appear (correctly) to be from the host with the public IP address that is connecting to the server.

A Layer 4 device or server can add either a Via:, X-Forwarded-For:, or other arbitrary header to the HTTP request to the server. The server can then (if it desires) use that information about the original client. Netscaler(Citrix) publishes an Apache plugin which allows you to rewrite the apache request with the value of said arbitrary HTTP header, for example.

See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html for more information about the Via: header and what actual information is attached.

2
ответ дан 3 December 2019 в 12:04

Теги

Похожие вопросы