mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
wireguard: Automatically open ports for WireGuard
commit fc32e7b9147d2eeeb6e2bc1497859fb050001eb5 Author: Michael Tremer <michael.tremer@ipfire.org> Date: Tue Apr 16 16:20:55 2024 +0200 firewall: Automatically open ports for WireGuard Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
@@ -330,6 +330,10 @@ iptables_init() {
|
|||||||
iptables -N WIRELESSFORWARD
|
iptables -N WIRELESSFORWARD
|
||||||
iptables -A FORWARD -m conntrack --ctstate NEW -j WIRELESSFORWARD
|
iptables -A FORWARD -m conntrack --ctstate NEW -j WIRELESSFORWARD
|
||||||
|
|
||||||
|
# WireGuard
|
||||||
|
iptables -N WGINPUT
|
||||||
|
iptables -A INPUT -j WGINPUT
|
||||||
|
|
||||||
# OpenVPN
|
# OpenVPN
|
||||||
iptables -N OVPNINPUT
|
iptables -N OVPNINPUT
|
||||||
iptables -A INPUT -j OVPNINPUT
|
iptables -A INPUT -j OVPNINPUT
|
||||||
|
|||||||
Reference in New Issue
Block a user