--days doesn't work with iptables

Solution Unverified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.