def binding_iptables(self, FP): prerouting = Prerouting() external_ip = FP.gateway.ip external_port = FP.gateway_port inner_ip = FP.ip.ip inner_port = FP.ip_port prerouting.add(external_ip, external_port, inner_ip, inner_port)
def binding_iptables(self, FP): prerouting = Prerouting() external_ip = FP.gateway.ip external_port = FP.gateway_port inner_ip = FP.ip.ip inner_port = FP.ip_port prerouting.add( external_ip, external_port, inner_ip, inner_port )