⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dopluto

📁 This a good VPN source
💻
字号:
#!/bin/sh# fill in most pluto flags for debugging# Only argument is east or west# Actually, extra args are passed on to pluto, so --nofork might be useful## RCSID $Id: dopluto,v 1.14 2004/10/17 23:59:57 mcr Exp $. CONFIGcase "$1" ineast) INTERFACE=$EASTIF ; MYPLUTO=${EASTPLUTO:-$PLUTO} ; MYWHACK=${EASTWHACK:-$WHACK} ;;west) INTERFACE=$WESTIF ; MYPLUTO=${WESTPLUTO:-$PLUTO} ; MYWHACK=${WESTWHACK:-$WHACK} ;;north) INTERFACE=$NORTHIF ; MYPLUTO=${NORTHPLUTO:-$PLUTO} ; MYWHACK=${NORTHWHACK:-$WHACK} ;;south) INTERFACE=$SOUTHIF ; MYPLUTO=${SOUTHPLUTO:-$PLUTO} ; MYWHACK=${SOUTHWHACK:-$WHACK} ;;*) echo "$0: \"east\" or \"west\" expected" >&2   exit 1;   ;;esacSIDE=$1shift# the purpose of this function is to hide differences that don't count# from the log: path to pluto and LWDNSQOPTIONfunction performpluto() {	mkdir -p pluto/$SIDE && cd pluto/$SIDE	ln -s -f ../../ipsec.secrets .	ln -s -f ${TESTING}/pluto/ipsec.d/west .	ln -s -f ${TESTING}/pluto/ipsec.d/east .	echo "PLUTO" "$@"	$MYPLUTO ${LWDNSQOPTION:-} "$@" || echo RC: $?	}LOCK=pluto.$SIDE.pidif [ -f $LOCK ]then	$MYWHACK --ctlbase pluto.$SIDE --shutdown	rm -f $LOCKfi# make sure it is set to somethingHELPERS=${HELPERS-}performpluto \	--ctlbase pluto.$SIDE \	--interface $INTERFACE \	--ikeport $IKEPORT $HELPERS \	--secretsfile `pwd`/ipsec.secrets/$SIDE \	--ipsecdir `pwd`/$SIDE \	--noklips --uniqueids --stderrlog \	--debug-all --debug-private \	"$@"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -