Open cedricve opened 1 year ago
I have the same problem and managed to work out what is not working, I hope this can help.
My network is like the one in the graph below
so my clients connect to VPS-1 (ingreess server) and i would like to access the 192.168.1.0/24 subnet on docker-01 (egress) This does not work.
After playing around with the wireguard settings I figured out it works (but only for a few minutes) if add the subnet to the WG allowed ips in both nodes (vps-1 and docker-01) examples below of wireguard config files I used
On docker-01
[Interface]
ListenPort = 51825
PrivateKey = ***
[Peer]
PublicKey = ***
AllowedIPs = 10.101.0.1/32, 0.0.0.0/0, 10.101.255.254/32, 10.101.255.252/32, 10.101.255.253/32, 192.168.1.0/24
Endpoint = 140.xxx.xxx.xxx:51821
PersistentKeepalive = 20
on vps-1
[Interface]
ListenPort = 51821
PrivateKey = ***
[Peer]
PublicKey = ***
AllowedIPs = 10.101.0.2/32, 192.168.1.0/24
Endpoint = xxx.xxx.xxx.xxx:51825
PersistentKeepalive = 20
[Peer]
PublicKey = ***
AllowedIPs = 10.101.255.254/32
Endpoint = xxx.xxx.xxx.xxx:32765
[Peer]
PublicKey = ***
AllowedIPs = 10.101.255.252/32
[Peer]
PublicKey = ***
AllowedIPs = 10.101.255.253/32
However these settings are being overwritten by (i guess) netclient and nothing works after a couple of minutes.
I know it takes time to fix bugs, but is there a workaround I to keep these settings permanent, while this is being fixed? I am sure other people would find it useful
PS thanks for making such a great product!
I have the same problem and managed to work out what is not working, I hope this can help.
My network is like the one in the graph below
so my clients connect to VPS-1 (ingreess server) and i would like to access the 192.168.1.0/24 subnet on docker-01 (egress) This does not work.
After playing around with the wireguard settings I figured out it works (but only for a few minutes) if add the subnet to the WG allowed ips in both nodes (vps-1 and docker-01) examples below of wireguard config files I used
On docker-01
[Interface] ListenPort = 51825 PrivateKey = *** [Peer] PublicKey = *** AllowedIPs = 10.101.0.1/32, 0.0.0.0/0, 10.101.255.254/32, 10.101.255.252/32, 10.101.255.253/32, 192.168.1.0/24 Endpoint = 140.xxx.xxx.xxx:51821 PersistentKeepalive = 20
on vps-1
[Interface] ListenPort = 51821 PrivateKey = *** [Peer] PublicKey = *** AllowedIPs = 10.101.0.2/32, 192.168.1.0/24 Endpoint = xxx.xxx.xxx.xxx:51825 PersistentKeepalive = 20 [Peer] PublicKey = *** AllowedIPs = 10.101.255.254/32 Endpoint = xxx.xxx.xxx.xxx:32765 [Peer] PublicKey = *** AllowedIPs = 10.101.255.252/32 [Peer] PublicKey = *** AllowedIPs = 10.101.255.253/32
However these settings are being overwritten by (i guess) netclient and nothing works after a couple of minutes.
I know it takes time to fix bugs, but is there a workaround I to keep these settings permanent, while this is being fixed? I am sure other people would find it useful
PS thanks for making such a great product!
Can verify the issue and the "solution". To be more precise: the changes from a netclient pull
are reflected in the /etc/netclient/netclient.yml
file, but wireguard isn't configured accordingly.
The command wg set netmaker peer J5Vg....DjopilE= allowed-ips "10.129.137.1/32, 192.168.178.0/24"
works but gets overwritten within seconds.
Hope this helps!
Best, Lukas
Contact Details
cedric@verstraeten.io
What happened?
I'm having a basic setup (nothing special), but can't get my head around it. It looks as following:
I have a local network with IP ranges:
192.168.1.0/24
, which I would like to reach from another Peer (a VM in the cloud, fake2). After setting up (which was really super easy..) I'm able to use the wireguard network to ping the different peers. I then added the Egress gateway to my clientkerberos
, to allow proxy for192.168.1.0/24
and192.168.2.0/24
.By doing this I'm able to ping the Egress gateway using its internal IP
192.168.1.238
from a remote peer.However I cannot ping any other IP address in the local network
192.168.1.0/24
. Doing a traceroute it finds out to use the Egress gateway but cannot reach it in the end.Version
v0.21.2
What OS are you using?
Linux, I'm running the netmaker server on a Digitalocean machine.
Contributing guidelines