| 1 | # /etc/ipsec.conf - Libreswan IPsec configuration file |
| 2 | |
| 3 | version 2.0 |
| 4 | |
| 5 | config setup |
| 6 | # put the logs in /tmp for the UMLs, so that we can operate |
| 7 | # without syslogd, which seems to break on UMLs |
| 8 | logfile=/tmp/pluto.log |
| 9 | logtime=no |
| 10 | logappend=no |
| 11 | plutodebug=all |
| 12 | dumpdir=/tmp |
| 13 | |
| 14 | conn westnet-eastnet-ikev2 |
| 15 | also=westnet-eastnet-x509 |
| 16 | authby=rsa-sha2 |
| 17 | leftsendcert=always |
| 18 | leftcert=west |
| 19 | #leftid="C=CA, ST=Ontario, O=Libreswan, OU=Test Department, CN=west.testing.libreswan.org, E=testing.libreswan.org" |
| 20 | rightsendcert=always |
| 21 | rightcert=east |
| 22 | #rightid="C=CA/ST=Ontario/O=Libreswan/OU=Test Department/CN=east.testing.libreswan.org/E=testing.libreswan.org" |
| 23 | |
| 24 | |
| 25 | conn westnet-eastnet-x509 |
| 26 | leftsubnet=192.0.1.0/24 |
| 27 | leftsourceip=192.0.1.254 |
| 28 | rightsubnet=192.0.2.0/24 |
| 29 | rightsourceip=192.0.2.254 |
| 30 | # Left security gateway, subnet behind it, next hop toward right. |
| 31 | left=192.1.2.45 |
| 32 | leftrsasigkey=%cert |
| 33 | #leftcert=west |
| 34 | leftnexthop=192.1.2.23 |
| 35 | leftid=%fromcert |
| 36 | # Right security gateway, subnet behind it, next hop toward left. |
| 37 | right=192.1.2.23 |
| 38 | rightid=%fromcert |
| 39 | rightrsasigkey=%cert |
| 40 | #rightcert=east |
| 41 | rightnexthop=192.1.2.45 |
| 42 |