N
N
nihi1ist2021-08-26 07:36:49
linux
nihi1ist, 2021-08-26 07:36:49

How to route traffic through a wg tunnel created in Network Manager?

There is a server with working WireGuard. Connected my smartphone, everything works fine!

Now I'm trying to set up a connection on Kubuntu 20.04. Added a tunnel via nmcli . But when you turn on the wg-tunnel, the Internet does not work. Perhaps the problem is that nftables is installed? It's set up on the archa wiki . Understanding of nftables is still low, tell me what rule to add to make the connection through WireGuard work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Dmitriev, 2021-08-26
@SignFinder

You need to add the following rules:
1. Allow FORWARD packets from the wireguard network
2. Add a SNAT\Masquerade rule for the wireguard network.
Since low understanding of nftables, replace with iptables.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question