Second, check and verify that each peer has the ClientIP/32 in the Allowed Address.įor example, if the WireGuard interface is using 192.168.1.0/24, and one of the peers has 192.168.1.4/24 in the Allowed Address option, then only one client will work. Either that, or do not connect at the same time. Unable to have two devices connected at the same time.įirst, you’ll need to have one Peer per Client connection. You should now be all set up and able to connect from your device. Each client will have a static IP address assigned in the config. I think this is because WireGuard tries to route the whole /24 over that peer.Īlso note that you can not use DHCP with WireGuard. If you have multiple clients connected and one of them is setup with a /24 instead of a /32, it will cause issues. interface/wireguard/peers add allowed-address=192.128.1.2/32 interface=wireguard1 public-key="PublicKeyFromClientCreatedInNextStep" Change the allowed address and public key. Back on the MikroTik, run the following command. PublicKey = ReplaceWithInterfacePublicKeyFromMikrotik ip/address add address=192.168.1.1/24 network=192.168.1.0 interface=wireguard1 Configure WireGuard Clientĭownload and install the WireGuard application on your computer or phone.Ĭreate an empty config (Ctrl +N), click edit, add the following. Next we’ll configure an IP address/range for the new WireGuard interface. We’ll need to copy the public key, shown in the following command, for use in the client config. interface/wireguard add listen-port=51820 mtu=1420 name=wireguard1 Create a WireGuard Peer on the MikroTik Routerįirst we need to create a WireGuard interface to use.Configure WireGuard Interface on MikroTik Router.Quick overview of setting up a MikroTik Router as a VPN appliance. You may need to upgrade your MikroTik if the WireGuard options are not available.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |