I neeed to create an IPSec tunnel from RPi1 to RPi2 as described in the diagram below:
RPi1-------WLan0------Router(No internet connectivity - only LAN)------WLan0 ------RPi2
A few days ago I posted about making a VPN tunnel using OpenVPN between the router and the Pi but I was going about it incorrectly.
I looked at guides already, like this one -- https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Security_Guide/s1-ipsec-host2host.html -- but this one is for red hat enterprise linux. The other ones I looked at were for routers with internet connectivity.
If there are any guides you think I haven't looked at, please link them in the description and I'll take a look at them.