Martineau
Part of the Furniture
@JGrana,
Here is the public release of the Site-to-Site feature to assist in creating the two .conf files to be used by
e.g. default invocation still creates 'SiteA.conf' and 'SiteB.conf'
Hopefully the new command options should cover most of your custom requirements, and should be self-explanatory.
To upgrade use
Here is the public release of the Site-to-Site feature to assist in creating the two .conf files to be used by
wireguard_manager
or wg-quick
.e.g. default invocation still creates 'SiteA.conf' and 'SiteB.conf'
Code:
e = Exit Script [?]
E:Option ==> site2site
Hopefully the new command options should cover most of your custom requirements, and should be self-explanatory.
- Home location will use tunnel IP 10.10.10.99 and thus Cabin will be assigned +1 i.e. 10.10.10.100
- Home location will Listen on Port 54321 and thus Cabin will Listen on Port +1 i.e. 54322
- Cabin LAN is 192.168.111.0, and if
allowedips=
is not specified;allowedips=
192.168.111.0/24 will be used
Code:
e = Exit Script [?]
E:Option ==> site2site Home ip=10.10.10.99 port=54321 Cabin lan=192.168.111.0 allowips=10.1.1.0/24,192.168.111.4/30
Creating WireGuard Private/Public key-pair for Site-to-Site Peers Home/Cabin
Enter Cabin Endpoint remote IP, or Cabin DDNS name or press [Enter] to SKIP.
cabin.ip.ddns
Warning: No DDNS is configured! to reach local Home Endpoint from remote Cabin
Press y to use the current WAN IP or enter Home Endpoint IP or DDNS name or press [Enter] to SKIP.
home.ip.ddns
========== Home configuration =====================================================
# Home - 192.168.50.0/24
[Interface]
PrivateKey = gM0zxua/Rtoleno7XyldBfHoZ4Euj4AYE6NMyHkDiEM=
Address = 10.10.10.99/32
ListenPort = 54321
# Cabin LAN
[Peer]
PublicKey = vIv7WLtox3rE8P8B55LeK1yOtFDMYobMi+VYEVsnfXw=
AllowedIPs = 10.10.10.100/32, 10.1.1.0/24, 192.168.111.4/30
Endpoint = cabin.ip.ddns:54322
========== Cabin configuration =====================================================
# Cabin - 192.168.111.0/24
[Interface]
PrivateKey = oBTWIGljYEKB755s+mA91oyZpHE6XtEugeQktOcCIGs=
Address = 10.10.10.100/32
ListenPort = 54322
# Home LAN
[Peer]
PublicKey = E3to5PstMXrbCv5//wMvqHWc61O9GfaZhQX06fbFxDo=
AllowedIPs = 10.10.10.99/32, 192.168.50.0/24
Endpoint = home.ip.ddns:54321
=======================================================================================
WireGuard Site-to-Site Peers Home and Cabin created
Copy Cabin/Home files:
-rw-rw-rw- 1 admin root 651 Jan 20 15:26 Cabin.conf
-rw-rw-rw- 1 admin root 45 Jan 20 15:26 Cabin_private.key
-rw-rw-rw- 1 admin root 45 Jan 20 15:26 Cabin_public.key
-rw-rw-rw- 1 admin root 45 Jan 20 15:26 Home_public.key
to remote location
Press y to import Home or press [Enter] to SKIP.
y
[✔] Config Home import as wg22 (FORCED as 'server') success
WireGuard ACTIVE Peer Status: Clients 0, Servers 1
Code:
e = Exit Script [?]
E:Option ==> start wg22
Requesting WireGuard VPN Peer start (wg22)
wireguard-server2: Initialising Wireguard VPN 'Server' Peer (wg22) on 192.168.0.1:54321 (# Home - 192.168.50.0/24)
wireguard-server2: Initialisation complete.
WireGuard ACTIVE Peer Status: Clients 0, Servers 2
Code:
e = Exit Script [?]
E:Option ==> list
interface: wg21 Port:51820 10.50.1.1/24 VPN Tunnel Network # RT-AX86U Server #1
peer: /mflDLvPdPVusLONOq0yV462tVXpBW2eeXFgvPICpRk= 10.50.1.2/32 # myPhone "Device"
interface: wg22 Port:54321 10.10.10.99/32 VPN Tunnel Network # Home - 192.168.50.0/24
peer: vIv7WLtox3rE8P8B55LeK1yOtFDMYobMi+VYEVsnfXw= 10.10.10.100/32 # Cabin - 192.168.111.0/24
WireGuard ACTIVE Peer Status: Clients 0, Servers 2
Code:
e = Exit Script [?]
E:Option ==> uf dev
Last edited: