Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在考虑编写脚本来编辑 Iptable。我想要做的是阻止 facebook,但允许在 1 点到 2 点之间访问它以用于休息目的。我通过简单地丢弃数据包来阻止 Facebook,但我不确定如何设置时间限制,有什么想法吗?
怎么样:
iptables -A OUTPUT ... -m time --timestart 13:00 --timestop 14:00 -j ACCEPT