3 # RCSID $Id: tf,v 1.3 1999/04/06 04:54:35 rgb Exp $
5 # This script is OBSOLETE -- rgb, May 6th, 1998
6 # usage: ./addrt src srcmask dst dstmask edst spi
7 # usage: ./seti4 dst spi alg osrc odst
8 # usage: ./setah dst spi alg algdata
9 # usage: ./setesp dst spi alg iv key
13 tncfg attach ipsec0 eth0
14 ifconfig ipsec0 10.2.0.143 netmask 255.255.0.0
15 route add -net 10.3.0.0 netmask 255.255.0.0 dev ipsec0
19 ../utils/addrt 10.1.0.0 255.255.0.0 10.3.0.0 255.255.0.0 10.2.0.139 103
20 echo sleeping after addrt
23 ../utils/setsa 10.2.0.139 103 ip4 10.2.0.143 10.2.0.139
24 ../utils/setsa 10.2.0.139 105 esp des-md5 r 6630663066303132
26 ../utils/spigrp 10.2.0.139 103 10.2.0.139 105
28 ../utils/setsa 10.2.0.143 114 ah md5 66306630663031326630663066303132
29 ../utils/setsa 10.2.0.143 115 esp 3des-md5 i 1000000000000001 6630663066303132
30 ../utils/setsa 10.2.0.143 116 ah hmac-md5 66306630663031326630663066303132
31 ../utils/setsa 10.2.0.143 117 ah hmac-sha1 66306630663031326630663066303132
32 ../utils/setsa 10.2.0.143 118 esp des-md5 i 1000000000000001 6630663066303132
33 ../utils/setsa 10.2.0.143 119 esp des-cbc 61626364 6630663066303132
37 # ../utils/seti4 10.2.0.139 103 1 10.2.0.143 10.2.0.139
38 # ../utils/setespdm 10.2.0.139 105 ${ALG} 6630663066303132
39 # ../utils/setesp 10.2.0.139 105 4 66306630 6630663066303132
40 # ../utils/setah 10.2.0.139 106 6 66306630663031326630663066303132
42 # ../utils/spigrp 10.2.0.139 103 10.2.0.139 105 10.2.0.139 106
43 # ../utils/spigrp 10.2.0.139 103 10.2.0.139 105
47 # ../utils/setespdm 10.2.0.143 115 ${ALG} 6630663066303132
48 # ../utils/setesp 10.2.0.143 115 4 66306630 6630663066303132
49 # ../utils/setah 10.2.0.143 116 6 66306630663031326630663066303132
53 # Revision 1.3 1999/04/06 04:54:35 rgb
54 # Fix/Add RCSID Id: and Log: bits to make PHMDs happy. This includes