Sunday, 7 April 2024

Wireguard VPN configure in mikrotik router os 7

 Wireguard VPN configure in mikrotik router os 7


First Create a wireguard logical interface

    /interface wireguard
  add listen-port=13231 mtu=1420 name=wireguard1

Or



Then add a ip address in wireguard interface.

    /ip address
   add address=10.10.10.1/24 interface=wireguard1 network=10.10.10.0


Or



Then as usual create masqurade or src-nat nat rule and DNS.

    /ip dns
    set servers=8.8.8.8
    /ip firewall nat
    add action=masquerade chain=srcnat
    

Now Create peer configuration

    /interface wireguard peers
    add allowed-address=10.10.10.2/32 interface=wireguard1 public-       key="Peer Public Key"





Now configure in wireguard client device and configure as below for android down from google play store and for windows : Download or visit https://www.wireguard.com/install/





No comments:

Post a Comment

Thanks for your valuable feedback.

Comprehensive IP Calculator: Supporting Both IPv4 and IPv6

Download:  Download Whether you're a network engineer, IT professional, or simply a tech enthusiast, understanding IP addresses is cruci...