mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
miniupnpd: Added chain rule to filter table so udp stun incoming connections rules works
Signed-off-by: Marco Martins <marcomartins86@gmail.com>
(cherry picked from commit 773b87977e)
This commit is contained in:
committed by
Rosen Penev
parent
4ed18c40e6
commit
1adf9d9794
@@ -31,13 +31,15 @@ add_extzone_rules() {
|
|||||||
[ -z "$ext_zone" ] && return
|
[ -z "$ext_zone" ] && return
|
||||||
|
|
||||||
# IPv4 - due to NAT, need to add both to nat and filter table
|
# IPv4 - due to NAT, need to add both to nat and filter table
|
||||||
# need to insert as penultimate rule for forward & postrouting since final rule might be a fw3 REJECT
|
# need to insert as penultimate rule for input & forward & postrouting since final rule might be a fw3 REJECT
|
||||||
|
iptables_prepend_rule "$IPTABLES" filter "zone_${ext_zone}_input" MINIUPNPD
|
||||||
iptables_prepend_rule "$IPTABLES" filter "zone_${ext_zone}_forward" MINIUPNPD
|
iptables_prepend_rule "$IPTABLES" filter "zone_${ext_zone}_forward" MINIUPNPD
|
||||||
$IPTABLES -t nat -A "zone_${ext_zone}_prerouting" -j MINIUPNPD
|
$IPTABLES -t nat -A "zone_${ext_zone}_prerouting" -j MINIUPNPD
|
||||||
iptables_prepend_rule "$IPTABLES" nat "zone_${ext_zone}_postrouting" MINIUPNPD-POSTROUTING
|
iptables_prepend_rule "$IPTABLES" nat "zone_${ext_zone}_postrouting" MINIUPNPD-POSTROUTING
|
||||||
|
|
||||||
# IPv6 if available - filter only
|
# IPv6 if available - filter only
|
||||||
[ -x $IP6TABLES ] && {
|
[ -x $IP6TABLES ] && {
|
||||||
|
iptables_prepend_rule "$IP6TABLES" filter "zone_${ext_zone}_input" MINIUPNPD
|
||||||
iptables_prepend_rule "$IP6TABLES" filter "zone_${ext_zone}_forward" MINIUPNPD
|
iptables_prepend_rule "$IP6TABLES" filter "zone_${ext_zone}_forward" MINIUPNPD
|
||||||
}
|
}
|
||||||
ADDED=$(($ADDED + 1))
|
ADDED=$(($ADDED + 1))
|
||||||
|
|||||||
Reference in New Issue
Block a user