| 1 |
# /etc/ipsec.conf - Strongswan IPsec configuration file |
| 2 |
|
| 3 |
conn westnet-eastnet-ikev2 |
| 4 |
authby=rsasig |
| 5 |
leftauth=ike:rsa/pss-sha256 |
| 6 |
rightauth=ike:rsa/pss-sha256 |
| 7 |
left=%any |
| 8 |
leftsubnet=192.0.1.0/24 |
| 9 |
leftrsasigkey=%cert |
| 10 |
#leftcert=/etc/strongswan/ipsec.d/certs/west.crt |
| 11 |
#leftsendcert=never |
| 12 |
#leftid="C=CA, ST=Ontario, O=Libreswan, OU=Test Department, CN=west.testing.libreswan.org, E=testing.libreswan.org" |
| 13 |
right=192.1.2.23 |
| 14 |
rightsubnet=192.0.2.0/24 |
| 15 |
rightrsasigkey=%cert |
| 16 |
rightcert=/etc/strongswan/ipsec.d/certs/east.crt |
| 17 |
rightsendcert=always |
| 18 |
rightid="C=CA/ST=Ontario/O=Libreswan/OU=Test Department/CN=east.testing.libreswan.org/E=testing.libreswan.org" |
| 19 |
# strongswan options |
| 20 |
keyexchange=ikev2 |
| 21 |
auto=add |
| 22 |
fragmentation=yes |
| 23 |
|