summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-07-14 16:06:44 +0800
committerXiao Pan <xyz@flylightning.xyz>2025-07-14 16:06:44 +0800
commit2a93b6783e880f5c14e82eba8ba006126b384930 (patch)
treefb7967f9a660807bc1a1df36de98745d8af89e0d
parent032bc7b3daf88836ecd903cb6c2550046c661015 (diff)
nft only allow monerod-p2p port to wg_* network interfaces
Note I think this will not prevent monerod download things from public internet without wireguard tunnel. But a little more limit is still better, maybe upload will limit a little bit to wg_* network interfaces.
-rw-r--r--etc/nftables.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/nftables.conf b/etc/nftables.conf
index 480298a3..1ec682d9 100644
--- a/etc/nftables.conf
+++ b/etc/nftables.conf
@@ -27,7 +27,7 @@ table inet my_table {
udp dport mdns accept
tcp dport qbt accept
udp dport qbt accept
- tcp dport monerod-p2p accept
+ iifname wg_* tcp dport monerod-p2p accept
#tcp dport iperf3 accept
#udp dport wireguard accept