1 131eca50 2015-07-27 sobrado .\" $OpenBSD: relayd.8,v 1.25 2015/07/27 14:50:58 sobrado Exp $
3 41042ecc 2006-12-16 reyk .\" Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
5 41042ecc 2006-12-16 reyk .\" Permission to use, copy, modify, and distribute this software for any
6 41042ecc 2006-12-16 reyk .\" purpose with or without fee is hereby granted, provided that the above
7 41042ecc 2006-12-16 reyk .\" copyright notice and this permission notice appear in all copies.
9 41042ecc 2006-12-16 reyk .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 41042ecc 2006-12-16 reyk .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 41042ecc 2006-12-16 reyk .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 41042ecc 2006-12-16 reyk .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 41042ecc 2006-12-16 reyk .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 41042ecc 2006-12-16 reyk .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 41042ecc 2006-12-16 reyk .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 131eca50 2015-07-27 sobrado .Dd $Mdocdate: July 27 2015 $
18 0cf54f77 2007-12-07 deraadt .Dt RELAYD 8
21 0cf54f77 2007-12-07 deraadt .Nm relayd
22 78f03736 2007-12-12 jmc .Nd relay daemon
23 41042ecc 2006-12-16 reyk .Sh SYNOPSIS
26 b7fd0fcc 2010-05-24 jmc .Op Fl D Ar macro Ns = Ns Ar value
27 41042ecc 2006-12-16 reyk .Op Fl f Ar file
28 41042ecc 2006-12-16 reyk .Sh DESCRIPTION
30 9c500ea4 2007-12-08 reyk is a daemon to relay and dynamically redirect incoming connections to
31 9c500ea4 2007-12-08 reyk a target host.
32 9c500ea4 2007-12-08 reyk Its main purposes are to run as a load-balancer, application layer
33 9c500ea4 2007-12-08 reyk gateway, or transparent proxy.
34 9c500ea4 2007-12-08 reyk The daemon is able to monitor groups of hosts for availability, which
35 9c500ea4 2007-12-08 reyk is determined by checking for a specific service common to a host
37 9c500ea4 2007-12-08 reyk When availability is confirmed,
38 e2ea6401 2009-11-22 tobias layer 3 and/or layer 7 forwarding services are set up by
41 d28eba6a 2007-12-08 reyk Layer 3 redirection happens at the packet level; to configure
44 f92b16fa 2007-09-28 pyr communicates with
48 f92b16fa 2007-09-28 pyr to properly set up
50 05fcbce7 2009-09-01 reyk rules, the following line is required in the filter section of
51 5d8d93a9 2006-12-18 jmc .Xr pf.conf 5 :
52 5d8d93a9 2006-12-18 jmc .Bd -literal -offset indent
53 2ac5660d 2008-05-07 reyk anchor "relayd/*"
56 d28eba6a 2007-12-08 reyk Layer 7 relaying happens at the application level and is
60 9c500ea4 2007-12-08 reyk Various application level filtering and protocol-specific
61 9c500ea4 2007-12-08 reyk load-balancing options are available for relays.
64 f92b16fa 2007-09-28 pyr works in terms of the following
65 f92b16fa 2007-09-28 pyr .Em entities :
66 5c777c8d 2007-12-08 pyr relays, protocols, redirections, and tables.
69 78f03736 2007-12-12 jmc represents a layer 7 load-balancing instance.
70 f92b16fa 2007-09-28 pyr Each instance translates to a listening TCP or UDP port.
73 78f03736 2007-12-12 jmc defines which actions, if any, are taken on the
74 f92b16fa 2007-09-28 pyr packet payload as data crosses a relay.
76 5c777c8d 2007-12-08 pyr .Em redirection
77 78f03736 2007-12-12 jmc represents a layer 3 load-balancing instance.
78 f92b16fa 2007-09-28 pyr Each instance translates to a
80 05fcbce7 2009-09-01 reyk rdr-to rule being added.
83 f92b16fa 2007-09-28 pyr represents a group of hosts which can be checked for
84 f92b16fa 2007-09-28 pyr availability using the same method.
85 f92b16fa 2007-09-28 pyr Each table contains at least one host.
86 78f03736 2007-12-12 jmc If a table is used in a layer 3 load-balancing instance, it
87 f92b16fa 2007-09-28 pyr will be mapped to a
89 78f03736 2007-12-12 jmc table containing only those hosts which are up.
91 f92b16fa 2007-09-28 pyr All these entities can be configured in
92 78f03736 2007-12-12 jmc .Xr relayd.conf 5 ,
94 0cf54f77 2007-12-07 deraadt .Xr relayctl 8
95 78f03736 2007-12-12 jmc can be used to alter or report on the status of each entity.
97 41042ecc 2006-12-16 reyk The options are as follows:
98 41042ecc 2006-12-16 reyk .Bl -tag -width Ds
99 aca4f638 2007-02-07 reyk .It Fl D Ar macro Ns = Ns Ar value
102 aca4f638 2007-02-07 reyk to be set to
104 aca4f638 2007-02-07 reyk on the command line.
105 aca4f638 2007-02-07 reyk Overrides the definition of
107 aca4f638 2007-02-07 reyk in the configuration file.
109 41042ecc 2006-12-16 reyk Do not daemonize.
110 5d8d93a9 2006-12-18 jmc If this option is specified,
112 41042ecc 2006-12-16 reyk will run in the foreground and log to
113 41042ecc 2006-12-16 reyk .Em stderr .
114 41042ecc 2006-12-16 reyk .It Fl f Ar file
115 5d8d93a9 2006-12-18 jmc Specify an alternative configuration file.
116 5d8d93a9 2006-12-18 jmc The default is
117 0cf54f77 2007-12-07 deraadt .Pa /etc/relayd.conf .
119 41042ecc 2006-12-16 reyk Configtest mode.
120 41042ecc 2006-12-16 reyk Only check the configuration file for validity.
122 41042ecc 2006-12-16 reyk Produce more verbose output.
125 0cf54f77 2007-12-07 deraadt .Bl -tag -width "/var/run/relayd.sockXX" -compact
126 131eca50 2015-07-27 sobrado .It Pa /etc/relayd.conf
127 78f03736 2007-12-12 jmc Default configuration file.
128 131eca50 2015-07-27 sobrado .It Pa /var/run/relayd.sock
129 2e9e61e3 2009-10-22 sobrado .Ux Ns -domain
130 2e9e61e3 2009-10-22 sobrado socket used for communication with
131 0cf54f77 2007-12-07 deraadt .Xr relayctl 8 .
133 41042ecc 2006-12-16 reyk .Sh SEE ALSO
134 0cf54f77 2007-12-07 deraadt .Xr relayd.conf 5 ,
135 0cf54f77 2007-12-07 deraadt .Xr relayctl 8
136 30640247 2007-02-22 reyk .Sh HISTORY
139 d7758aba 2007-12-08 reyk program, formerly known as
140 d7758aba 2007-12-08 reyk .Ic hoststated ,
141 d7758aba 2007-12-08 reyk first appeared in
143 d7758aba 2007-12-08 reyk It was renamed to
147 30640247 2007-02-22 reyk .Sh AUTHORS
148 6642f2e2 2007-02-22 jmc .An -nosplit
151 30640247 2007-02-22 reyk program was written by
152 1b7259ca 2013-07-16 schwarze .An Pierre-Yves Ritschard Aq Mt pyr@openbsd.org
154 1b7259ca 2013-07-16 schwarze .An Reyk Floeter Aq Mt reyk@openbsd.org .