Linux Online Firewall and Proxy Server HOWTO APPENDEX B An VPN RC Script for RedHat




Linux Online - Firewall and Proxy Server HOWTO: APPENDEX B - An VPN RC Script for RedHat







































Firewall and Proxy Server HOWTO: APPENDEX B - An VPN RC
Script for RedHatNext Previous
Contents



16. APPENDEX B - An VPN RC Script for RedHat

#!/bin/sh
#
# vpnd This shell script takes care of starting and stopping
# vpnd (Vertual Privage Network connections).
#
# chkconfig: - 96 96
# description: vpnd
#

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -f /usr/sbin/vpnd ] || exit 0

[ -f /etc/vpnd.conf ] || exit 0

RETVAL=0

# See how we were called.
case "$1" in
start)
# Start daemons.
echo -n "Starting vpnd: "
daemon vpnd
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/vpnd
echo
;;
stop)
# Stop daemons.
echo -n "Shutting down vpnd: "
killproc vpnd
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/vpnd
echo
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: vpnd {start|stop|restart}"
exit 1
esac

exit $RETVAL




Next Previous
Contents










URLWatch: For
notice when this page changes, fill in your email address.
Maintained by: Webmaster, Linux Online Inc.Last
modified: 14-Mar-2000 09:50AM.Views since 16-Aug-2000: 603.
Material copyright Linux
Documentation Project.Design and compilation copyright ©1994-2000
Linux Online
Inc.URLWatch provided by URLWatch Services.Internet services provided by AiNET.All rights
reserved.


Wyszukiwarka

Podobne podstrony:
Linux Online Firewall and Proxy Server HOWTO APPENDEX A Example Scripts
Linux Online Firewall and Proxy Server HOWTO Setting up the Linux Filtering Firewall
Linux Online Firewall and Proxy Server HOWTO Firewall Architecture
Linux Online Firewall and Proxy Server HOWTO Installing the TIS Proxy server
Linux Online Firewall and Proxy Server HOWTO Introduction
Linux Online Firewall and Proxy Server HOWTO Software requirements
Linux Online Firewall and Proxy Server HOWTO Making Management Easy
Linux Online Firewall and Proxy Server HOWTO Defeating a Proxy Firewall
Linux Online Firewall and Proxy Server HOWTO The SOCKS Proxy Server
Linux Online Firewall and Proxy Server HOWTO Installing a Transparent SQUID proxy
Linux Online Firewall and Proxy Server HOWTO Understanding Firewalls
Linux Online Firewall and Proxy Server HOWTO IP filtering setup (IPCHAINS)
Linux Online Firewall and Proxy Server HOWTO Preparing the Linux system
Linux Online Firewall and Proxy Server HOWTO IP filtering setup (IPFWADM)
Linux Online Firewall and Proxy Server HOWTO Advanced Configurations
Linux Online Firewall and Proxy Server HOWTO
Linux Online Linux IPCHAINS HOWTO Appendix Differences between ipchains and ipfwadm
Linux IPCHAINS HOWTO Appendix Differences between ipchains and ipfwadm
Linux Online Linux IPCHAINS HOWTO Appendix Using the ipfwadm wrapper script

więcej podobnych podstron