This commit is contained in:
Mario Fetka 2017-04-22 12:14:51 +02:00
parent 9a2ad0d01a
commit 651d338340
3 changed files with 46 additions and 5 deletions

View File

@ -52,4 +52,10 @@ arrays correctly when reallocating memory to
accommodate more connections. Thanks to accommodate more connections. Thanks to
Sam Hocevar. Sam Hocevar.
Version 0.62+syslog: added logging to syslog
support (SuSE)
Version 0.62+syslog+bind: added optional
sourceaddress column in configuration file to bind
to a specific local address for outgoing connections
(Lutz Pressler, <lp@SerNet.DE>)

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
rinetd (0.62.1sam-1) unstable; urgency=high rinetd (0.62.1sam-2) unstable; urgency=high
* New upstream release. * New upstream release.
* This release fixes memory initialisation issues causing erratic * This release fixes memory initialisation issues causing erratic

View File

@ -12,7 +12,7 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm /usr/sbin/rinetd .Nm /usr/sbin/rinetd
.Sh VERSION .Sh VERSION
Version 0.62, 04/14/2003. Version 0.62+syslog+bind, 04/14/2003.
.Sh DESCRIPTION .Sh DESCRIPTION
.Nm rinetd .Nm rinetd
redirects TCP connections from one IP address and port to another. rinetd redirects TCP connections from one IP address and port to another. rinetd
@ -34,7 +34,7 @@ another file is specified using the -c command line option.
Most entries in the configuration file are forwarding rules. The Most entries in the configuration file are forwarding rules. The
format of a forwarding rule is as follows: format of a forwarding rule is as follows:
.Pp .Pp
bindaddress bindport connectaddress connectport bindaddress bindport connectaddress connectport [sourceaddress]
.Pp .Pp
For example: For example:
.Pp .Pp
@ -64,6 +64,9 @@ service names are defined in the file /etc/services.
Both IP addresses and hostnames are accepted for Both IP addresses and hostnames are accepted for
bindaddress and connectaddress. bindaddress and connectaddress.
.Pp .Pp
The optional sourceaddress can be used to bind to a specific local
address for the outgoing connection.
.Pp
.Sh ALLOW AND DENY RULES .Sh ALLOW AND DENY RULES
Configuration files can also contain allow and deny rules. Configuration files can also contain allow and deny rules.
.Pp .Pp
@ -111,8 +114,9 @@ is prohibitive. Since rinetd is a single process server, all other
connections would be forced to pause during the address lookup. connections would be forced to pause during the address lookup.
.Pp .Pp
.Sh LOGGING .Sh LOGGING
rinetd is able to produce a log file in either of two formats: rinetd is able to produce a log output in three ways:
tab-delimited and web server-style "common log format." tab-delimited , web server-style "common log format." both are file-based
or as syslog output.
.Pp .Pp
By default, rinetd does not produce a log file. To activate logging, add By default, rinetd does not produce a log file. To activate logging, add
the following line to the configuration file: the following line to the configuration file:
@ -146,6 +150,34 @@ To activate web server-style "common log format" logging,
add the following line to the configuration file: add the following line to the configuration file:
.Pp .Pp
logcommon logcommon
to activate syslog output enter the following line to the
configuration file:
syslog facility priority
Example1:
syslog local0 info
in this case all output is logged to the destination configured
in your syslogd config for facility local0 and priority info
Example2:
syslog
in this case everything goes to daemon info
Example3:
syslog wrongfacility wrongpriority
logging to default: daemon info
.Pp
If configured, the local source address is given in square brackets
after the "listening host" entry.
.Sh COMMAND LINE OPTIONS .Sh COMMAND LINE OPTIONS
The -c command line option is used to specify an alternate The -c command line option is used to specify an alternate
configuration file. configuration file.
@ -187,6 +219,9 @@ IS EXPRESSED OR IMPLIED. USE THIS SOFTWARE AT YOUR OWN RISK.
.Sh CONTACT INFORMATION .Sh CONTACT INFORMATION
See http://www.boutell.com/rinetd/ for the latest release. See http://www.boutell.com/rinetd/ for the latest release.
Thomas Boutell can be reached by email: boutell@boutell.com Thomas Boutell can be reached by email: boutell@boutell.com
.Pp
Logging to syslog added by SuSE.
Sourceaddress extension added by Lutz Pressler <lp@SerNet.DE>.
.Sh THANKS .Sh THANKS
Thanks are due to Bill Davidsen, Libor Pechachek, Sascha Ziemann, the Thanks are due to Bill Davidsen, Libor Pechachek, Sascha Ziemann, the
Apache Group, and many others who have contributed advice Apache Group, and many others who have contributed advice