xref: /linux-tools/misc/scripts/iptables/clear_vips_flat_iptablerules.py (revision abe8ce508af08f1ec5ce27b33832a6722241342b)
1# iptables -t nat -N myservice
2# iptables -t nat -A myservice  -m statistic --mode random --probability 0.3333 -j DNAT --to-destination 172.18.1.3
3# iptables -t nat -A myservice  -m statistic --mode random --probability 0.5 -j DNAT --to-destination 172.18.1.4
4# iptables -t nat -A myservice  -j DNAT --to-destination 172.18.1.5
5
6
7
8# iptables -t nat -A OUTPUT -d 10.10.0.0/16 -j myservice
9
10for a in range(1, 100):
11    for b in range(1, 100):
12        print "iptables -t nat -D OUTPUT -d 10.10.%d.%d/32 -j myservice" % (a, b)
13
14