l2tp via ipsec MK->debian
Napsal: 06 May 2015 19:07
ahoj, dokázal by mi někdo poradit jak nakonfigurovat tento tunel? Teoreticky je jedno jaká strana bude server....
děkuji
děkuji
Fórum československých telekomunikací
https://classic.ispforum.cz/
Kód: Vybrat vše
path pre_shared_key "/etc/racoon/psk.txt";
listen {
isakmp IP1 [500];
}
remote IP2 {
exchange_mode main;
initial_contact on;
lifetime time 24 hour;
proposal_check strict;
proposal {
encryption_algorithm 3des;
hash_algorithm sha1;
authentication_method pre_shared_key;
dh_group 2;
peers_identifier address IP2;
my_identifier address IP1;
dpd_delay 10;
}
}
sainfo address IP1 ipencap address IP2 ipencap {
pfs_group 2;
lifetime time 1 hour ;
encryption_algorithm 3des;
authentication_algorithm hmac_sha1;
compression_algorithm none;
}
Kód: Vybrat vše
flush;
spdflush;
spdadd IP1 IP2 ipencap -P out ipsec
esp/transport//require;
spdadd IP2 IP1 ipencap -P in ipsec
esp/transport//require;