Jump to content

IPSec configuration example with SCEP

From Teltonika Networks Wiki
Revision as of 12:52, 24 February 2025 by Caner.coskun (talk | contribs) (I will update this page and finish the config example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Introduction

In computing, Internet Protocol Security (IPsec) is a secure network protocol suite of IPv4 that authenticates and encrypts the packets of data sent over an IPv4 network. IPsec includes protocols for establishing mutual authentication between agents at the beginning of the session and negotiation of cryptographic keys to use during the session. IPsec can protect data flows between a pair of hosts (host-to-host), between a pair of security gateways (network-to-network), or between a security gateway and a host (network-to-host). Internet Protocol security (IPsec) uses cryptographic security services to protect communications over Internet Protocol (IP) networks. IPsec supports network-level peer authentication, data origin authentication, data integrity, data confidentiality (encryption), and replay protection.

This article provides an extensive configuration example with details on how to create a tunnel connection authenticating with X.509 Certs with SCEP(Simple Certification Enrollment Protocol) between two IPsec instances, both of which are configured on RUTxxx routers.

Configuration overview and prerequisites

  • Two RUTxxx routers of any type;
  • One RUTxxx router with public IP address;
  • 1 SCEP Server Instance ( For this example Mikrotik Router is used)
  • Both RUTxxx routers must be accessible from each other's WAN connections
  • An end device (PC, Laptop) for configuration;
  • (Optional) A second end device to test remote LAN access;

If you're having trouble finding this page or some of the parameters described here on your device's WebUI, you should turn on "Advanced WebUI" mode. You can do that by clicking the "Advanced" button, located at the top of the WebUI.


Router configuration

Choose SCEP(Simple Certificate Enrollment Protocol) method for certificate enrollment from the System > Administration > Certificates section.







For this example Mikrotik Router is used as a SCEP server.

After the enrollment is triggered from the Teltonika Router the SCEP server also needs to grant an access.