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
- 4518 reads
Comentarios recientes
7 years 17 weeks ago
7 years 41 weeks ago
7 years 41 weeks ago
7 years 42 weeks ago
9 years 4 weeks ago
10 years 12 weeks ago
10 years 12 weeks ago
10 years 13 weeks ago
11 years 9 weeks ago
11 years 16 weeks ago