network-scripts/wireguard/wg3/mikrotik/wg3.rsc
2025-08-12 23:01:13 -04:00

17 lines
671 B
Text

# WireGuard interface configure
/interface wireguard
add listen-port=14322 mtu=1420 name=wg3 private-key=\
"YI4o0wICXciiX8aP/ZEhwqZk9VhoCxUbzG7TTuRmsVc="
/ip firewall filter
add action=accept chain=input comment=wg-wg3 dst-port=14322 protocol=udp
/ip firewall filter move [/ip firewall filter find comment=wg-wg3] 1
/ip address
add address=172.16.254.5/24 comment=wg-wg3 interface=wg3
# WireGuard client peer configure
/interface wireguard peers
add allowed-address=172.16.254.6/32 comment=\
wg3-client-pogo interface=wg3 \
preshared-key="S1P4YbYgT8C+A5sVbnZD+Cl69C/rvq8lNnBPI2u36Xc=" public-key=\
"Jsvkuk+YxJjpCasQ3ecGaZ+Xz1FazjVVL+IeZZX+GHI="