Advertisement
Tritonio

Wireguard on Raspbian

Jan 22nd, 2021
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. 1) sudo su
  2.  
  3. 2) apt install raspberrypi-kernel-headers libelf-dev libmnl-dev build-essential git
  4.  
  5. 3) git clone https://git.zx2c4.com/wireguard-linux-compat
  6.  
  7. 4) git clone https://git.zx2c4.com/wireguard-tools
  8.  
  9. Compile and install the module
  10.  
  11. 5) make -C wireguard-linux-compat/src -j$(nproc)
  12.  
  13. 6) sudo make -C wireguard-linux-compat/src install
  14.  
  15. Compile and install the wg(8) tool
  16.  
  17. 7) make -C wireguard-tools/src -j$(nproc)
  18.  
  19. 8) sudo make -C wireguard-tools/src install
  20.  
  21. 9) nano /etc/sysctl.conf
  22.  
  23. 10) uncomment this line: net.ipv4.ip_forward=1
  24.  
  25. 11) reboot
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement