Linux Training

Linux training for private, public & voluntary sector.

0793 572 8612

City LinUX sample scripts - vn-connect

NAME

vn-connect - start a virtual network connection to remote host.

SYNOPSIS

vn-connect [ -c <config_file> ] [ -d ] [ -v ] <hostid>

AVAILABILITY

vn-connect is a Bourne/Bash shell script which should work equally well on all versions of UNIX and Linux.

DESCRIPTION

The script is designed to be used in support of other utilities such as .IR rhost. The < hostid > is used as the key to look up the connection method and other parameters in the configuration file which are used to make the necessary vn-connection (usually a VPN) either directly to the target host or to a nominated gateway.

OPTIONS

-c <configuration_file> Use the named configuration file in preference to the default " /usr/local/etc/vn-connect.cf ".

-d    Set debug mode on. Debug mode uses the -x    mode to echo each command to standard error before it is executed.

-v    Sets verbose mode. Significant actions are reported to standard error .

EXAMPLES

vn-connect la1 

Look up "la1" in the configuration file. If found and a VPN is required use the other parameters found in the "la1" stanza to start a virtual network connection the host or the indicated gateway. Set the route if required.

FILES

vn-connect.cf.

BUGS

The script has very little input error checking.

SEE ALSO

rhost.

AUTHOR

Clifford W Fulford, City Linux. Contact fulford@fulford.net or +44 (0)709 229 5385.


The layout and associated style sheets for this page are taken from the World Wide Web Consortium and used here under the W3C software licence.