We must have a frsh installation of CentOS 7 with internet access. We begin by disabling selinux because problems were observed during the installation with selinux enabled.
sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/sysconfig/selinux
sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/selinux/config
Mikrotik should have a real internet IP to a certain interface. If it is located behind nat, the modem that provides internet access should be able to forward ipsec-esp packages. If your mikrotik is behind an internet modem that does not forward ipsec-esp, then you should stop here.
The command SCP (Secure copy) allows us to copy – file transfer over SSH, providing the same level of security that SSH provides. Let’s see some examples :