net-snmp: fix inbound firewall rule support
authorHans Dedecker <dedeckeh@gmail.com>
Mon, 6 Nov 2017 10:39:14 +0000 (11:39 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Sat, 11 Nov 2017 17:06:03 +0000 (18:06 +0100)
commit0bd19db0498780c3ac1e69ebc16c1334a609e285
tree22abec50d196f677b7eda41228aaed03ec1f9bdd
parent62267be5582bc4877ec2813cb03b68cc2fd4cf59
net-snmp: fix inbound firewall rule support

Commit ae5ee6ba6c506b42d942c98349b3a54181790ec8 added support for inbound
firewall rule support but some corner cases were not covered.

In case net-snmp is started and the network interface is already up
the procd firewall rule is created but not applied by fw3 as
service_started calling procd_set_config_changed firewall was missing.

When stopping net-snmp clean up the net-snmp inbound firewall rules in
iptables by calling procd_set_config_changed firewall in stop_service
which will trigger fw3 to remove the inbound firewall rules.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
net/net-snmp/Makefile
net/net-snmp/files/snmpd.init