This guide provides a comprehensive walkthrough on establishing a secure WireGuard VPN connection between a Virtual Private Server (VPS) and a MikroTik router, enabling seamless access to your home Local Area Network (LAN) from your VPS. It details the necessary configurations for both the VPS and the MikroTik device, covering crucial steps such as WireGuard interface creation, peer setup, IP address assignment, routing, firewall rules, and Network Address Translation (NAT). By following these instructions, you will be able to securely extend your home network’s reach to your VPS, allowing you to interact with LAN devices as if you were directly connected.
Most home internet connections use dynamic IP — meaning your public IP changes from time to time. This is a problem if you host services at home such as:
Home server / NAS CCTV / Camera system Remote SSH / RDP access VPN for remote connection Docker self-hosted applications When the IP changes, your domain stops pointing to the correct server, and all remote access fails. The best way to solve this is to automatically update your domain’s DNS record every time your router’s IP changes.
Bài viết này ghi lại quá trình cấu hình ban đầu cho Router Mikrotik, cụ thể là model Mikrotik RB750gr3. Đây là một hướng dẫn chi tiết giúp bạn thiết lập và tối ưu hóa thiết bị để đáp ứng các yêu cầu mạng của mình. Router MikroTik là dòng thiết bị cân bằng tải với hiệu năng mạnh mẽ, độ ổn định cao và giá thành phù hợp, hiện đang được sử dụng rất phổ biến tại Việt Nam.