This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:raspberry [2023/10/25 16:33] – jotasandoku | linux: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:/ | + | * root@rpi2:/ |
| - | * 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/ | ||
| + | |||
| + | |||
| + | |||
| + | * Client openwrt | ||
| + | |||
| + | |||
| + | config interface ' | ||
| + | option proto 'wireguard' | ||
| + | option private_key ' | ||
| + | option mtu ' | ||
| + | list addresses ' | ||
| + | list dns ' | ||
| + | |||
| + | config wireguard_wg0 | ||
| + | option public_key ' | ||
| + | option route_allowed_ips ' | ||
| + | option endpoint_host ' | ||
| + | option endpoint_port ' | ||
| + | option persistent_keepalive ' | ||
| + | list allowed_ips ' | ||
| + | list allowed_ips ' | ||
| * Setup: server and client : [[https:// | * Setup: server and client : [[https:// | ||
| * Client luci: [[https:// | * Client luci: [[https:// | ||
| + | |||
| + | |||
| + | |||
| + | |||
| Line 167: | Line 202: | ||
| ---- | ---- | ||
| + | === DISPLAY CONFIGURATION (AND DUAL MONITORS) === | ||
| Monitor issues fixes by tuning the config.txt file : [[https:// | Monitor issues fixes by tuning the config.txt file : [[https:// | ||