aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/ipsec-demo/ipsec-demo/test_setkey/right.conf-null-null-transport
blob: 26dfe2e17138c773a0e251172c34b714064f5e50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/sbin/setkey -f
#I am 200.200.200.20

flush;
spdflush;

# ESP SAs doing null encryption
# and null authentication
add 200.200.200.10 200.200.200.20 esp 0x10513 
    -E null
    -A null;

add 200.200.200.20 200.200.200.10 esp 0x10514 
    -E null
    -A null;


spdadd 200.200.200.20 200.200.200.10 any -P out ipsec
        esp/transport//require;

spdadd 200.200.200.10 200.200.200.20 any -P in ipsec
        esp/transport//require;