--days doesn't work with iptables
Issue
- The following returns an error:
iptables -A INPUT -p tcp -s 0/0 --sport 513:65535 -d 10.10.0.0 --dport 22 -m state --state NEW,ESTABLISHED -m time --timestart 09:00 --timestop 18:00 --days Mon,Tue,Wed,Thu,Fri -j ACCEPT
- How to accept connections only on weekdays
Environment
- Red Hat Enterprise Linux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.