User Tools

Site Tools


linux:raspberry

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:raspberry [2023/10/25 16:33] jotasandokulinux:raspberry [2025/01/19 12:01] (current) jotasandoku
Line 89: Line 89:
  
 Requires private and private key in both ends: Requires private and private key in both ends:
-  * Server rpi2 +  * Server rpi2 (don't forget ip forwarding enabled) 
-    * root@rpi2:/etc/wireguard +    * root@rpi2:/etc/wireguard/wg0.conf 
-  * Client openwrt + 
-    * /root/wireguard+  [Interface] 
 +  SaveConfig = false 
 +  PostUp = iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE 
 +  PreDown = iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE 
 +  ListenPort = 1094 
 +  PrivateKey = bbbbbbbbbbbbbbbbb 
 + 
 +  [Peer] 
 +  PublicKey = panda-pub 
 +  AllowedIPs = 192.168.0.0/24, 10.100.100.0/24 
 + 
 + 
 + 
 +  * Client openwrt ( less /etc/config/network ): 
 + 
 + 
 +  config interface 'wg0' 
 +   option proto 'wireguard
 +    option private_key '...' 
 +   option mtu '1412' 
 +   list addresses '10.100.100.2/24' 
 +   list dns '8.8.8.8' 
 + 
 +  config wireguard_wg0 
 +   option public_key 'cama-pi-pub' 
 +   option route_allowed_ips '1' 
 +   option endpoint_host 'camarreal.duckdns.org' 
 +   option endpoint_port '1094' 
 +   option persistent_keepalive '25' 
 +   list allowed_ips '0.0.0.0/0' 
 +   list allowed_ips '192.168.1.0/24' 
  
   * Setup: server and client : [[https://www.linode.com/docs/guides/set-up-wireguard-vpn-on-ubuntu/|External Link]]   * Setup: server and client : [[https://www.linode.com/docs/guides/set-up-wireguard-vpn-on-ubuntu/|External Link]]
   * Client luci: [[https://www.vpnunlimitedapp.com/help/manuals/open-wrt-wireguard-setup|External Link]]   * Client luci: [[https://www.vpnunlimitedapp.com/help/manuals/open-wrt-wireguard-setup|External Link]]
 +
 +
 +
 +
  
  
Line 167: Line 202:
  
 ---- ----
 +=== DISPLAY CONFIGURATION (AND DUAL MONITORS) ===
  
 Monitor issues fixes by tuning the config.txt file : [[https://forums.raspberrypi.com/viewtopic.php?t=34061]] Monitor issues fixes by tuning the config.txt file : [[https://forums.raspberrypi.com/viewtopic.php?t=34061]]
linux/raspberry.1698251612.txt.gz · Last modified: (external edit)