Logguer le port source du client
- Apache /etc/apache2/apache2.conf :
LogFormat "%h:%{remote}p %l %u %t \"%r\" %>s %O \"%i\" \"%i\"" combinedservice apache2 reload
- NGinx /etc/nginx/nginx.conf :
# Enable Access logs for web traffic log_format upstream '$remote_addr:$remote_port - $remote_user [$time_local] ' '"$request" $status $bytes_sent ' '"$http_referer" "$http_user_agent" "$upstream_addr"'; access_log /var/log/nginx/access.log upstream;Et modifier tous les VirtualHosts pour ajouter :
access_log /var/log/nginx/XXXXX.access.log upstream;service nginx reload
- Postfix /etc/postfix/main.cf :
# Log les ports des utilisateurs en plus de l'IP smtpd_client_port_logging = yesservice postfix reload