TrueNAS Scale Wireguard Client issues

chereszabor

Dabbler
Joined
Apr 20, 2021
Messages
12
First, thank you @Whattteva this discussion really helped me dig through this.

Alright so, while trying to output the routing tables, I noticed that although WG was reporting to brining up the wg0 interface, in reality something broke and the interface would not actually be brought up....after restarting TrueNAS I was now getting an error when the interface was being brought up. I recreated the wg0.conf with the following details, and now everything work....

Code:
[Interface]
PrivateKey = xxxxxxxxxxxxxxxxxxx
Address = 192.168.2.3/32
DNS = 1.1.1.1

[Peer]
PublicKey = xxxxxxxxxxxxxxxxxxxxxx
AllowedIPs = 192.168.2.0/24,192.168.1.0/24
Endpoint = my.ddns.address:51820
PersistentKeepalive = 30


Still don't understand why while I don't have 192.168.1.0/24 included in my WG config for my mac mini, but it has no issues accessing the 192.168.1.0/24 ip range and everything else is working as well....but will leave that mystery to another day....
 
Last edited:

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
First, thank you @Whattteva this discussion really helped me dig through this.

Alright so, while trying to output the routing tables, I noticed that although WG was reporting to brining up the wg0 interface, in reality something broke and the interface would not actually be brought up....after restarting TrueNAS I was now getting an error when the interface was being brought up. I recreated the wg0.conf with the following details, and now everything work....

Code:
[Interface]
PrivateKey = xxxxxxxxxxxxxxxxxxx
Address = 192.168.2.3/32
DNS = 1.1.1.1

[Peer]
PublicKey = xxxxxxxxxxxxxxxxxxxxxx
AllowedIPs = 192.168.2.0/24,192.168.1.0/24
Endpoint = my.ddns.address:51820
PersistentKeepalive = 30


Still don't understand why while I don't have 192.168.1.0/24 included in my WG config for my mac mini, but it has no issues accessing the 192.168.1.0/24 ip range and everything else is working as well....but will leave that mystery to another day....
Cheers! I'm glad you finally got it working.
 
Top