Deleting rule with "-m time" doesn't work.
Hello,
What could be a reason that deleting rule with "-m time" doesn't work?
When I add sample rule:
iptables -t mangle -A FORWARD -i eth0 -o eth1 -m time --timestart \
18:00 --timestop 19:00 --days Mon,Tue,Wed,Thu,Fri,Sat,Sun -j ACCEPT
and than:
iptables -t mangle -D FORWARD -i eth0 -o eth1 -m time --timestart \
18:00 --timestop 19:00 --days Mon,Tue,Wed,Thu,Fri,Sat,Sun -j ACCEPT
I have following message:
iptables: Bad rule (does a matching rule exist in that chain?)
Deleting rule ie. with iptables -t mangle -D FORWARD 1 works fine.
I used latest v 1.2.6a
Regards,
tw
--