src_vipa(8)

NAME

src_vipa - flexible source address selection

SYNOPSIS

src_vipa.sh program params

DESCRIPTION

src_vipa.sh starts program using params as parameters, if specified. The program will use source address selection
as described by the rules in the configuration file. The
default configuration file is /etc/src_vipa.conf. If the environment variable SRC_VIPA_CONFIG_FILE is defined, its content specifies the configuration file used for
src_vipa.

CONFIGURATION FILE

/etc/src_vipa.conf or, if the environment variable SRC_VIPA_CONFIG_FILE is defined, the file specified in SRC_VIPA_CONFIG_FILE contains lines that look like these three lines:
# comment
D1.D2.D3.D4/MASK S1.S2.S3.S4
.INADDR_ANY P1-P2 S1.S2.S3.S4
.INADDR_ANY P S1.S2.S3.S4
# Lines starting with # are ignored
D1.D2.D3.D4/MASK
(MASK is the nubmer of set bits in the subnet mask)
specifies a range of destination addresses. As soon
as a socket is opened and connected to these desti
nation addresses and the application does not do an
explicit bind to a source address, src_vipa does a
bind to S1.S2.S3.S4. Instead of IP addresses in dotted notation, hostnames can be used which will
be resolved using DNS.
.INADDR_ANY P1-P2 S1.S2.S3.S4
and
.INADDR_ANY P S1.S2.S3.S4
will cause bind calls with INADDR_ANY as local address to be intercepted, if the port the socket
is bound on is between P1 and P2 (including P1 and P2). In that case, INADDR_ANY will be replaced by S1.S2.S3.S4 (which can be 0.0.0.0). All appearance. That means, two .INADDR_ANY statements can be used to make bind be intercepted for every port except
for a certain range. This is useful e. g. for
rlogin which uses bind to bind to a local port but
uses INADDR_ANY as source address to use automatic source address selection.
The default behaviour for all ports is, that the
kind of bind calls will not be modified.

ENVIRONMENT

SRC_VIPA_CONFIG_FILE specifies an alternate configuration file. If not set, /etc/src_vipa.conf is used.

FILES

/etc/src_vipa.conf is the default configuration file for src_vipa.

SEE ALSO

The iproute2 package (command line utility ip) is able to
modify source address selection on a route basis in the
kernel FIB.

COPYRIGHT

Copyright 2001/2002 IBM Corporation

Published under the terms and conditions of the CPL (com
mon public license).

See the file LICENSE provided with the package for a copy
of the CPL.

AUTHOR

This man-page was written by Utz Bacher
<utz.bacher@de.ibm.com>
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout