Site Tools


wireguard_on_freshtomato

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
Next revisionBoth sides next revision
wireguard_on_freshtomato [2023/07/17 17:56] – [Point-to-Point Connection] -standardize spelling on "routera" and "routerb" hogwildwireguard_on_freshtomato [2023/07/17 18:00] – [Assumptions:] -grammar hogwild
Line 130: Line 130:
  
 <code -> <code ->
-root@routerA:/jffs# wg genkey > privateKey_$(hostname) +root@routera:/jffs# wg genkey > privateKey_$(hostname) 
-root@routerA:/jffs# wg pubkey < privateKey_$(hostname) > publicKey_$(hostname)+root@routera:/jffs# wg pubkey < privateKey_$(hostname) > publicKey_$(hostname)
 </code> </code>
  
Line 141: Line 141:
  
 <code -> <code ->
-root@routerA:/jffs# ls -l+root@routera:/jffs# ls -l
 -rw-r--r--    1 root     root            45 Feb 13 10:51 privateKey_routera -rw-r--r--    1 root     root            45 Feb 13 10:51 privateKey_routera
 -rw-r--r--    1 root     root            45 Feb 13 10:51 publicKey_routera -rw-r--r--    1 root     root            45 Feb 13 10:51 publicKey_routera
Line 247: Line 247:
   * The wg.sh and "wg0.conf" files are complete and require no modification. The entire configuration is \\ automatically generated and stored in the "wg0.conf" file.   * The wg.sh and "wg0.conf" files are complete and require no modification. The entire configuration is \\ automatically generated and stored in the "wg0.conf" file.
  
- \\ \\ {{:pasted:20230324-065819.png?580}}\\  \\ + \\ \\ {{:pasted:20230324-065819.png?580}}\\  \\   \\  The script will display an introduction screen:
- \\  +
-The script will display an introduction screen:+
  
  \\ {{:pasted:20230326-205524.png?852}}\\  \\  \\  \\ {{:pasted:20230326-205524.png?852}}\\  \\  \\
Line 257: Line 255:
   * wg.sh   * wg.sh
   * wg0.conf   * wg0.conf
 +
  \\  \\
  
 You do not need to make any changes to those files. Simply copy them both to the relevant device (preferably jffs). This means you must run the makeconf on any one (and only one) device.\\ You do not need to make any changes to those files. Simply copy them both to the relevant device (preferably jffs). This means you must run the makeconf on any one (and only one) device.\\
  
-The wg.sh script has been written such that it can be run multiple times, even consecutively. Router and iptables/router rules that are already present in the configuration it creates will not be added again. The script also supports an optional  ''stop''  parameter to unload the wireguard module and remove any relevant configuration it added to the system. Running the script will add a cron reference to selectively check the reachability of every defined VPN endpoint, and remove it from the routing table is they are not to respond. This allows safe fail-back, for example, onto tinc or another VPN protocol/module.+The wg.sh script has been written such that it can be run multiple times, even consecutively. Router and iptables/router rules that are already present in the configuration it creates will not be added again. The script also supports an optional  ''stop''  parameter to unload the wireguard module and remove any relevant configuration it added to the system. Running the script will add a cron reference to selectively check the reachability of every defined VPN endpoint, and remove it from the routing table so it will not respond. This allows safe fail-back, for example, onto tinc or another VPN protocol/module.
  
  
wireguard_on_freshtomato.txt · Last modified: 2024/04/28 16:55 by hogwild