Quick IP Blocking question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Can you please check if the following rule is correct. The purpose of this rule
is to allow only access to youtube from 15:00 to 18:00

iptables -A OUTPUT -p tcp --dport 80 -d 208.65.153.238 -m time --timestart 15:00 --timeend 18:00 -j ACCEPT 
iptables -A OUTPUT -p tcp --dport 80 -d 208.65.153.238 -j REJECT

How can I modify the above rule to block a specific IP or MAC address from my
internal network to access youtube at specific times?

Thank you guys

Have a nice day

Danny
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux