Bloquear Facebook por Horas en GNU/LINUX - IPFIRE

Saludos estimados,
Aquí les dejo como bloquear Facebook(u otra pagina) por horarios:
iptables -I FORWARD -d 192.168.0.0/24 -p tcp -m string --string "facebook.com" --algo kmp -m time --timestart 15:00 --timestop 22:00 --kerneltz -j DROP
iptables -I FORWARD -s 192.168.0.0/24 -p tcp -m string --string "facebook.com" --algo kmp -m time --timestart 15:00 --timestop 22:00 --kerneltz -j DROP
iptables -I FORWARD -d 192.168.0.0/24 -p tcp -m string --string "facebook.com" --algo kmp -m time --timestart 6:00 --timestop 13:00 --kerneltz -j DROP
iptables -I FORWARD -s 192.168.0.0/24 -p tcp -m string --string "facebook.com" --algo kmp -m time --timestart 6:00 --timestop 13:00 --kerneltz -j DROP
Notas:
--kerneltz
Esta opción toma la fecha propia del comando "date" no en el horario UTC
- bitfrost's blog
- Login or register to post comments
- 4319 reads
Comentarios recientes
6 years 43 weeks ago
7 years 14 weeks ago
7 years 15 weeks ago
7 years 15 weeks ago
8 years 30 weeks ago
9 years 37 weeks ago
9 years 37 weeks ago
9 years 38 weeks ago
10 years 34 weeks ago
10 years 41 weeks ago