I need to encapsulate IPv4 in IPv6 for routing purposes. One end is a Linux box running quagga, and the other end is a Mikrotik CCR2004. How?
I need to encapsulate IPv4 in IPv6 for routing purposes. One end is a Linux box running quagga, and the other end is a Mikrotik CCR2004. How?
We're going to use PSK identities for this, because it's a point to point link and there's no reason to complicate it with certificates. This works on Ubuntu 20.04 and RouterOS 6.48.1.
On the Mikrotik side, just do this (the real challenge is in getting Strongswan aligned). If you're using the default IPSec profiles for something else, you can't configure this the way I did unless everyone can use the same security spec.
Put up your GRE tunnel in Linux:
For strongswan, set up
/etc/ipsec.secrets
:For
/etc/ipsec.conf
:Now you can configure IPv4 addresses on either end of your tunnel, and they will be tunneled through with an MTU of 1390 (unless you go enable MTU=9000).
Similar to what was posted above by Falcom Momot, you can find an entire wiki page I've done up on various VPN programs and linking them here https://wiki.pttlink.org/wiki/VPN
I have a section under IPSEC that covers strongSwan to MikroTik links.
The following is from this section:
strongSwan config
The following configuration will work on FreeBSD or Linux systems with strongSwan installed.
Note: You can use this config to connect two non-MikroTik systems as well. Just replicate the config below for each system you wish to connect.
ipsec.conf
/etc/ipsec.conf:
ipsec.secrets
/etc/ipsec.secrets:
MikroTik Config
The following config is best done from the terminal on a MikroTik device.
Note: You can use the following config to connect two MikroTik systems. Just replicate the config below on each system you wish to connect.