Mozfactor
Sign In Register

Setup Guides & Documentation

21 Guides

Step-by-step setup tutorials for Static Public IP, WireGuard, L2TP/SSTP, and complete Client Area feature guides.

All Guides Installation Guides ~3 min read
2,411 146

Setting Up Public IP on MikroTik Using L2TP / SSTP Client

Quick Setup — Zero Manual Typing (Auto-Scripts Included!)

You do not need to configure everything manually. Pre-filled MikroTik scripts (L2TP Script, SSTP Script v6/v7, Mangle & Route, and DST-NAT) containing your exact credentials and Static Public IP are already generated in Client Area → My Services → Service Detail. Simply click Copy and paste into Winbox New Terminal to connect in seconds. The manual walkthrough below is kept for reference.

Introduction

L2TP Client and SSTP Client provide universal compatibility for deploying your Mozfactor Dedicated Static Public IP on any MikroTik router running either RouterOS v6 or RouterOS v7.

Preparation

  1. Ensure your MikroTik router is already connected to the internet.
  2. Log in to the Mozfactor Client Area and open My Services → Service Detail to view your Server Address, Username, Password, and 1-Click Terminal Script.

Method 1: 1-Click Auto Script (Recommended)

  1. Open your Service Detail page in the Mozfactor Client Area.
  2. Select the L2TP Script tab (or SSTP Script v6 / v7 if your ISP blocks UDP L2TP) and click Copy Script.
  3. Open WinBox → New Terminal on your MikroTik router, right-click → Paste, and press Enter.
  4. If you need local devices to route outbound traffic via your Public IP (or when using No-NAT mode), also paste the Mangle & Route Script provided on the same page.

Method 2: Manual Setup via WinBox

  1. Open WinBox and log in to your MikroTik router.
  2. Go to PPP → Interface, click +, and select L2TP Client.
  3. Under General, set Name to L2TP-Mozfactor.
  4. Under Dial Out, fill in your credentials from the Client Area:
    • Connect To: Server hostname or IP
    • User: Your VPN username
    • Password: Your VPN password
    • Use IPsec: Leave unchecked (or set IPsec Secret to mozfactor if required)
    • Add Default Route: Leave unchecked if you only need inbound access / port forwarding without altering your primary internet gateway.
  5. Click Apply and OK.

Manual Terminal Command

/interface l2tp-client
add name=L2TP-Mozfactor connect-to=SERVER_ADDRESS user=YOUR_USERNAME password=YOUR_PASSWORD disabled=no

Verification

  1. In PPP → Interface, verify the R (Running) flag appears next to L2TP-Mozfactor.
  2. In IP → Addresses, confirm your Static Public IP appears dynamically (D) on the interface.
  3. Test pinging your Public IP from an external network (e.g., mobile data).

Security & Troubleshooting Tips

  • Harden Your Router: Disable unused services under IP → Services (Telnet, FTP, WWW) and use a strong WinBox password.
  • L2TP Blocked by ISP: Switch to SSTP Client (runs over TCP 443) or use WireGuard for higher speed and stability.