OpenWRT Tutorial
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
STEP 1
Install wireguard.
OpenWRT
# opkg install wireguard
STEP 2
Move the downloaded conf file to the wirdguard
folder.
# mv /yourpath/xxx.conf /etc/wireguard/wg0.conf
(Optional) If the Wireguard folder does not
exist, create the
folder.
# mkdir -p /etc/wireguard/
STEP 3
Connect to wireguard server.
# wg-quick up wg0
OUTPUT
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -6 address add <IPv6 address you obtained>/128 dev wg0
[#] ip link set mtu 1420 up dev wg0
[#] ip -6 route add ::/1 dev wg0
[#] ip -6 route add 8000::/1 dev wg0
[#] wg setconf wg0 /dev/fd/63
[#] ip -6 address add <IPv6 address you obtained>/128 dev wg0
[#] ip link set mtu 1420 up dev wg0
[#] ip -6 route add ::/1 dev wg0
[#] ip -6 route add 8000::/1 dev wg0
STEP 4
View ip address.
# ip addr
3: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default
qlen
1000
link/none
inet6 <IPv6 address you obtained>/128 scope global
valid_lft forever preferred_lft forever
link/none
inet6 <IPv6 address you obtained>/128 scope global
valid_lft forever preferred_lft forever
STEP 5
Disconnect Wireguard.
# wg-quick down wg0