/* Identities */
INSERT INTO identities (
type, data
) VALUES ( /* moon.strongswan.org */
2, X'6d6f6f6e2e7374726f6e677377616e2e6f7267'
);
INSERT INTO identities (
type, data
) VALUES ( /* carol@strongswan.org */
3, X'6361726f6c407374726f6e677377616e2e6f7267'
);
INSERT INTO identities (
type, data
) VALUES ( /* dave@strongswan.org */
3, X'64617665407374726f6e677377616e2e6f7267'
);
INSERT INTO identities (
type, data
) VALUES ( /* %any */
0, '%any'
);
INSERT INTO identities (
type, data
) VALUES ( /* subjkey of moon.strongswan.org */
11, X'MOON_SPK_HEX'
);
INSERT INTO identities (
type, data
) VALUES ( /* subjkey of carol@strongswan.org */
11, X'CAROL_SPK_HEX'
);
INSERT INTO identities (
type, data
) VALUES ( /* subjkey of dave@strongswan.org */
11, X'DAVE_SPK_HEX'
);
/* Raw RSA public keys */
INSERT INTO certificates (
type, keytype, data
) VALUES ( /* moon.strongswan.org */
6, 1, X'MOON_PUB_HEX'
);
INSERT INTO certificates (
type, keytype, data
) VALUES ( /* carol@strongswan.org */
6, 1, X'CAROL_PUB_HEX'
);
INSERT INTO certificates (
type, keytype, data
) VALUES ( /* dave@strongswan.org */
6, 1, X'DAVE_PUB_HEX'
);
INSERT INTO certificate_identity (
certificate, identity
) VALUES (
1, 1
);
INSERT INTO certificate_identity (
certificate, identity
) VALUES (
1, 5
);
INSERT INTO certificate_identity (
certificate, identity
) VALUES (
2, 2
);
INSERT INTO certificate_identity (
certificate, identity
) VALUES (
2, 6
);
INSERT INTO certificate_identity (
certificate, identity
) VALUES (
3, 3
);
INSERT INTO certificate_identity (
certificate, identity
) VALUES (
3, 7
);
/* Private Keys */
INSERT INTO private_keys (
type, data
) VALUES ( /* key of CN=moon.strongswan.org' */
1, X'MOON_KEY_HEX'
);
INSERT INTO private_key_identity (
private_key, identity
) VALUES (
1, 1
);
INSERT INTO private_key_identity (
private_key, identity
) VALUES (
1, 5
);
/* Configurations */
INSERT INTO ike_configs (
local, remote
) VALUES (
'PH_IP_MOON', '0.0.0.0'
);
INSERT INTO peer_configs (
name, ike_cfg, local_id, remote_id
) VALUES (
'rw', 1, 5, 4
);
INSERT INTO child_configs (
name, updown
) VALUES (
'rw', '/usr/local/libexec/ipsec/_updown iptables'
);
INSERT INTO peer_config_child_config (
peer_cfg, child_cfg
) VALUES (
1, 1
);
INSERT INTO traffic_selectors (
type, start_addr, end_addr
) VALUES ( /* 10.1.0.0/16 */
7, X'0a010000', X'0a01ffff'
);
INSERT INTO traffic_selectors (
type
) VALUES ( /* dynamic/32 */
7
);
INSERT INTO child_config_traffic_selector (
child_cfg, traffic_selector, kind
) VALUES (
1, 1, 0
);
INSERT INTO child_config_traffic_selector (
child_cfg, traffic_selector, kind
) VALUES (
1, 2, 3
);
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>