openswan

源代码在线查看: roadinit.sh

软件大小: 3582 K
上传用户: flp123456
关键词: openswan
下载地址: 免注册下载 普通下载 VIP

相关代码

				#!/bin/sh								: ==== start ====								ifconfig eth0 inet 192.1.3.211				route delete -net default 				route add -net default gw 192.1.3.254								netstat -rne								named				sleep 2				/testing/pluto/bin/look-for-txt roadbad.uml.freeswan.org AQNxbOBmD								mkdir -p /tmp/oe-road-03				cp /testing/pluto/oe-road-03/road.conf  /tmp/oe-road-03/ipsec.conf				cp /etc/ipsec.secrets                   /tmp/oe-road-03								mkdir -p /tmp/oe-road-03/ipsec.d/policies				cp /etc/ipsec.d/policies/* /tmp/oe-road-03/ipsec.d/policies				: make sure that target is in policy private!				echo 192.0.2.2/32	>>/tmp/oe-road-03/ipsec.d/policies/private								IPSEC_CONFS=/tmp/oe-road-03 export IPSEC_CONFS								ipsec setup start								/testing/pluto/oe-road-01/policy-wait.sh								echo done															

相关资源