3 . ${DIR}/trs_aesctr_sha1_common_defs.sh
9 ssh ${REMOTE_HOST} ip xfrm policy flush
10 ssh ${REMOTE_HOST} ip xfrm state flush
12 ssh ${REMOTE_HOST} ip xfrm policy add \
13 src ${REMOTE_IPV4} dst ${LOCAL_IPV4} \
14 dir out ptype main action allow \
15 tmpl proto esp mode transport reqid 1
17 ssh ${REMOTE_HOST} ip xfrm policy add \
18 src ${LOCAL_IPV4} dst ${REMOTE_IPV4} \
19 dir in ptype main action allow \
20 tmpl proto esp mode transport reqid 2
22 ssh ${REMOTE_HOST} ip xfrm state add \
23 src ${REMOTE_IPV4} dst ${LOCAL_IPV4} \
24 proto esp spi 7 reqid 1 mode transport replay-window 64 \
25 auth sha1 0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef \
26 enc "rfc3686\(ctr\(aes\)\)" 0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef
28 ssh ${REMOTE_HOST} ip xfrm state add \
29 src ${LOCAL_IPV4} dst ${REMOTE_IPV4} \
30 proto esp spi 7 reqid 2 mode transport replay-window 64 \
31 auth sha1 0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef \
32 enc "rfc3686\(ctr\(aes\)\)" 0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef
34 ssh ${REMOTE_HOST} ip xfrm policy list
35 ssh ${REMOTE_HOST} ip xfrm state list
42 ssh ${REMOTE_HOST} ip xfrm policy add \
43 src ${REMOTE_IPV6} dst ${LOCAL_IPV6} \
44 dir out ptype main action allow \
45 tmpl proto esp mode transport reqid 3
47 ssh ${REMOTE_HOST} ip xfrm policy add \
48 src ${LOCAL_IPV6} dst ${REMOTE_IPV6} \
49 dir in ptype main action allow \
50 tmpl proto esp mode transport reqid 4
53 ssh ${REMOTE_HOST} ip xfrm state add \
54 src ${REMOTE_IPV6} dst ${LOCAL_IPV6} \
55 proto esp spi 9 reqid 3 mode transport replay-window 64 \
56 auth sha1 0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef \
57 enc "rfc3686\(ctr\(aes\)\)" 0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef
59 ssh ${REMOTE_HOST} ip xfrm state add \
60 src ${LOCAL_IPV6} dst ${REMOTE_IPV6} \
61 proto esp spi 9 reqid 4 mode transport replay-window 64 \
62 auth sha1 0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef \
63 enc "rfc3686\(ctr\(aes\)\)" 0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef
65 ssh ${REMOTE_HOST} ip xfrm policy list
66 ssh ${REMOTE_HOST} ip xfrm state list