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 to post comments
- 8385 reads
Comentarios recientes
8 years 48 weeks ago
9 years 19 weeks ago
9 years 20 weeks ago
9 years 20 weeks ago
10 years 35 weeks ago
11 years 43 weeks ago
11 years 43 weeks ago
11 years 44 weeks ago
12 years 39 weeks ago
12 years 47 weeks ago