I checked my other VMs and discovered that they didn't have this rule and that despite deleting the rule, whenever I disconnect the laptop from the wifi and reconnecting it would make this rule get added back
So I thought about doing something to make permanent/persistent changes to these iptables rules unless otherwise that there is good reason as to why port 8082 has to be open for the net VM
I would also like to ask where should I do changes to make iptables rules persistent, in the net VM or the template VM?
Not unless this is because I have already done an update without removing the iptables rule first which caused a complete sync of repository metadata
Thus, when I removed the rule and did an update again, there were no problems because metadata has already been sync'd. Or do you think this hypothesis is wrong?
About that, sorry I forgot to specify which interface it was. By "anywhere" I had intended to mean any source ip address would be permitted to connect to port 8082 but as for the interface, it's definitely vif+
Welp, I suppose I'll do more testing in the following days before concluding that it's safe to just permanently remove it from the iptables rules since it doesn't break my updating of TemplateVMs
I'll just leave this iptables command here for reference:
sudo iptables --insert INPUT 1 -i vif+ -p tcp -m tcp --dport 8082 -j ACCEPT