Problems with HTTP_X_FORWARDED_FOR

From: Patrick (patrick@schwesternwohnheim.at)
Date: Thu Jan 29 2004 - 03:55:48 CET


Hi!

I have problems with the X-Forwarded-For header, it is added only once
after i have pen started.

Here what i did:

1.) start pen on the machine 192.168.1.15
pen 80 -Hfd 192.168.1.20:80

2.) connect with my browser from 192.168.1.14
your IP=192.168.1.14

3.) hit the reload-button
your IP=

4.) connect with an other browser from 192.168.1.10
your IP=

If i restart pen, i get the X-Forwarded-For header again, but again only
once...
I tried to find the failur or some documentation abaout it, but i didn'
succeed :(

So is anyone here who can help me?
Thanks!

Patrick (-:

PS: Here the output of pen:

discordia:~ # pen 80 -Hfd 192.168.1.20:1600
2004-01-29 03:51:17: local address=[0.0.0.0:80]
2004-01-29 03:51:17: n = 2, address = 192.168.1.20, pno = 1600, maxc1 =
0, hard = 0
2004-01-29 03:51:17: n = 1, address = 0.0.0.0, pno = 0, maxc1 = 0, hard
= 0
2004-01-29 03:51:17: n = 1, address = 0.0.0.0, pno = 0, maxc1 = 0, hard
= 0
2004-01-29 03:51:17: n = 1, address = 0.0.0.0, pno = 0, maxc1 = 0, hard
= 0
2004-01-29 03:51:17: n = 1, address = 0.0.0.0, pno = 0, maxc1 = 0, hard
= 0
2004-01-29 03:51:17: n = 1, address = 0.0.0.0, pno = 0, maxc1 = 0, hard
= 0
2004-01-29 03:51:17: n = 1, address = 0.0.0.0, pno = 0, maxc1 = 0, hard
= 0
2004-01-29 03:51:17: n = 1, address = 0.0.0.0, pno = 0, maxc1 = 0, hard
= 0
2004-01-29 03:51:17: n = 1, address = 0.0.0.0, pno = 0, maxc1 = 0, hard
= 0
2004-01-29 03:51:17: n = 1, address = 0.0.0.0, pno = 0, maxc1 = 0, hard
= 0
2004-01-29 03:51:17: n = 1, address = 0.0.0.0, pno = 0, maxc1 = 0, hard
= 0
2004-01-29 03:51:17: n = 1, address = 0.0.0.0, pno = 0, maxc1 = 0, hard
= 0
2004-01-29 03:51:17: n = 1, address = 0.0.0.0, pno = 0, maxc1 = 0, hard
= 0
2004-01-29 03:51:17: n = 1, address = 0.0.0.0, pno = 0, maxc1 = 0, hard
= 0
2004-01-29 03:51:17: n = 1, address = 0.0.0.0, pno = 0, maxc1 = 0, hard
= 0
2004-01-29 03:51:17: n = 1, address = 0.0.0.0, pno = 0, maxc1 = 0, hard
= 0
2004-01-29 03:51:17: servers:
2004-01-29 03:51:17: 0 192.168.1.20:1600:0:0
2004-01-29 03:51:17: 1 0.0.0.0:0:0:0
2004-01-29 03:51:17: 2 0.0.0.0:0:0:0
2004-01-29 03:51:17: 3 0.0.0.0:0:0:0
2004-01-29 03:51:17: 4 0.0.0.0:0:0:0
2004-01-29 03:51:17: 5 0.0.0.0:0:0:0
2004-01-29 03:51:17: 6 0.0.0.0:0:0:0
2004-01-29 03:51:17: 7 0.0.0.0:0:0:0
2004-01-29 03:51:17: 8 0.0.0.0:0:0:0
2004-01-29 03:51:17: 9 0.0.0.0:0:0:0
2004-01-29 03:51:17: 10 0.0.0.0:0:0:0
2004-01-29 03:51:17: 11 0.0.0.0:0:0:0
2004-01-29 03:51:17: 12 0.0.0.0:0:0:0
2004-01-29 03:51:17: 13 0.0.0.0:0:0:0
2004-01-29 03:51:17: 14 0.0.0.0:0:0:0
2004-01-29 03:51:17: 15 0.0.0.0:0:0:0
2004-01-29 03:51:17: mainloop_select(3, -1)
2004-01-29 03:52:54: match_acl(0, 234989760)
2004-01-29 03:52:54: Client 192.168.1.14 has index -1
2004-01-29 03:52:54: lookup_client returns -1
2004-01-29 03:52:54: Trying server 1 at time 1075344774
2004-01-29 03:52:54: No port for you!
2004-01-29 03:52:54: Trying server 2 at time 1075344774
2004-01-29 03:52:54: No port for you!
2004-01-29 03:52:54: Trying server 3 at time 1075344774
2004-01-29 03:52:54: No port for you!
2004-01-29 03:52:54: Trying server 4 at time 1075344774
2004-01-29 03:52:54: No port for you!
2004-01-29 03:52:54: Trying server 5 at time 1075344774
2004-01-29 03:52:54: No port for you!
2004-01-29 03:52:54: Trying server 6 at time 1075344774
2004-01-29 03:52:54: No port for you!
2004-01-29 03:52:54: Trying server 7 at time 1075344774
2004-01-29 03:52:54: No port for you!
2004-01-29 03:52:54: Trying server 8 at time 1075344774
2004-01-29 03:52:54: No port for you!
2004-01-29 03:52:54: Trying server 9 at time 1075344774
2004-01-29 03:52:54: No port for you!
2004-01-29 03:52:54: Trying server 10 at time 1075344774
2004-01-29 03:52:54: No port for you!
2004-01-29 03:52:54: Trying server 11 at time 1075344774
2004-01-29 03:52:54: No port for you!
2004-01-29 03:52:54: Trying server 12 at time 1075344774
2004-01-29 03:52:54: No port for you!
2004-01-29 03:52:54: Trying server 13 at time 1075344774
2004-01-29 03:52:54: No port for you!
2004-01-29 03:52:54: Trying server 14 at time 1075344774
2004-01-29 03:52:54: No port for you!
2004-01-29 03:52:54: Trying server 15 at time 1075344774
2004-01-29 03:52:54: No port for you!
2004-01-29 03:52:54: Trying server 0 at time 1075344774
2004-01-29 03:52:54: match_acl(0, 234989760)
2004-01-29 03:52:54: Successful connect to server 0
2004-01-29 03:52:54: Client 192.168.1.14 has index 0 and server 0
2004-01-29 03:52:54: Looking for CRLFCRLF
2004-01-29 03:52:54: Looking for LFLF
2004-01-29 03:52:54: Looking for X-Forwarded-For
2004-01-29 03:52:54: Adding X-Forwarded-For
2004-01-29 03:53:48: match_acl(0, 234989760)
2004-01-29 03:53:48: Client 192.168.1.14 has index 0
2004-01-29 03:53:48: lookup_client returns 0
2004-01-29 03:53:48: Trying server 0 at time 1075344828
2004-01-29 03:53:48: match_acl(0, 234989760)
2004-01-29 03:53:48: Successful connect to server 0
2004-01-29 03:53:48: Client 192.168.1.14 has index 0 and server 0
2004-01-29 03:53:48: Looking for CRLFCRLF
2004-01-29 03:53:48: Looking for LFLF
2004-01-29 03:53:48: Looking for X-Forwarded-For
2004-01-29 03:54:20: match_acl(0, 167880896)
2004-01-29 03:54:20: Client 192.168.1.10 has index -1
2004-01-29 03:54:20: lookup_client returns -1
2004-01-29 03:54:20: Trying server 1 at time 1075344860
2004-01-29 03:54:20: No port for you!
2004-01-29 03:54:20: Trying server 2 at time 1075344860
2004-01-29 03:54:20: No port for you!
2004-01-29 03:54:20: Trying server 3 at time 1075344860
2004-01-29 03:54:20: No port for you!
2004-01-29 03:54:20: Trying server 4 at time 1075344860
2004-01-29 03:54:20: No port for you!
2004-01-29 03:54:20: Trying server 5 at time 1075344860
2004-01-29 03:54:20: No port for you!
2004-01-29 03:54:20: Trying server 6 at time 1075344860
2004-01-29 03:54:20: No port for you!
2004-01-29 03:54:20: Trying server 7 at time 1075344860
2004-01-29 03:54:20: No port for you!
2004-01-29 03:54:20: Trying server 8 at time 1075344860
2004-01-29 03:54:20: No port for you!
2004-01-29 03:54:20: Trying server 9 at time 1075344860
2004-01-29 03:54:20: No port for you!
2004-01-29 03:54:20: Trying server 10 at time 1075344860
2004-01-29 03:54:20: No port for you!
2004-01-29 03:54:20: Trying server 11 at time 1075344860
2004-01-29 03:54:20: No port for you!
2004-01-29 03:54:20: Trying server 12 at time 1075344860
2004-01-29 03:54:20: No port for you!
2004-01-29 03:54:20: Trying server 13 at time 1075344860
2004-01-29 03:54:20: No port for you!
2004-01-29 03:54:20: Trying server 14 at time 1075344860
2004-01-29 03:54:20: No port for you!
2004-01-29 03:54:20: Trying server 15 at time 1075344860
2004-01-29 03:54:20: No port for you!
2004-01-29 03:54:20: Trying server 0 at time 1075344860
2004-01-29 03:54:20: match_acl(0, 167880896)
2004-01-29 03:54:20: Successful connect to server 0
2004-01-29 03:54:20: Client 192.168.1.10 has index 1 and server 0
2004-01-29 03:54:20: Looking for CRLFCRLF
2004-01-29 03:54:20: Looking for LFLF
2004-01-29 03:54:20: Looking for X-Forwarded-For
<--END-->



This archive was generated by hypermail 2.1.2 : Thu Jan 29 2004 - 04:15:38 CET