Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

miniupnpd: update and fix nftables variant #19154

Merged
merged 1 commit into from
Aug 25, 2022

Conversation

tiagogaspar8
Copy link
Contributor

Description:

Update the package to a commit that fixes an issue with removing PCP
mappings from nftables.
This also allows us to fix the nftables miniupnpd implementation on
openwrt.
In this new implementation, a table is created at the start of miniupnpd
and it is dedicated to miniupnpd with a priority above the firewall4
table. This allows miniupnpd to go ahead of the drop rules of firewall4
and forward traffic as needed. There was the possibility of adding a
chain inside the firewall4 table, but this would raise an issue where
if firewall4 was reloaded the port forwardings would be lost and
miniupnpd could be out of sync. When miniupnpd is stopped the table is
deleted, taking the port forwardings with it.

Some of this commit is based of msylgj's work, mainly the logic of the
init/hotplug scripts and the makefile build parameters.

@stintel @BKPepe and @msylgj I'd love some feedback on this 😄
And testing also, might work for me but not others.

Signed-off-by: ZiMing Mo msylgj@immortalwrt.org
Signed-off-by: Tiago Gaspar tiagogaspar8@gmail.com

Maintainer: N/A
Compile tested: WRT3200ACM
Run tested: WRT3200ACM

@tiagogaspar8 tiagogaspar8 force-pushed the miniupnpd-nftables-fix branch 2 times, most recently from 9a738c3 to 59270bc Compare August 12, 2022 17:05
@stintel
Copy link
Member

stintel commented Aug 13, 2022

Ping @jow-

net/miniupnpd/Makefile Outdated Show resolved Hide resolved
@tiagogaspar8 tiagogaspar8 force-pushed the miniupnpd-nftables-fix branch 2 times, most recently from b4d1dee to 66641e2 Compare August 16, 2022 14:12
Update the package to a commit that fixes an issue with removing PCP
mappings from nftables.
This also allows us to fix the nftables miniupnpd implementation on
openwrt.
In this new implementation, a table is created at the start of miniupnpd
and it is dedicated to miniupnpd with a priority above the firewall4
table. This allows miniupnpd to go ahead of the drop rules of firewall4
and forward traffic as needed. There was the possibility of adding a
chain inside the firewall4 table, but this would raise an issue where
if firewall4 was reloaded the port forwardings would be lost and
miniupnpd could be out of sync. When miniupnpd is stopped the table is
deleted, taking the port forwardings with it.

Some of this commit is based of msylgj's work, mainly the logic of the
init/hotplug scripts and the makefile build parameters.

Signed-off-by: ZiMing Mo <msylgj@immortalwrt.org>
Signed-off-by: Tiago Gaspar <tiagogaspar8@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants