diff options
author | hyang <hyang@hyang.xyz> | 2023-09-08 19:21:28 -0700 |
---|---|---|
committer | hyang <hyang@hyang.xyz> | 2023-09-08 19:21:28 -0700 |
commit | b3805bcdd09486d20989863a0ff36627fc252639 (patch) | |
tree | d892acb4153f8127504e35222a352d6bf1d3c637 /content | |
parent | 82b0d4170f7823920090c08eb86780e355b7a1dd (diff) |
Add DNS config section
Diffstat (limited to 'content')
-rw-r--r-- | content/post/split-tunnelling-for-wireguard-in-linux.md | 6 |
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 |