linux:openwrt:wireguard

WireGuard - OpenWrt

公式ドキュメント: [OpenWrt Wiki] WireGuard basics

# opkg update && opkg install luci-proto-wireguard luci-app-wireguard

Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/targets/bcm53xx/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/targets/bcm53xx/generic/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/packages/arm_cortex-a9/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/packages/arm_cortex-a9/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/packages/arm_cortex-a9/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/packages/arm_cortex-a9/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/packages/arm_cortex-a9/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/packages/arm_cortex-a9/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/packages/arm_cortex-a9/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/packages/arm_cortex-a9/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/packages/arm_cortex-a9/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/packages/arm_cortex-a9/telephony/Packages.sig
Signature check passed.
Installing luci-proto-wireguard (git-22.213.40001-18e6040) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/packages/arm_cortex-a9/luci/luci-proto-wireguard_git-22.213.40001-18e6040_all.ipk
Installing kmod-crypto-lib-chacha20 (5.10.134-1) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/targets/bcm53xx/generic/packages/kmod-crypto-lib-chacha20_5.10.134-1_arm_cortex-a9.ipk
Installing kmod-crypto-lib-poly1305 (5.10.134-1) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/targets/bcm53xx/generic/packages/kmod-crypto-lib-poly1305_5.10.134-1_arm_cortex-a9.ipk
Installing kmod-crypto-lib-chacha20poly1305 (5.10.134-1) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/targets/bcm53xx/generic/packages/kmod-crypto-lib-chacha20poly1305_5.10.134-1_arm_cortex-a9.ipk
Installing kmod-crypto-kpp (5.10.134-1) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/targets/bcm53xx/generic/packages/kmod-crypto-kpp_5.10.134-1_arm_cortex-a9.ipk
Installing kmod-crypto-lib-curve25519 (5.10.134-1) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/targets/bcm53xx/generic/packages/kmod-crypto-lib-curve25519_5.10.134-1_arm_cortex-a9.ipk
Installing kmod-udptunnel4 (5.10.134-1) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/targets/bcm53xx/generic/packages/kmod-udptunnel4_5.10.134-1_arm_cortex-a9.ipk
Installing kmod-udptunnel6 (5.10.134-1) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/targets/bcm53xx/generic/packages/kmod-udptunnel6_5.10.134-1_arm_cortex-a9.ipk
Installing kmod-wireguard (5.10.134-1) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/targets/bcm53xx/generic/packages/kmod-wireguard_5.10.134-1_arm_cortex-a9.ipk
Installing wireguard-tools (1.0.20210424-3) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/packages/arm_cortex-a9/base/wireguard-tools_1.0.20210424-3_arm_cortex-a9.ipk
Installing libuci-lua (2021-10-22-f84f49f0-6) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/packages/arm_cortex-a9/base/libuci-lua_2021-10-22-f84f49f0-6_arm_cortex-a9.ipk
Installing luci-app-wireguard (git-21.322.66896-8ae208d) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0-rc6/packages/arm_cortex-a9/luci/luci-app-wireguard_git-21.322.66896-8ae208d_all.ipk
Configuring kmod-crypto-lib-chacha20.
Configuring kmod-crypto-lib-poly1305.
Configuring kmod-crypto-lib-chacha20poly1305.
Configuring kmod-crypto-kpp.
Configuring kmod-crypto-lib-curve25519.
Configuring kmod-udptunnel4.
Configuring kmod-udptunnel6.
Configuring kmod-wireguard.
Configuring wireguard-tools.
Configuring libuci-lua.
Configuring luci-proto-wireguard.
Configuring luci-app-wireguard.

# wg genkey | tee wg.key | wg pubkey > wg.pub
# ll

drwxr-xr-x    1 root     root           288 Oct  3 04:03 ./
drwxr-xr-x    1 root     root           480 Sep 27 05:54 ../
-rw-r--r--    1 root     root            45 Oct  3 04:03 wg.key
-rw-r--r--    1 root     root            45 Oct  3 04:03 wg.pub

LuCISystemStartupInitscripts に移動し、network[Restart] をクリックする🤔

新しい WireGuard インターフェイスを作成するには、LuCINetworkInterfaces に移動し、[Add new interface…] をクリック Protocol ドロップダウン メニューから WireGuard VPN を選択する🤤

  • linux/openwrt/wireguard.txt
  • 最終更新: 2022/10/04 06:02
  • by ともやん