removed by mod
fedilink
@Eideen@lemmy.world
link
fedilink
English
811d

How can I be sure that my traffic is routing to the Wireguard VPN?

Use ‘tracepath’.

@CjkOvPDwQW@lemmy.pt
creator
link
fedilink
English
011d

deleted by creator

@CjkOvPDwQW@lemmy.pt
creator
link
fedilink
English
111d

tracepath

Okay it seems to be using the vpn gateway thanks. But why they don’t connect to the server ip addr then, and need to add that rule (added the traceroute at the end with the server local ip)

(ins) $ nmcli connection down home
Connection 'home' successfully deactivated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/6)

(ins)$ tracepath 1.1.1.1
 1?: [LOCALHOST]                      pmtu 1500
 1:  meo.Home                                              2.942ms
 1:  meo.Home                                              1.500ms
 2:  no reply
^C

(ins)$ nmcli connection up home
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/7)

(ins)$ tracepath 1.1.1.1
 1?: [LOCALHOST]                      pmtu 1420
 1:  10.8.0.1                                            1709.973ms
 1:  10.8.0.1                                            1274.271ms
 2:  172.28.0.1                                            5.757ms
 3:  192.168.1.254                                       431.005ms

 1?: [LOCALHOST]                      pmtu 1500
 1:  192.168.1.79                                        3068.615ms !H
     Resume: pmtu 1500

(ins)$ nmcli connection down home
Connection 'home' successfully deactivated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/7)

(ins)$ tracepath 192.168.1.60
 1?: [LOCALHOST]                      pmtu 1500
 1:  t460s.Home                                          3058.122ms !H
     Resume: pmtu 1500
@just_another_person@lemmy.world
link
fedilink
English
3
edit-2
11d

You should read up on Wireguard connections and configs to understand what you’re actually doing. I wouldn’t blindly follow guides without checking out what each step does.

You need ‘PostUp’ and ‘PostDown’ rules for your connection to handle routes when the connection comes up or down. That’s where your discrepancy is.

Unsure how networkmanager handles that in the GUI if you’re using that, but it would be under something like ‘Routes/Routing’.

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 280 users / day
  • 598 users / week
  • 1.42K users / month
  • 3.89K users / 6 months
  • 1 subscriber
  • 4.01K Posts
  • 82.4K Comments
  • Modlog