| 1 | # /etc/ipsec.conf - Libreswan IPsec configuration file |
| 2 | |
| 3 | config setup |
| 4 | plutodebug="all" |
| 5 | logtime=no |
| 6 | logappend=no |
| 7 | logfile=/tmp/pluto.log |
| 8 | dumpdir=/tmp |
| 9 | |
| 10 | conn westnet-eastnet-ikev2 |
| 11 | left=192.1.2.45 |
| 12 | leftid=@west |
| 13 | leftsubnet=192.0.1.0/24 |
| 14 | leftauth=rsasig |
| 15 | right=192.1.2.23 |
| 16 | rightid="%fromcert" |
| 17 | rightcert=east |
| 18 | rightsubnet=192.0.2.0/24 |
| 19 | rightauth=rsasig |
| 20 | type=tunnel |
| 21 | # this is a hack to prevent: |
| 22 | # 003 Failed to add connection "westnet-eastnet-ikev2": leftauth=rsasig and rightauth=rsasig must not conflict with authby=none+NEVER_NEGOTIATE |
| 23 | authby=rsasig |
| 24 | also=west-leftrsasigkey |
| 25 | |
| 26 | include /testing/baseconfigs/all/etc/ipsec.d/rsasigkey.conf |