miniupnp / miniupnp

UPnP IGD implementation

Home Page:http://miniupnp.free.fr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't assert default policy in nftables scripts?

HarukaMa opened this issue · comments

commented

Currently the nftables init script asserts several default policies:

chain forward {
type filter hook forward priority 0;
policy drop;

chain prerouting {
type nat hook prerouting priority -100;
policy accept;

chain postrouting {
type nat hook postrouting priority 100;
policy accept;

While those are sensible defaults, setting it as a default action might be disruptive depending on the running system's configuration. (Broke my router, actually. Fortunately it's on a local network.)

Removing the policies should not affect how miniupnpd works. Maybe considering removing them?

commented

I'll leave this issue open to let you decide if you still want to change the server's network configuration in a potentially disruptive way by default. You can close this issue if you decide that it's fine.

as explained by @svenauhagen in #650 you don't have to use the default nft_init.sh and can build your own tables/chains.

nft_init.sh is designed to fit the most cases and it is reasonable to drop by default incoming traffic from the internet.

What's the most disruptive, is to install miniupnpd and run its provided init scripts without customizing them and the whole configuration to your needs first.