I have following config file prepared and tested on my wireguard server. My WG server has connected
asus router, linux server, iOS iPhones, windows pcs, macbook notebooks
here is my config prepared for Mikrotik hex:
[Interface]
PrivateKey = [given private key]
Address = [hex ipv4addr]/32,[hex ipv6addr]/128
[Peer]
PublicKey = [given public key]
PresharedKey = [given preshared key]
Endpoint = [my wg server]:51820
AllowedIPs = [wg ipv4 range]/24,[wg ipv6 range]/112
now I did:
/interface wireguard
add name=wg0 listen-port=51820 private-key=“[given private key]”
/ip address
add address=[hex ipv4addr]/32 interface=wg0
/ipv6 address
add address=[hex ipv6addr]/128 interface=wg0
/interface wireguard peers
add interface=wg0 public-key=“[given public key]” preshared-key=“[given preshared key]” endpoint-address=[my wg server] endpoint-port=51820 allowed-address=1[wg ipv4 range]/24,[wg ipv6 range]/112
and result is this in hex (visible from WebFig)
[Interface]
ListenPort = 51820
//invalid Private key
PrivateKey = AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA=
//invalid ip
Address = 192.168.177.2/24
[Peer]
PublicKey = [!!!invalid key!!!]
AllowedIPs = 0.0.0.0/0, ::/0
PresharedKey = [given preshared key]
almost all is wrong. Is there any way to properly setup WG as client of my VPN VLAN please ?
BTW it is extremely hostile and unfriendly to setup for beginners ![]()
A.