gravitl / netmaker

Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks.
https://netmaker.io
Other
9.4k stars 547 forks source link

[Bug]: Alma Linux as a client cannot ping server #2300

Open xoraingroup opened 1 year ago

xoraingroup commented 1 year ago

Contact Details

No response

What happened?

  1. Try to spin test server with
sudo wget -qO /root/nm-quick.sh https://raw.githubusercontent.com/gravitl/netmaker/master/scripts/nm-quick.sh && sudo chmod +x /root/nm-quick.sh && sudo /root/nm-quick.sh
  1. Create any ipv4/ipv6 network
  2. Get an Alma linux vm and install netclient using
curl -sL 'https://rpm.netmaker.org/gpg.key' | sudo tee /tmp/gpg.key
curl -sL 'https://rpm.netmaker.org/netclient-repo' | sudo tee /etc/yum.repos.d/netclient.repo
sudo rpm --import /tmp/gpg.key
sudo dnf check-update
sudo dnf install netclient
  1. Register netclient to server using
netclient register -t token
  1. Alma linux vm successfully connects.

Try to ping with assigned ipv4 or ipv6 from alma linux vm to server and vice versa.

Expected Result: Ping should work.

Actual Result: Ping does not work.

It works even with Rocky Linux with above steps but does not work with Alma linux.

Tested with brand new vm from hetzner with no firewall, still didn't work. Tested with other providers same result. Alma linux does not work, but Rocky Linux does work.

Version

v0.19.0

What OS are you using?

Linux

Relevant log output

No response

Contributing guidelines

darkerdead commented 1 year ago

Huh, I have been trying to ssh to my home server from work all day and it keeps timing out. I thought it's my installation so I tried re-installing netmaker on my vps. Heck I even rebuilt the entire vps because it wasn't working. Didn't even consider it might a bug or some issue from netmaker. I guess, I can get an update here. On Ubuntu 22.04 btw After adding the token with netclient join -t <token> I did a netclient connect <network-name> Did you connect to the network @xoraingroup ?

xoraingroup commented 1 year ago

@darkerdead Not really, it just works out of the box as soon i register or if i use netclient join -t token. It worked on debian 11, ubuntu 22.04 and even rocky linux new vps without any firewalls etc. But with alma linux it shows that its connected and ip a l shown netmaker interface as down. Tried every piece of information in documentation to make it work but it didn't, thats why created a bug report here.

xoraingroup commented 1 year ago

Just to add an update here.

It works with Alma linux 9 but not with Alma linux 8.

mattkasun commented 1 year ago

could you post the output of journalctl -u netclient

mattkasun commented 1 year ago

does Alma linux 8 have wireguard kernel module?

xoraingroup commented 1 year ago

Yes it had. Right now I am traveling but I will put the info here as soon I am back.

Thank you

mattkasun commented 1 year ago

What is output of wg show