Wireguard only local traffic

It is possible it will work with a colon ( : ) instead of a hash ( # )

1 Like

hi

i have tested, and work, i try explain for other user :

on wireguard app ( android but think ios is same )
on interface frame, use DNS server on your adguard ip but no use port
for me, exemple, adguard is configured on 10.0.0.1:5335 and on wireguard app use only 10.0.0.1

on desktop app i have configured :

[Interface]
PrivateKey = 8OxxxxxxxxxxE=
Address = 10.0.1.2/32
DNS = 10.0.0.1

[Peer]
PublicKey = tpxxxxxxxxxxT4=
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = openxxxxxxxx.fr:56718

and, for show query log on adguard, go on firewall / custom rules, and add this :

iptables -t nat -A PREROUTING -i wg0 -p udp --dport 53 -j DNAT --to 10.0.0.1:5335
iptables -t nat -A PREROUTING -i wg0 -p tcp --dport 53 -j DNAT --to 10.0.0.1:5335

rename wg0 for your interface name and change ip:port for your ip + port adguard

thank for @psherman for help, resolved by you, not me :wink:

now, i retourne try to use KSMBD server + usb key ( not found on wireguard, and no found folder shared on my desktop on wireguard :confused: )

Glad it is working! Feel free to mark the most useful response as the solution.

1 Like

edit your post and add the solution, me mark for you

No need for me to edit mine -- since you wrote up your findings in a bit more detail that I could have (I wasn't testing this particular issue, I just diagnosed the root-cause, not the full solution), so your response will hopefully help future users with similar issues.

yes i try to explain correctly for "new" users same me
is very difficulte for new user with no linux base/ ssh and more ^^

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.