login
Header Space

 
 

hoststated - some questions

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Open BSD <misc@...>
Date: Wednesday, December 5, 2007 - 6:25 pm

I am working with hoststated and trying to figure out if it will work  
for what I want to do.   I have some questions that I hope people can  
answer for me.

kern.version=OpenBSD 4.2-stable (GENERIC) #0: Sun Dec  2 13:43:16 GMT  
2007
     root@build.amotken.com:/usr/src/sys/arch/i386/compile/GENERIC


- where does it log?  Even running with -dvv I don't see output that  
I am expecting, which could simply be I'm expecting the wrong thing.   
For example

# from configuration file
protocol httpcustom {
         protocol http
              header append "$REMOTE_ADDR" to "X-Forwarded-For" log
              header append "$SERVER_ADDR:$SERVER_PORT" to "X- 
Forwarded-By" log
	        tcp { nodelay, sack, socket buffer 65536, backlog 128 }
}


Results in the following output when run with -dvv

protocol 0: name httpcustom
         flags: 0x0004
         type: http
                 request append "$SERVER_ADDR:$SERVER_PORT" to "X- 
Forwarded-By"
                 request append "$REMOTE_ADDR" to "X-Forwarded-For"


Note the log action is gone.  When I hit the service with a browser  
and watch the tcpdump on the web server, the headers are added,  
great.  But I don't see any evidence of it from hoststated.   I'm  
trying to see if/how I would have hoststated go about looking at the  
Host: header in HTTP.   Figured I'd start with the example and work  
from there.  I'm wondering if hoststated can replace squid in front  
of a couple of name based virtual http servers, thus the need to get  
at the host header to find/lookup the destination.


Also hoststatectl reload does not work for me.

root@soekris root# hoststatectl reload
command failed

Expected behavior?




Thank you,
Chad
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
hoststated - some questions, Chad M Stewart, (Wed Dec 5, 6:25 pm)
Re: hoststated - some questions, Pierre-Yves Ritschard, (Thu Dec 6, 4:28 am)
speck-geostationary