Browse Source

use X-Real-IP instead of X-Forwarded-For

master
Andreas Neue 1 year ago
parent
commit
4afa434702
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      logforward.sh

+ 1
- 1
logforward.sh View File

@@ -2,5 +2,5 @@
trap 'echo oh, I am slain; exit' INT
while true; do
#varnishncsa -F '%{X-Forwarded-For}i %h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"' | logforward -h backup01.scn.chefkoch.net:22 -p /srv/logfiles_seo/webxx- -u root -k /etc/varnish/id_rsa_lf -b 100000000
varnishncsa -F '%{X-Forwarded-Proto}i %{X-Forwarded-For}i %h %l %u %t "%r" %s %b %{Content-Type}o "%{Referer}i" "%{User-Agent}i"' | logforward -h $1 -p $2 -u $3 -k $4 -b 100000000
varnishncsa -F '%{X-Forwarded-Proto}i %{X-Real-IP}i %h %l %u %t "%r" %s %b %{Content-Type}o "%{Referer}i" "%{User-Agent}i"' | logforward -h $1 -p $2 -u $3 -k $4 -b 100000000
done

Loading…
Cancel
Save