| | 1 | = Wireguard Open_WRT client |
| | 2 | |
| | 3 | file in /etc/config/network |
| | 4 | {{{ |
| | 5 | config interface 'wg0' |
| | 6 | option proto 'wireguard' |
| | 7 | option private_key 'kMtWcqDKWPBpZtZMotZhK7ebgYhHdsE5ZQ5DbjxTeEs=' |
| | 8 | list addresses '10.20.0.13/32' |
| | 9 | |
| | 10 | config wireguard_wg0 |
| | 11 | option description 'wg_chr' |
| | 12 | option public_key 'a1vzyij5prL27dz/0lcUmMR5BPEh7KRqCvMMcPIeUB0=' |
| | 13 | list allowed_ips '10.20.0.0/24' |
| | 14 | option route_allowed_ips '1' |
| | 15 | option endpoint_host '159.xx.xx.xx' |
| | 16 | option endpoint_port '12345' |
| | 17 | option persistent_keepalive '25' |
| | 18 | |
| | 19 | root@OpenWrt:/etc/config# |
| | 20 | }}} |