time模块是由xt_time.ko模块提供的,主要的作用就是指定某条规则的生效时间,例如,限制上班时间大家不允许访问www.taobao.com,然后下班的时候再允许大家访问
iptables -A FORWARD -p tcp -i eth0 -o eth1 -d www.taobao.com -m time –weekdays Mon,Tue,Wed,Thu,Fri –timestart 09:00 –timestop 21:00 -j ACCEPT
iptables -A FORWARD -o eth1 -d www.taobao.com -j DROP
Latest posts by Zhiming Zhang (see all)
- aws eks node 自动化扩展工具 Karpenter - 8月 10, 2022
- ReplicationController and ReplicaSet in Kubernetes - 12月 20, 2021
- public key fingerprint - 5月 27, 2021