frank-w / BPI-Router-Linux

Linux kernel 4.14+ for BPI-R2, 5.4+ for R64, 6.1+ for R2Pro and R3
Other
136 stars 47 forks source link

Wireguard support BPI-R3 #108

Closed ghost closed 1 year ago

ghost commented 1 year ago

One thing I'm missing for my BPI-R3 is Wireguard support and sadly, the DKMS Module does not seem to work either. I saw some closed Github Issues about Wireguard that where resolved. Would it be possible to add Wiregaurd back into the kernel?

frank-w commented 1 year ago

Which kernelversion donyou want to use (last lts = 6.1 or last stable =6.4)

Which options do you want to have enabled exactly?

ghost commented 1 year ago

Thanks for the quick reply. To activate wireguard and wg-quick with nftables in the kernel i narrowed down the options to:

CONFIG_NET_CORE=y
CONFIG_WIREGUARD=y
CONFIG_IPV6=y
CONFIG_NET_UDP_TUNNEL=y
CONFIG_DST_CACHE=y
CONFIG_CRYPTO=y
CONFIG_CRYPTO_LIB_CURVE25519=y
CONFIG_CRYPTO_LIB_CHACHA20POLY1305=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IPV6_MULTIPLE_TABLES=y
CONFIG_IP6_NF_RAW=m
CONFIG_IP_NF_RAW=m
CONFIG_NFT_FIB=m
CONFIG_NFT_FIB_IPV4=m
CONFIG_NFT_FIB_IPV6=m
CONFIG_NETFILTER_XT_MATCH_CONNMARK=y
NETFILTER_XT_TARGET_CT=y