dhcp-host=28:37:37:e3:94:12, IPod, 192.168.42.67, 3h
sudo iptables -I FORWARD -p tcp -s
192.168.42.67/32 -j DROP sudo iptables -I FORWARD -p udp -s 192.168.42.67/32 -j DROP |
sudo iptables -D FORWARD -p tcp -s
192.168.42.67/32 -j DROP sudo iptables -D FORWARD -p udp -s 192.168.42.67/32 -j DROP |
crontab -e |
Hier also an jedem Tag der Woche Internet von 16:00 bis 21:00 Uhr für den iPod.
0 16 * * * $HOME/bin/ipodunblock.sh
0 21 * * * $HOME/bin/ipodblock.sh
sudo iptables -I FORWARD -p tcp -s 192.168.42.68/32 -j DROP sudo iptables -I FORWARD -p udp -s 192.168.42.68/32 -j DROP sudo iptables -I FORWARD -p tcp -s 192.168.42.68/32 --dport 53 -j ACCEPT sudo iptables -I FORWARD -p udp -s 192.168.42.68/32 --dport 53 -j ACCEPT sudo iptables -I FORWARD -p udp -s 192.168.42.68/32 --dport 68 -j ACCEPT sudo iptables -I FORWARD -p tcp -s 192.168.42.68/32 --dport 80 -j ACCEPT sudo iptables -I FORWARD -p udp -s 192.168.42.68/32 --dport 123 -j ACCEPT sudo iptables -I FORWARD -p tcp -s 192.168.42.68/32 --dport 443 -j ACCEPT |
sudo iptables -I FORWARD -s 192.168.42.68/32 -j DROP sudo iptables -I FORWARD -s 192.168.42.68/32 -m limit --limit 10/sec -j ACCEPT |
sudo iptables -I FORWARD 1 -s 192.168.42.68/32 -m limit --limit 10/sec -j ACCEPT sudo iptables -I FORWARD 2 -s 192.168.42.68/32 -j DROP |