aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/config/configuration_manager.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-03-01 15:56:51 +0000
committerMartin Willi <martin@strongswan.org>2006-03-01 15:56:51 +0000
commit5d187bd234913b8b1004f3e21ca236d458949831 (patch)
treeb12dc8b1b74192e94adb7bf347520865c1bb84eb /Source/charon/config/configuration_manager.c
parentfb8aa445d27227bf2b04c1c09e94206a007a18aa (diff)
downloadstrongswan-5d187bd234913b8b1004f3e21ca236d458949831.tar.bz2
strongswan-5d187bd234913b8b1004f3e21ca236d458949831.tar.xz
- working policy installation and removal
Diffstat (limited to 'Source/charon/config/configuration_manager.c')
-rw-r--r--Source/charon/config/configuration_manager.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/charon/config/configuration_manager.c b/Source/charon/config/configuration_manager.c
index c5c6ec6ae..7179e5555 100644
--- a/Source/charon/config/configuration_manager.c
+++ b/Source/charon/config/configuration_manager.c
@@ -311,16 +311,25 @@ static void load_default_config (private_configuration_manager_t *this)
RSA_DIGITAL_SIGNATURE,
30000);
- /* traffic selectors */
+ /* traffic selectors alice */
ts = traffic_selector_create_from_string(1, TS_IPV4_ADDR_RANGE, "10.1.0.0", 0, "10.1.255.255", 65535);
sa_config_a->add_my_traffic_selector(sa_config_a,ts);
ts = traffic_selector_create_from_string(1, TS_IPV4_ADDR_RANGE, "10.2.0.0", 0, "10.2.255.255", 65535);
sa_config_a->add_other_traffic_selector(sa_config_a,ts);
+ ts = traffic_selector_create_from_string(6, TS_IPV4_ADDR_RANGE, "10.1.0.0", 0, "10.1.255.255", 65535);
+ sa_config_a->add_my_traffic_selector(sa_config_a,ts);
+ ts = traffic_selector_create_from_string(6, TS_IPV4_ADDR_RANGE, "10.2.0.1", 22, "10.2.0.1", 22);
+ sa_config_a->add_other_traffic_selector(sa_config_a,ts);
+ /* traffic selectors bob */
ts = traffic_selector_create_from_string(1, TS_IPV4_ADDR_RANGE, "10.2.0.0", 0, "10.2.255.255", 65535);
sa_config_b->add_my_traffic_selector(sa_config_b,ts);
ts = traffic_selector_create_from_string(1, TS_IPV4_ADDR_RANGE, "10.1.0.0", 0, "10.1.255.255", 65535);
sa_config_b->add_other_traffic_selector(sa_config_b,ts);
+ ts = traffic_selector_create_from_string(6, TS_IPV4_ADDR_RANGE, "10.2.0.0", 0, "10.2.255.255", 65535);
+ sa_config_b->add_my_traffic_selector(sa_config_b,ts);
+ ts = traffic_selector_create_from_string(6, TS_IPV4_ADDR_RANGE, "10.1.0.0", 0, "10.1.255.255", 65535);
+ sa_config_b->add_other_traffic_selector(sa_config_b,ts);
/* child proposal for alice */
proposal = proposal_create(1);