7c2865fd8e7950fa0cb246059dac4d557a6023fa
[strongswan.git] / testing / tests / sql / net2net-psk / hosts / sun / 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 /* Shared Secrets */
16
17 INSERT INTO shared_secrets (
18 type, data
19 ) VALUES (
20 1, X'bfe364c58f4b2d9bf08f8a820b6a3f806ad60c5d9ddb58cb'
21 );
22
23 INSERT INTO shared_secret_identity (
24 shared_secret, identity
25 ) VALUES (
26 1, 1
27 );
28
29 INSERT INTO shared_secret_identity (
30 shared_secret, identity
31 ) VALUES (
32 1, 2
33 );
34
35 /* Configurations */
36
37 INSERT INTO ike_configs (
38 local, remote
39 ) VALUES (
40 'PH_IP_SUN', 'PH_IP_MOON'
41 );
42
43 INSERT INTO peer_configs (
44 name, ike_cfg, local_id, remote_id, auth_method, mobike
45 ) VALUES (
46 'net-net', 1, 2, 1, 2, 0
47 );
48
49 INSERT INTO child_configs (
50 name, updown
51 ) VALUES (
52 'net-net', 'ipsec _updown iptables'
53 );
54
55 INSERT INTO peer_config_child_config (
56 peer_cfg, child_cfg
57 ) VALUES (
58 1, 1
59 );
60
61 INSERT INTO traffic_selectors (
62 type, start_addr, end_addr
63 ) VALUES (
64 7, X'0a010000', X'0a01ffff'
65 );
66
67 INSERT INTO traffic_selectors (
68 type, start_addr, end_addr
69 ) VALUES (
70 7, X'0a020000', X'0a02ffff'
71 );
72
73 INSERT INTO child_config_traffic_selector (
74 child_cfg, traffic_selector, kind
75 ) VALUES (
76 1, 2, 0
77 );
78
79 INSERT INTO child_config_traffic_selector (
80 child_cfg, traffic_selector, kind
81 ) VALUES (
82 1, 1, 1
83 );
84