testing: Use absolute path to the _updown script in SQL scenarios
[strongswan.git] / testing / tests / sql / net2net-psk / hosts / moon / etc / ipsec.d / data.sql
1 /* Identities */
2
3 INSERT INTO identities (
4 type, data
5 ) VALUES ( /* moon.strongswan.org */
6 2, X'6d6f6f6e2e7374726f6e677377616e2e6f7267'
7 );
8
9 INSERT INTO identities (
10 type, data
11 ) VALUES ( /* sun.strongswan.org */
12 2, X'73756e2e7374726f6e677377616e2e6f7267'
13 );
14
15 INSERT INTO identities (
16 type, data
17 ) VALUES ( /* %any */
18 0, '%any'
19 );
20
21 /* Shared Secrets */
22
23 INSERT INTO shared_secrets (
24 type, data
25 ) VALUES (
26 1, X'bfe364c58f4b2d9bf08f8a820b6a3f806ad60c5d9ddb58cb'
27 );
28
29 INSERT INTO shared_secret_identity (
30 shared_secret, identity
31 ) VALUES (
32 1, 1
33 );
34
35 INSERT INTO shared_secret_identity (
36 shared_secret, identity
37 ) VALUES (
38 1, 2
39 );
40
41 /* Configurations */
42
43 INSERT INTO ike_configs (
44 local, remote
45 ) VALUES (
46 'PH_IP_MOON', 'PH_IP_SUN'
47 );
48
49 INSERT INTO peer_configs (
50 name, ike_cfg, local_id, remote_id, auth_method, mobike
51 ) VALUES (
52 'net-net', 1, 1, 2, 2, 0
53 );
54
55 INSERT INTO child_configs (
56 name, updown
57 ) VALUES (
58 'net-net', '/usr/local/libexec/ipsec/_updown iptables'
59 );
60
61 INSERT INTO peer_config_child_config (
62 peer_cfg, child_cfg
63 ) VALUES (
64 1, 1
65 );
66
67 INSERT INTO traffic_selectors (
68 type, start_addr, end_addr
69 ) VALUES (
70 7, X'0a010000', X'0a01ffff'
71 );
72
73 INSERT INTO traffic_selectors (
74 type, start_addr, end_addr
75 ) VALUES (
76 7, X'0a020000', X'0a02ffff'
77 );
78
79 INSERT INTO child_config_traffic_selector (
80 child_cfg, traffic_selector, kind
81 ) VALUES (
82 1, 1, 0
83 );
84
85 INSERT INTO child_config_traffic_selector (
86 child_cfg, traffic_selector, kind
87 ) VALUES (
88 1, 2, 1
89 );
90