File: tice

package info (click to toggle)
openswan 1%3A2.4.6%2Bdfsg.2-1.1%2Betch2
  • links: PTS
  • area: main
  • in suites: etch
  • size: 25,000 kB
  • ctags: 16,877
  • sloc: ansic: 121,112; sh: 19,782; xml: 9,699; asm: 4,422; perl: 4,087; makefile: 3,367; tcl: 713; exp: 657; yacc: 396; pascal: 328; lex: 289; sed: 265; awk: 124; lisp: 3
file content (37 lines) | stat: -rwxr-xr-x 1,013 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
#
# RCSID $Id: tice,v 1.4 2002/04/24 07:36:18 mcr Exp $
#
# This script is OBSOLETE -- rgb, May 6th, 1998

tncfg attach ipsec0 eth0
ifconfig ipsec0 10.2.0.139 netmask 255.255.0.0
route add -net 10.1.0.0 netmask 255.255.0.0 dev ipsec0

# forward path

../utils/addrt 10.3.0.0 255.255.0.0 10.1.0.0 255.255.0.0 10.2.0.143 113
echo sleeping after addrt
sleep 1

../utils/setsa 10.2.0.143 113 ip4 10.2.0.139 10.2.0.143
../utils/setsa 10.2.0.143 115 esp des-cbc 66306630 6630663066303132
../utils/setsa 10.2.0.143 116 ah md5 66306630663031326630663066303132

../utils/spigrp 10.2.0.143 113 10.2.0.143 115 10.2.0.143 116

# return path

../utils/setsa 10.2.0.139 105 esp des-cbc 66306630 6630663066303132
../utils/setsa 10.2.0.139 106 ah md5 66306630663031326630663066303132

#
# $Log: tice,v $
# Revision 1.4  2002/04/24 07:36:18  mcr
# Moved from ./klips/test/ji/tice,v
#
# Revision 1.3  1999/04/06 04:54:35  rgb
# Fix/Add RCSID Id: and Log: bits to make PHMDs happy.  This includes
# patch shell fixes.
#
#