2 ms·
At a large, well-known company where I once worked I dropped all the outbound iptables rules on the basis of cost. ipt_do_table was using ~15% of their CPU flee
by jeffbee 6y ago
At a large, well-known company where I once worked I dropped all the outbound iptables rules on the basis of cost. ipt_do_table was using ~15% of their CPU fleet. It was ridiculous. The important thing to know is that the length of the non-matching rules is the scaling factor for iptables. If you have a rule that would short-circuit most packets (such as allow to 10.0.0.0/8 or whatever), put that as the first rule. But more importantly is to force the person who thinks there should be an egress firewall to write down in complete sentences a logical case for it. I found in my career that it's usually just performative netsec, serves no actual purpose and protects nobody from nothing, while costing a fortune.