How to add firewall rule on OSMC?

On my LAN I have a “noisy” network device that I’d like to filter out on my Kodi devices (and no, at least for now I can’t solve the issue at the source or from network switch side).

What is the intended way to add some rules to the existing firewall in OSMC (Kodi 19, Vero4k+) ?

Thanks

Hi,

I still use iptables, myself.

Thanks Tom.

Thanks.
Where do you save the rules to be loaded at boot time?

Hi,

I use iptables-peristent

sudo apt-get install iptables-persistent

To save (you will be prompted on first install, but to save changes):

sudo netfilter-persistent save

To make the rules restore on startup:

sudo systemctl enable netfilter-persistent

Thanks Tom.