源码地带 > 电路图 > 电子资料下载 > 网络 >ipsec vpn > 查看压缩包源码

ipsec vpn

源代码在线查看: gen-secondaries.sh

软件大小: 3514 K
上传用户: akk79600872
关键词: ipsec vpn
下载地址: 免注册下载 普通下载 VIP

相关代码

				#!/bin/sh								#				# This script is used to generate secondary lines for putting into the				# nic machine's named.conf. It uses the file "zones.txt" as input.				#				# This zone should contain lines like:				#   zonename.foo.bar.             {beet,carrot}				#				#								echo "// These lines generated with the gen-secondaries.sh script"								cat zones.txt | sed -e '/^#/d' -e '/^$/d' | while read zone master rest				do				    case $master in				    beet)   ip=192.1.2.129;;				    carrot) ip=192.1.2.130;;				    *) echo Unknown master: $master >&2; continue;;				    esac								    echo 'zone "'$zone'" { type slave;  masters { '$ip';}; file "/etc/bind/sec/db.'$zone'.signed.bak"; };'				done																																																																																																																																								#				# $Log: gen-secondaries.sh,v $				# Revision 1.1  2002/10/24 05:35:46  mcr				# 	file/script to generate secondary list.				#				#							

相关资源