How to connect two networks together with a secure tunnel? It’s simple, follow these steps.
Use OpenBSD distro to create encrypted L2 IPSec tunnel between machines.
Terminology: MACRO expr. in use:
<IP_NEAR> - current router ip, alias near_end
<IP_FAR> - far router ip, alias far_end
both – execute command on both routers
<NETMASK> - network mask
All examples are based on OpenBSD 3.7
Configuration tips: