| Version 11 (modified by , 9 months ago) (diff) |
|---|
Wireguard Open_WRT client
File in /etc/config/network
root@OpenWrt:/etc/config# tail -15 network
config interface 'wg0'
option proto 'wireguard'
option private_key 'kMtWcqDKWPBpZtZMotZhK7ebgYhHdsE5ZQ5DbjxTeEs='
list addresses '10.20.0.13/32'
config wireguard_wg0
option description 'wg_chr'
option public_key 'a1vzyij5prL27dz/0lcUmMR5BPEh7KRqCvMMcPIeUB0='
list allowed_ips '10.20.0.0/24'
option route_allowed_ips '1'
option endpoint_host '1x.xx.yy.zz'
option endpoint_port '12345'
option persistent_keepalive '25'
root@OpenWrt:/etc/config#
- general setting, then generate new key pair, then replace ONLY private key that gave by Mikrotik. Don't change the published key since it is not use after generate key pair
- don't forget to allow firewall
- edit peer config put the publish key given by Mikrotik
On Mikrotik config only
[Interface] PrivateKey = kMtWcqDKWPBpZtZMotZhK7ebgYhHdsE5ZQ5DbjxTeEs= Address = 10.20.0.13/32 DNS = 8.8.8.8, 1.1.1.1 [Peer] PublicKey = a1vzyij5prL27dz/0lcUmMR5BPEh7KRqCvMMcPIeUB0= AllowedIPs = 10.20.0.0/24 Endpoint = 1x.xx.yy.zz:12345
Attachments (3)
- 1741277540221.jpg (106.2 KB) - added by 9 months ago.
- 2.jpg (171.0 KB) - added by 9 months ago.
- 3.jpg (170.7 KB) - added by 9 months ago.
Download all attachments as: .zip
![(please configure the [header_logo] section in trac.ini)](/Utils/chrome/site/your_project_logo.png)


