Virtual Private Networks
RouterOS has several ways to connect networks and remote users over another network. Some encrypt the traffic and some only carry it, so choose by what you need:
| You want to | Use |
|---|---|
| Connect two sites or remote users with strong encryption and little configuration | WireGuard |
| Connect to devices and services of other vendors with a standard, encrypted VPN | IPsec |
| Give remote users access with a user name and a password, with clients that are built into Windows and other systems | L2TP with IPsec, or SSTP |
| Give remote users access where only web traffic passes the firewalls | SSTP, or OpenVPN over TCP |
| Serve or connect OpenVPN clients | OpenVPN |
| Connect subscribers on an Ethernet network, or connect to an internet provider | PPPoE |
| Carry IP packets between two routers without encryption, or with IPsec added | GRE, IPIP |
| Carry Ethernet frames between two sites | EoIP, or L2TP Ether on the L2TP page |
| Carry IPv6 over an IPv4 network | 6to4 |
| Join a ZeroTier network | ZeroTier |
| Host your own ZeroTier network on a router | Self-hosted ZeroTier controller |
PPTP is an old protocol with weak encryption. Use it only for devices that have nothing else.
The users of the L2TP, SSTP, OpenVPN, PPPoE and PPTP servers are in one database: see PPP AAA.
to4
6to4 in RouterOS: carry IPv6 over an IPv4 network, connect two IPv6 networks with a tunnel, allow IP protocol 41 in the firewall, and get IPv6 from a tunnel broker.
EoIP
Ethernet over IP (EoIP) in MikroTik RouterOS is a Layer 2 tunneling protocol that carries full Ethernet frames between two routers inside GRE packets, extending one broadcast domain across any IP network - with bridging, RSTP over the tunnel, MAC address control, optional IPsec encryption and a matching tunnel-id on both ends.
GRE
Generic Routing Encapsulation (GRE) is a tunneling protocol that encapsulates IP over IP as a virtual point-to-point link in RouterOS, with keepalive monitoring, MTU and MSS handling, DSCP settings and an optional IPsec-secret for encrypted tunnels.
IPIP
IPIP (IP-in-IP) tunnels carry IPv4 packets inside IPv4 or IPv6 packets between two routers. The page covers encapsulation, a routed-site example, keepalive, MTU and fragmentation, firewall matching, IPsec protection and the IPv6 variant.
IPsec
8 items
L2TP
1 item
OpenVPN
OpenVPN in RouterOS: set up an OpenVPN server with a certificate, connect a RouterOS client, choose the cipher and the transport, require client certificates, push routes, export and import .ovpn files, open the firewall, and the limits of the RouterOS implementation.
PPPoE
2 items
PPTP
PPTP is a legacy VPN protocol that carries a PPP session over TCP 1723 and GRE. The page covers a router-to-router client and server example, PPP authentication and encryption profiles, MTU, static and dynamic server interfaces, firewall requirements, and troubleshooting.
SSTP
SSTP in RouterOS: set up an SSTP server and client, secure the tunnel with a server certificate, require client certificates, choose the TLS settings, open the firewall, and find why a client does not connect.
WireGuard
WireGuard is a modern VPN solution offering fast, secure encryption across platforms with detailed configuration options including private/public keys, VRF routing, and peer management for establishing encrypted tunnels between devices.
Self-hosted ZeroTier controller on a hAP ax³
Host your own private ZeroTier network on a hAP ax³ with the controller built into RouterOS: turn ZeroTier on in device mode, install the zerotier package, create the network, authorize the hAP and an office router with fixed addresses, let the members through the default firewall, check the connection and remove a router from the network.
ZeroTier
ZeroTier is a network virtualization engine for MikroTik RouterOS that enables secure, cross-network device connectivity via Ethernet virtualization and cryptographic peer-to-peer networks. It supports gaming, LAN access, NAT traversal, and remote Pi-Hole management while requiring proper UDP port configuration, NAT type selection, and minimal NAT layers for reliable connections.