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