#!/bin/sh
# block Blobster and Piolet from downloading the initial peer list
iptables -I FORWARD -i eth0 -p tcp --dport 80 -d 128.121.0.0/16 -j REJECT
# block eDonkey
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 4662 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -i eth0 -p tcp --sport 4662 -j DNAT --to-destination 192.168.1.1
# block Limewire, Morpheus, Bearshare
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 6346:6347 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -i eth0 -p tcp --sport 6346:6347 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -i eth0 -p udp --dport 6346:6347 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -i eth0 -p udp --sport 6346:6347 -j DNAT --to-destination 192.168.1.1
# block eMule
iptables -t nat -A PREROUTING -i eth0 -p udp --dport 4672 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -i eth0 -p udp --sport 4672 -j DNAT --to-destination 192.168.1.1
# block BitTorrent
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 6881:6889 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -i eth0 -p tcp --sport 6881:6889 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -i eth0 -p udp --dport 6881:6889 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -i eth0 -p udp --sport 6881:6889 -j DNAT --to-destination 192.168.1.1
# block WinMx
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 6699 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -i eth0 -p tcp --sport 6699 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -i eth0 -p udp --dport 6699 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -i eth0 -p udp --sport 6699 -j DNAT --to-destination 192.168.1.1
#blokace do moji site
iptables -t nat -A PREROUTING -d foo.bar.1 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.2 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.3 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.4 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.5 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.6 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.7 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.8 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.9 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.10 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.11 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.12 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.13 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.14 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.15 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.16 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.17 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.18 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.19 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.20 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.21 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.22 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.23 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.24 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.25 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.26 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.27 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.28 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.29 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.30 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.31 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.32 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.33 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.34 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.35 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.36 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.37 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.38 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.39 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.40 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.41 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.42 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.43 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.44 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.45 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.46 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.47 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.48 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.49 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.50 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.51 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.52 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.53 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.54 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.55 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.56 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.57 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.58 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.59 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.60 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.61 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.62 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.63 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.64 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.65 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.66 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.67 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.68 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.69 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.70 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.71 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.72 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.73 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.74 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.75 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.76 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.77 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.78 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.79 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.80 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.81 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.82 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.83 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.84 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.85 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.86 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.87 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.88 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.89 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.90 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.91 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.92 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.93 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.94 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.95 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.96 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.97 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.98 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.99 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.100 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.101 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.102 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.103 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.104 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.105 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.106 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.107 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.108 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.109 -j DNAT --to-destination 192.168.1.1
#iptables -t nat -A PREROUTING -d foo.bar.110 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.111 -p tcp --dport 21 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.111 -p tcp --dport 23 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.111 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.1
#iptables -t nat -A PREROUTING -d foo.bar.111 -p tcp --dport 3333 -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d foo.bar.112 -j DNAT --to-destination 192.168.1.1
#blokace vybrane domeny
#iptables -t nat -A PREROUTING -d domena.cz -j DNAT --to-destination 192.168.1.1
iptables -t nat -A PREROUTING -d kmplayer.com -j DNAT --to-destination 192.168.1.1
#ostatni bany
iptables -t nat -A PREROUTING -d 111.111.111.111 -j DNAT --to-destination 192.168.1.1