IPSEC Diagnostics and logging
Good Afternoon all;
Got the home lab up. Zero to NAT was very straightforward. IPSEC however is presenting some woes.
This is a VM (KVM linux on a Sandy Bridge i7 socket 2011). MY NICs are Pro-1000T (E1000. I have a i350-t4 inbound for igb driver base but for now, e1000.
The remote site is a Fortinet 3601E running 6.0.9 System Software.
I have poured over teh configs till my brain fell out, and I cannot find anything that would preclude the tunnel coming up but its stuck at connecting.
IPsec Tunnel: 0
IKE SA: ipip0 ID: 222 Version: IKEv2
Local: LOCAIP Remote: REMOTEIP
Local ID: 0x0.07ffc4131465p-1022ny Remote ID: 0x0.07ffc4131466p-1022ny
SPI Init: 741094755088191030 Resp: 0
The remote site sees this connection attempt and shows succesful P1 negotiation.
date=2020-09-12 time=11:31:34 t subtype=vpn level=notice action=negotiate msg=progress IPsec phase 1 logdesc=Progress IPsec phase 1 user=N/A status=success remip=XXXXXXX locip=XXXXXXXXXX remport=500 locport=500 outintf=FW1-WAN_2034 cookies=7b4ddc05e227cb2a/27c7486c0102e3be group=N/A xauthuser=N/A xauthgroup=N/A vpntunnel=TNSR-TEST-1-1 dir=outbound init=remote exch=SA_INIT version=IKEv2 role=responder result=OK eventtime=1599935494 devid=FG36E1XXXXXXXX dtime=2020-09-12 11:31:34 itime_t=1599935495
It appears to be failing at P2 but all the P2 settings appear to aling. Is there a way to get better diagnostic logging on the IPSEC tunnel formation that I may use to look for more/better clues as to whats up.
tnsr uses strongswan just like pfSense does so the logging and fault-finding are similar.
@Derelict Thank you very much!
I got the tunnel up. Unfortunately I changed 3 things on the last config push....
1: Disabled Replay Protection.
2: P1 P2 Keytimes were the same 3600/3600. Chnged to 7200/3600
3: Fortigate has a separate area for remote PSK. It looked to be taken from Local PSK, but I hard set anyways.
I have to do this all over on a different 3601. Ill post up a Fortigate Config and further findings.
However. Thus far. Looks like TNSR on "wrong" hardware (old sandy bridge, and e1000 nics) is too much for me 1G uplink. Cause my initial easy quick dirty test... ie no parallel flows, single TCP flow. 902mbits. LOL. Looks like Illhave to lab this up in my works vmWare environment and see what can be done with 10g and 25g links....
You can set asymmetric PSKs in tnsr too.