summaryrefslogtreecommitdiff
path: root/content/post
diff options
context:
space:
mode:
Diffstat (limited to 'content/post')
-rw-r--r--content/post/split-tunnelling-for-wireguard-in-linux.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/post/split-tunnelling-for-wireguard-in-linux.md b/content/post/split-tunnelling-for-wireguard-in-linux.md
index 42a9418..83d0eff 100644
--- a/content/post/split-tunnelling-for-wireguard-in-linux.md
+++ b/content/post/split-tunnelling-for-wireguard-in-linux.md
@@ -60,6 +60,12 @@ iptables -t nat -A POSTROUTING -s 10.1.1.1/24" -o $IF -j MASQUERADE
iptables -A FORWARD -i $IF -o veth0 -j ACCEPT
iptables -A FORWARD -o $IF -i veth0 -j ACCEPT
```
+## DNS
+You may need to manually configure the DNS server. We will use Cloudflare's 1.1.1.1 to resolve DNS queries inside the network namespace.
+```
+mkdir -p /etc/netns/split
+echo "nameserver 1.1.1.1" > /etc/netns/split/resolv.conf
+```
## Conclusion
That's it! Now to test it