Hello!, I have problems configuring Wireguard. I have a Truenas machine for backup my personal data, for my media library.
I´m trying to use wireguard to access from outside to my Truenas GUI, to Nextcloud, my files, photos,...
I´ve managed to use Wireguard on the truenas base, just enabling it in system/tunables creating the wg0 interface, and
setting a postinit scrip to copy my wg0.conf and the keys to de wireguard directory.
Installed the client in my windows laptop, and in my android phone.
When I activate the tunnel, both android and windows see the trunas GUI, that is ok, but they lost Internet conection to rest of
the WWW, and I can´t access to the other jails, for example my nextcloud server or openspeedtest jail.
Short picture of my network for more information:
My ISP router local ip: 192.168.1.1
my neutral router: wan ip: 192.168.1.2 lan ip: 192.168.0.1
and the rest of the network devices are 192.168.0.X
192.168.0.10 is my truenas server running wireguard on it.
Jails are 192.168.0.14, 15, 16 etc ...
The Server wg0.conf file is somethif like this:
[Interface]
Address = 10.0.0.1/32
PrivateKey = privatekeyA=
ListenPort = 51820
[Peer]
PublicKey = publickey...=
AllowedIPs = 10.0.0.8/32
# android phone
And the client config file is something like this:
[Interface]
Address = 10.0.0.8/32
PrivateKey = theprivatekey=
DNS = 1.1.1.1
[Peer]
PublicKey = hispublickey8=
AllowedIPs = 0.0.0.0/0,::/0
Endpoint = myrealexternalip
Should I change something in the allowed IPs field?, of what can I do to:
- Have internet access while conected to the wiregurd server
- Access the rest of my ips for example 192.168.0.15 (nextcloud)
Thank you very much for the help, i´ve searched a lot, and tried a lot of changes but I can´t solve it.
If more info is needed please ask me, thanks.
I´m trying to use wireguard to access from outside to my Truenas GUI, to Nextcloud, my files, photos,...
I´ve managed to use Wireguard on the truenas base, just enabling it in system/tunables creating the wg0 interface, and
setting a postinit scrip to copy my wg0.conf and the keys to de wireguard directory.
Installed the client in my windows laptop, and in my android phone.
When I activate the tunnel, both android and windows see the trunas GUI, that is ok, but they lost Internet conection to rest of
the WWW, and I can´t access to the other jails, for example my nextcloud server or openspeedtest jail.
Short picture of my network for more information:
My ISP router local ip: 192.168.1.1
my neutral router: wan ip: 192.168.1.2 lan ip: 192.168.0.1
and the rest of the network devices are 192.168.0.X
192.168.0.10 is my truenas server running wireguard on it.
Jails are 192.168.0.14, 15, 16 etc ...
The Server wg0.conf file is somethif like this:
[Interface]
Address = 10.0.0.1/32
PrivateKey = privatekeyA=
ListenPort = 51820
[Peer]
PublicKey = publickey...=
AllowedIPs = 10.0.0.8/32
# android phone
And the client config file is something like this:
[Interface]
Address = 10.0.0.8/32
PrivateKey = theprivatekey=
DNS = 1.1.1.1
[Peer]
PublicKey = hispublickey8=
AllowedIPs = 0.0.0.0/0,::/0
Endpoint = myrealexternalip
Should I change something in the allowed IPs field?, of what can I do to:
- Have internet access while conected to the wiregurd server
- Access the rest of my ips for example 192.168.0.15 (nextcloud)
Thank you very much for the help, i´ve searched a lot, and tried a lot of changes but I can´t solve it.
If more info is needed please ask me, thanks.