#!/bin/sh
iptables -t nat -N Zdechov
iptables -t nat -F Zdechov
iptables -t nat -A Zdechov -p tcp --dport 80 -j REDIRECT --to-port 3128
iptables -t nat -A Zdechov -j ACCEPT
iptables -t nat -F PREROUTING
iptables -t nat -A PREROUTING -m mac --mac-source 00:05:1C:0B:03:8B -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:E0:4C:20:64:22 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:0A:E6:C8:99:D6 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:05:1C:0A:D3:B5 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:E0:4C:3B:90:9D -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:C0:DF:F9:5E:14 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:05:1C:0A:D7:33 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:50:FC:A6:F7:CC -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:4F:62:00:9A:60 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 4C:00:10:54:6A:FA -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:08:54:1D:11:B4 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:07:40:BB:4B:08 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:E0:98:C5:92:36 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:0E:2E:0F:3A:8C -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:4F:62:01:27:02 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:4F:62:01:26:39 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:4F:62:00:06:2B -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:E0:98:C5:92:36 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:0E:A6:7F:13:A9 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:E0:98:C5:84:CB -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:80:C8:38:74:73 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:4F:62:00:04:AD -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:30:18:66:9A:18 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:11:2F:B4:22:D0 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:4F:66:00:0B:FC -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:40:CA:6A:56:0D -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:E0:98:C5:92:36 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:0F:EA:C1:A9:F0 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:00:00:00:00:00 -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:0C:29:E6:7F:6C -j Zdechov
iptables -t nat -A PREROUTING -m mac --mac-source 00:4F:62:01:64:78 -j Zdechov
iptables -t nat -A PREROUTING -p tcp --dport 3128 -j DROP
iptables -t nat -A PREROUTING -d ! 192.168.0.0/16 -p tcp --dport 80 -j DNAT --to-destination 192.168.0.1:81
iptables -t nat -A PREROUTING -d ! 192.168.0.0/16 -j DROP
