Changes

Jump to: navigation, search

VPN using Wireguard

474 bytes added, 12:26, 4 July 2019
insert patch content right into the page
(change the path to wireguard sources if needed)
# patch /usr/src/wireguard-0.0.20190601/device.c diff-wireguard-allow-to-run-in-Containers
 
<pre>
--- ./device.c.orig 2019-07-02 16:05:42.162373405 +0300
+++ ./device.c 2019-06-10 17:21:27.956413409 +0300
@@ -281,7 +281,7 @@ static void wg_setup(struct net_device *
#else
dev->tx_queue_len = 0;
#endif
- dev->features |= NETIF_F_LLTX;
+ dev->features |= NETIF_F_LLTX | NETIF_F_VIRTUAL;
dev->features |= WG_NETDEV_FEATURES;
dev->hw_features |= WG_NETDEV_FEATURES;
dev->hw_enc_features |= WG_NETDEV_FEATURES;
</pre>
{{Note|Why it's required?

Navigation menu