From 2cffb100ce2f362cf0509944ca2d4cc8cd72bc8a Mon Sep 17 00:00:00 2001 From: Per Guth Date: Sun, 14 Apr 2024 17:21:41 +0200 Subject: [PATCH] Add `ufw` FW command (#271) * Add `ufw` FW command * Explain `ufw` default * ... --- faq.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/faq.md b/faq.md index 02ee7cf..808895f 100644 --- a/faq.md +++ b/faq.md @@ -30,16 +30,27 @@ No, it is not a goal of the Yggdrasil project to provide anonymity. Direct peers Typically yes, you will be routable from other nodes on the network. If you want to restrict incoming connections to your machine, you should use an IPv6 firewall. The steps for this will vary from platform to platform. -#### Linux (with `ip6tables`) +#### Linux Assuming your TUN/TAP adapter is named `tun0`: +##### with `ip6tables` + ``` ip6tables -A INPUT -i tun0 -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT ip6tables -A INPUT -i tun0 -m conntrack --ctstate INVALID -j DROP ip6tables -A INPUT -i tun0 -j DROP ``` +##### with `ufw` + +``` +# The default of ufw is to block all incoming connections +# The following blocks incoming connections if the default has been set to allow by: +# ufw default allow +ufw deny in on tun0 proto ipv6 +``` + #### Windows (with Windows Firewall) Windows, by default, should classify the TAP adapter as a "Public Network". Configure Windows Firewall to prevent incoming connections on Public networks.