_updown_x509.in

来自「ipsec vpn」· IN 代码 · 共 51 行

IN
51
字号
#! /bin/sh## customized updown script## logging of VPN connections## tag put in front of each log entry:TAG=vpn## syslog facility and priority used:FAC_PRIO=local0.notice## to create a special vpn logging file, put the following line into# the syslog configuration file /etc/syslog.conf:## local0.notice                   -/var/log/vpn## are there port numbers?if [ "$PLUTO_MY_PORT" != 0 ]then	S_MY_PORT="--sport $PLUTO_MY_PORT"	D_MY_PORT="--dport $PLUTO_MY_PORT"fiif [ "$PLUTO_PEER_PORT" != 0 ]then	S_PEER_PORT="--sport $PLUTO_PEER_PORT"	D_PEER_PORT="--dport $PLUTO_PEER_PORT"fi# CAUTION:  Installing a new version of Openswan will install a new# copy of this script, wiping out any custom changes you make.  If# you need changes, make a copy of this under another name, and customize# that, and use the (left/right)updown parameters in ipsec.conf to make# Openswan use yours instead of this default one.LC_ALL=C export LC_ALL# things that this script gets (from ipsec_pluto(8) man page)###      PLUTO_VERSION#              indicates  what  version of this interface is being#              used.  This document describes version  1.1.   This#              is upwardly compatible with version 1.0.##       PLUTO_VERB#              specifies the name of the operation to be performed#              (prepare-host, prepare-client, up-host, up-client,#              down-host, or down-client).  If the address family#              for security gateway to security gateway communica

⌨️ 快捷键说明

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