Received ESP packet with unknown SPI.
Hello,
Tried to make IPSEC tunnel between my fortigate and server build on OPNsense.
My fortigate is 100F behind SNAT. SNAT is made by Virtual IP and forward connection form external IP to IP on loopback interface. Don't have any interface directly connected to internet so have to use Virtual IP as SNAT.
Opnsense is also behind SNAT 1:1 .
Something like :
OPNsense 10.0.0.1/21<-->SNAT<-->95.100.100.1<-->Internet>95.100.200.1<-->SNAT on Virtual IP>10.200.0.1/32 on loopback<-->Local net
IPs are for show purposes only.
I've made successfully tunnel , phase1 and phase 2 is on green from both side.
Problem is that that Fortigate receives incoming packets from OPNsense but reject it as it comes from unknown SPI. In log details I have correct local IP, correct remote IP and the most important correct SPI number from both sides.
I'v tried IKE v1 and v2 , with NAT nad without NAT and many other options.
Nope, all the time Fortigate even if tunnel from both sides stay UP, he says that packet incoming from that tunnel is from unknown. Don't know how to check if Forti correctly see for example remote ID (this ID behind SNAT) of existing tunnel, maybe he see only IP from internet side, I don't know :(
From other hand why Forti allowed to make tunnel between sides , only for rejecting packets now?
I'm clueless what I can check more I hope that someone can show me some directions?