Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: When using a "standard VPN" there is no connectivity on Linux (via imported wireguard conf file) #1469

Open
1 task done
Semelovich opened this issue Aug 20, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Semelovich
Copy link

Semelovich commented Aug 20, 2022

What happened?

When using a "standard VPN" there is no connectivity on Linux (via imported wireguard conf file)

Netmaker:

  • installed on a VPS ; domain name is used to access Netmaker.
  • all ports needed for netmaker are opened following the quick install guide.

Conditions to reproduce a bug:

  • set up a standard VPN following the official guide at https://youtu.be/NWMYPU2FCjI?t=2760

  • import wireguard conf file to a client PC ("external client")

  • activate wireguard connection

Results:

  1. No connectivity on any Linux OS including live images.. A connection to the server is established but there are no packers going.

  2. Proper connectivity on Windows and Android devices with the same wireguard conf file.

Expected results:

The wireguard configuration generated by the Netmaker server should work on any OS, not just Windows and Android.

Additional information

Linux PC info:
ip addr https://pastebin.com/tqAymq20
ip route https://pastebin.com/KfAXN8Ke

This behavior on Linux OS is also confirmed here https://old.reddit.com/r/netmaker/comments/ws9j7k/netmaker_using_as_a_simple_vpn_issues_on_linux/il193o3/

Version

v0.14.6

What OS are you using?

Linux, Windows

Relevant log output

No response

Contributing guidelines

  • Yes, I did.
@Semelovich Semelovich added the bug Something isn't working label Aug 20, 2022
@Semelovich Semelovich changed the title [Bug]: When using a "standard VPN" there is no connectivity on Linux (via imported into NM wireguard conf file) [Bug]: When using a "standard VPN" there is no connectivity on Linux (via imported wireguard conf file) Aug 20, 2022
@afeiszli
Copy link
Contributor

  1. what do you mean by "standard VPN"; are you using 0.0.0.0/0?
  2. does the Linux OS have "wg-quick" installed?

If it is working on Windows and Android, there is nothing in our config that would prevent it from working on Linux; it is a pure, standard wireguard config that is compatible with any client that can run a conf file, so it must be a limitation with wireguard on the device.

@Semelovich
Copy link
Author

Semelovich commented Aug 27, 2022

  1. what do you mean by "standard VPN"; are you using 0.0.0.0/0?

No, I'm not. I'm not using the latest version hence I can't use 0.0.0.0/0. I followed the linked official guide to set up internet gateway.

These are the settings I set (it was specified like this in the official documentation which now has changed coz of the new version released) https://photos.google.com/share/AF1QipPTzV5HMMe1ZkvflOBDp5HApgOLqvka9Oz3K1Oosgd-bJbbNI2YDaA-PjoqvG2DhA/photo/AF1QipNvn4Q_sgDzo5OX8O8PPY8izMusbTJ8mTVoWik5?key=WTlTd1NXbXVIbFFaTmhTdnNPc095cEplNDl3OVd3

Network settings
https://photos.google.com/share/AF1QipPTzV5HMMe1ZkvflOBDp5HApgOLqvka9Oz3K1Oosgd-bJbbNI2YDaA-PjoqvG2DhA/photo/AF1QipOJfC_MPnXY_vtfEmjRv34s_XKk1x-GQ0jDkyRn?key=WTlTd1NXbXVIbFFaTmhTdnNPc095cEplNDl3OVd3

  1. does the Linux OS have "wg-quick" installed?

Yes.

If it is working on Windows and Android, there is nothing in our config that would prevent it from working on Linux; it is a pure, standard wireguard config that is compatible with any client that can run a conf file, so it must be a limitation with wireguard on the device.

Well, when another person tried to run in on ubuntu it didn't work either. And it didn't work on any linux distro I tried, even the live bootable image.

@afeiszli
Copy link
Contributor

My best guess is that for peer Endpoints, it was attempting to route the traffic over the egress gateway in order to reach those Endpoints, which wont work. With 0.0.0.0/0 it works differently by changing the gateway, so it is worth trying with this new version.

@ViRb3
Copy link

ViRb3 commented Sep 5, 2022

@Semelovich are you by any chance using the "exclude local IPs" option? If yes, you are probably experiencing the following issue:

Workaround (scroll down for "better" route method):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants