Simplified iptable rules in python file