netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Quick IP Blocking question
@ 2014-03-14 13:58 Danny
  2014-03-14 14:49 ` Greg Folkert
  0 siblings, 1 reply; 3+ messages in thread
From: Danny @ 2014-03-14 13:58 UTC (permalink / raw)
  To: netfilter

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-14 15:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-14 13:58 Quick IP Blocking question Danny
2014-03-14 14:49 ` Greg Folkert
2014-03-14 15:17   ` Ing. Juan Cardoza

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).