summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/relayd.conf.5
AgeCommit message (Collapse)Author
2009-06-02- minor tweaksJason McIntyre
- remove unneccessary -compact from a list - remove unneccessary Xo/Xc before it gets copied all over the place
2009-06-02make it clear that setting the global timeout late will mess things up.Pierre-Yves Ritschard
2009-06-02note that order is important in the file regarding global options at this ↵Janne Johansson
time. ok pyr@
2009-04-24Allow UDP and/or TCP redirections instead of just TCP.Reyk Floeter
Thanks to Marek Grzybowski for feedback and testing. ok jmc@ (manpage bits)
2009-04-16fix a few more typos found by spell(1); rectify a double "with" pointed outIgor Sobrado
by jmc@ while looking at this diff. ok jmc@, reyk@ (for the hostapd part)
2009-04-02add support to specify a ca file (eg. /etc/ssl/cert.pem) to verify sslReyk Floeter
server certificates when connecting as an SSL client from relays. it works so far, but needs more testing and is currently lacking support for certificate revocation (like CRL or OCSP). the file ssl_privsep.c is extended to implement more code that should be in openssl to allow loading the ca from chroot...
2009-04-01Add support for client-side SSL connections from relays. relayd canReyk Floeter
now sit between two SSL connections (Oitm - OpenBSD-in-the-middle), accept SSL connections and forward to TCP, accept TCP connections and forward to SSL, and do TCP to TCP of course. This was tested by some people a while ago.
2009-02-16relayd complains about a table called "backup", so change it toJason McIntyre
fallback, as used in /etc/relayd.conf; from Patrik Lundin
2008-12-05change the way relayd reports check results: instead of logging anReyk Floeter
arbitrary string in debugging mode, it will store an error code (HCE_*) for each host. the error code can be translated to a string (in log.c) for debugging but it will also be passed to relayctl via the control socket. from a user point of view, this will print a human-readable error message in the "relayctl show hosts" output if a host is down because the check failed. the relayctl(8) manpage includes detailed explanations of the error messages including mitigations for the most-common problems. ok jmc@ (manpages) ok phessler@
2008-11-09typo fixed (overriden -> overridden)Tobias Stoeckmann
ok espie, jmc
2008-10-05tweak previous;Jason McIntyre
2008-09-29Change parsing of comments in external rule files. The hash mark mayReyk Floeter
appear in URLs (eg. /index.html#anchor), so only allow full-line comments indicated by a hash mark # at the beginning of a line.
2008-09-29allow to load expect, filter, log, and remove keys from external filesReyk Floeter
just containing on key per line. this allows easier use of URL white/blacklists from external sources.
2008-09-29allow to listen on a port range for redirections. this fixesReyk Floeter
stickyness with web applications that cannot do the clustering on their own and require stickyness with HTTP to HTTPS migration. this is required in many cases; it is a true fact that we cannot always fix the backend application in the real world. Tested and requested by many
2008-08-08add a variable $SERVER_NAME which is "OpenBSD relayd" by default.Reyk Floeter
2008-07-25doc fix; from David HiggsJason McIntyre
2008-07-22Add dynamic IPv6-to-IPv4 and IPv4-to-IPv6 translation inspired byReyk Floeter
faithd(8) by doing a similar mapping of IPv4/6 addresses with relayd(8) and pf(4) redirections without the need of the faith(4) interface. The trick works in both directions, it can accept IPv6 connections and relay them to IPv4 hosts by extracting the last 4 octets from the IPv6 destination (like faithd(8)), and it can accept IPv4 connections and relay them to IPv6 hosts by prepending the 4 octets of the original IPv4 destination to a configured IPv6 prefix. An access list is not needed because the classification is done in pf.conf(5). It helps to get more faith in relayd. manpage bits ok jmc@ yes, sounds good todd@
2008-07-19minor wording tweaks;Jason McIntyre
2008-07-19If the new 'parent' keyword is specified for a host in a table,Reyk Floeter
inherit the state from another host with the specified Id; no additional check will be for the inheriting host. This helps in scenarios with lots of IP aliases that all point to the same service on the same host (like web hosting with many SSL domains). discussed with pyr, tested in different setups
2008-06-11add support for "transparent" forwarding in relays: normally the l7Reyk Floeter
relay will connect to the target host with its own ip address, but this mode will let it use the address of the client that is connecting from the other side. for example, there is no need to add the X-Forwarded-For HTTP headers for internal webservers in this mode anymore since they magically see the remote client ip address in the connection. it also allows to build fully-transparent ssl encapsulation for tcp sessions and many other things... based on an initial idea from dlg@ and pascoe@ (dlg's talk at opencon) using the new BINDANY and divert-reply interfaces from markus@ (since n2k8) ok markus@ pyr@
2008-06-11tweak the "route to" text;Jason McIntyre
2008-06-10set the inactivity timeout of redirections to a shorter timeout of 600Reyk Floeter
seconds by default (pf's default is 86400s), they can be cranked with the "session timeout" directive and it is consistent to relay session timeouts. also remove the hack to modify the closing timeout because pf's sloppy state handling is taking care about half connection closing now.
2008-06-10use sloppy pf state keeping for routed sessions (direct server return)Reyk Floeter
where we only see the client side of the TCP session; this removes the timeout limitations that we had before. document "route to" in the manpage since it is fully working now.
2008-05-07add an alternative "route to" mode to relayd redirections which mapsReyk Floeter
to pf route-to instead of the default rdr. it is a first steps towards support for "direct server return" (dsr), an asynchronous mode where the load balanced servers send the replies to a different gateway like a l3 switch/router to handle higher amounts of return traffic. because the state handling in pf isn't optimal for this case yet, it just sees half of the TCP connection, the sessions are forced to time out after fixed number of seconds. discussed with many, thought about in the onsen
2008-05-06tweak previous;Jason McIntyre
2008-05-06the manpage mentioned "timeout" in relay sections, while the grammarReyk Floeter
expected the keywords "forward timeout". rename it to "session timeout" and sync the documentation with reality.
2008-05-06the message digest http check does not work on binary content, add manpageReyk Floeter
clarification. From bsd at openbsd dot rutgers dot edu, closes pr5801 ok pyr@
2008-03-03tweak previous;Jason McIntyre
2008-03-03log a different notification message when the tcp check times out.Reyk Floeter
also adjust the documentation a little bit to decrease confusion about the check timeout. From pyr@ ok deraadt@
2008-02-11tweak previous;Jason McIntyre
2008-02-11Marry relayd with snmpd using new "send trap" option: Request to sendReyk Floeter
a SNMP trap when the state of a host changes. relayd(8) will try to (re-)connect to snmpd(8) and request it to send a trap to the registered trap receivers, see snmpd.conf(5) for more information about the configuration. ok pyr@ thib@
2007-12-12various improvements for the relay pages; ok reykJason McIntyre
2007-12-09- kill trailing whitespaceJason McIntyre
- kill useless .Pp
2007-12-08forgotten service -> redirectionPierre-Yves Ritschard
ok reyk@
2007-12-08make the generic handler for TCP-based protocols the default (allowsReyk Floeter
to use "protocol foo" without defining a type).
2007-12-08some changes to the relayd.conf configuration language and grammar.Reyk Floeter
the tables will look more like pf tables, it is easier to re-use tables with different options, "services" will become "redirections" (they refer to rdr pf rules), sync configuration directives of redirect (l3, ex-service) relay (l7) sections (for example "virtual host" will become "listen on"), all target definitions will start with "forward to", etc. pp. (see relay.conf(5) and etc/relayd.conf) discussed with pyr and deraadt ok pyr@
2007-12-07adjust the manpages to use "Relay daemon"Reyk Floeter
2007-12-07partial update of the man pages to new relayd nameTheo de Raadt
2007-11-26allow to add labels to protocol actions, they will be printed in httpReyk Floeter
error pages and can be used to refer to additional information. ok pyr@
2007-11-25"canonicalized hostname" instead of just "hostname" for the url actionReyk Floeter
2007-11-24new sentence, new line;Jason McIntyre
2007-11-24extend the url lookup algorithm to match the full URL and differentReyk Floeter
possible suffix/prefix combinations by stripping subdomains, path components, and the query args. ok and tested by gilles@
2007-11-23- use either "host name" or "hostname", i decided to use "hostname" everywhereReyk Floeter
- a URL instead of an URL (a "you-are-el") suggested by jmc@
2007-11-23re-implement the "mark" action and document it in the manpage:Reyk Floeter
it is possible to attach a mark to a session based on matching an entity (header, url, cookie, ...) and add conditional action for this mark. it works a bit like the tag/tagged keywords in pf, but i decided to pick a different name to avoid confusion. ok pyr@ gilles@
2007-11-22add (new) "url" protocol action, this can be used to match/filter URLReyk Floeter
suffix/prefix expressions like "example.com/index.html?args". a digest mode allows to match against anonymized SHA1/MD5 digests of suffix/prefix expressions.
2007-11-21extend action grammar with "filter value" and "expect value" as aReyk Floeter
short form for "filter * from value" or "expect * from value".
2007-11-21tweak previous;Jason McIntyre
2007-11-21rename the "url" filter action to "query" to use the correct term.Reyk Floeter
please update your hoststated.conf configurations. also add more examples to the manpage. alright pyr@
2007-11-21allow the http digest type to be either SHA1 or MD5 determined by theReyk Floeter
digest string length; it is compatible to any existing SHA1-only configurations. ok pyr@ gilles@
2007-11-21document the fact that port can be specified in table statements insidePierre-Yves Ritschard
service sections. ok reyk@