1 .\" $OpenBSD: relayd.8,v 1.25 2015/07/27 14:50:58 sobrado Exp $
3 .\" Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .Dd $Mdocdate: July 27 2015 $
26 .Op Fl D Ar macro Ns = Ns Ar value
30 is a daemon to relay and dynamically redirect incoming connections to
32 Its main purposes are to run as a load-balancer, application layer
33 gateway, or transparent proxy.
34 The daemon is able to monitor groups of hosts for availability, which
35 is determined by checking for a specific service common to a host
37 When availability is confirmed,
38 layer 3 and/or layer 7 forwarding services are set up by
41 Layer 3 redirection happens at the packet level; to configure
50 rules, the following line is required in the filter section of
52 .Bd -literal -offset indent
56 Layer 7 relaying happens at the application level and is
60 Various application level filtering and protocol-specific
61 load-balancing options are available for relays.
64 works in terms of the following
66 relays, protocols, redirections, and tables.
69 represents a layer 7 load-balancing instance.
70 Each instance translates to a listening TCP or UDP port.
73 defines which actions, if any, are taken on the
74 packet payload as data crosses a relay.
77 represents a layer 3 load-balancing instance.
78 Each instance translates to a
80 rdr-to rule being added.
83 represents a group of hosts which can be checked for
84 availability using the same method.
85 Each table contains at least one host.
86 If a table is used in a layer 3 load-balancing instance, it
89 table containing only those hosts which are up.
91 All these entities can be configured in
95 can be used to alter or report on the status of each entity.
97 The options are as follows:
99 .It Fl D Ar macro Ns = Ns Ar value
105 Overrides the definition of
107 in the configuration file.
110 If this option is specified,
112 will run in the foreground and log to
115 Specify an alternative configuration file.
117 .Pa /etc/relayd.conf .
120 Only check the configuration file for validity.
122 Produce more verbose output.
125 .Bl -tag -width "/var/run/relayd.sockXX" -compact
126 .It Pa /etc/relayd.conf
127 Default configuration file.
128 .It Pa /var/run/relayd.sock
130 socket used for communication with
139 program, formerly known as
151 program was written by
152 .An Pierre-Yves Ritschard Aq Mt pyr@openbsd.org
154 .An Reyk Floeter Aq Mt reyk@openbsd.org .