mirror of
https://git.dn42.dev/wiki/wiki
synced 2025-03-14 11:33:33 +00:00
Updated RacoonExample (markdown)
This commit is contained in:
parent
7c0e727303
commit
d30842f07e
@ -1,2 +1,35 @@
|
|||||||
# IPsec with public key authentication on Racoon
|
The keys are generated with plainrsa-gen.
|
||||||
## Coming soon
|
|
||||||
|
```
|
||||||
|
Usage: plainrsa-gen [options]
|
||||||
|
|
||||||
|
-b bits Generate <bits> long RSA key (default=1024)
|
||||||
|
-e pubexp Public exponent to use (default=0x3)
|
||||||
|
-f filename Filename to store the key to (default=stdout)
|
||||||
|
-i filename Input source for format conversion
|
||||||
|
-h Help
|
||||||
|
```
|
||||||
|
I'd probably go with 4096 bits.
|
||||||
|
|
||||||
|
|
||||||
|
in your racoon.conf:
|
||||||
|
```
|
||||||
|
path certificate "/etc/racoon/keys";
|
||||||
|
|
||||||
|
listen {
|
||||||
|
isakmp 192.168.255.1[500];
|
||||||
|
}
|
||||||
|
|
||||||
|
remote 192.168.255.2 {
|
||||||
|
exchange_mode main;
|
||||||
|
certificate_type plain_rsa "local.priv.key";
|
||||||
|
peers_certfile plain_rsa "remote.pub.key";
|
||||||
|
proposal {
|
||||||
|
authentication_method rsasig;
|
||||||
|
lifetime time 8 hour;
|
||||||
|
encryption_algorithm aes256;
|
||||||
|
hash_algorithm sha256;
|
||||||
|
dh_group modp1024;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user