From 3745fdcb6a83e6aff9ef7f984a3689d296207bd7 Mon Sep 17 00:00:00 2001 From: Vincent Li Date: Wed, 2 Jul 2025 20:21:04 +0000 Subject: [PATCH] wireguard: Automatically open ports for WireGuard commit fc32e7b9147d2eeeb6e2bc1497859fb050001eb5 Author: Michael Tremer Date: Tue Apr 16 16:20:55 2024 +0200 firewall: Automatically open ports for WireGuard Signed-off-by: Michael Tremer Signed-off-by: Vincent Li --- src/initscripts/system/firewall | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/initscripts/system/firewall b/src/initscripts/system/firewall index dd15beb44..ebcf3f227 100644 --- a/src/initscripts/system/firewall +++ b/src/initscripts/system/firewall @@ -338,6 +338,10 @@ iptables_init() { iptables -N WIRELESSFORWARD iptables -A FORWARD -m conntrack --ctstate NEW -j WIRELESSFORWARD + # WireGuard + iptables -N WGINPUT + iptables -A INPUT -j WGINPUT + # OpenVPN iptables -N OVPNINPUT iptables -A INPUT -j OVPNINPUT