Skip to contentSkip to conversation

Time match problem

DISCUSSION xubh0660 3 participants 3 messages Jun 19, 2003 – Jun 24, 2003 netfilter

lore
Share & tools
lore

xubh0660

author
#0 lore raw

Hi,
When I am using the time match ,I have the following command:

iptables -A FORWARD -m time --timestart 08:00 --timestop 18:00 \
--days Mon -j ACCEPT

This works well,but when i delete the rule,I have the following command:

iptables -D FORWARD -m time --timestart 08:00 --timestop 18:00 \
--days Mon -j ACCEPT

It does not work,and display:

iptables: Bad rule (Does a matching rule exist in that chain?)

I change the FORWARD chain to INPUT chain or OUTPUT chain,it could work. Does anyone help me? I'm RH 8.0 + iptables 1.2.8

best regards
BenH

===================================================================

#1 lore raw

Hello

Quoted 3 lines

Hi,
When I am using the time match ,I have the following command:
iptables -A FORWARD -m time --timestart 08:00 --timestop 18:00 --days

Mon -j ACCEPT

Quoted 2 lines

This works well,but when i delete the rule,I have the following command:
iptables -D FORWARD -m time --timestart 08:00 --timestop 18:00 --days

Mon -j ACCEPT

Quoted 1 line

It does not work,and display:

I'm aware of the problem for quite some time, it's just that I need a bit of time to fix it...
But I'll do it soon, I promise :)

Cheers,

Fabrice.
--
Fabrice MARIE

"Silly hacker, root is for administrators"
-Unknown

#2 lore raw
Quoted 6 lines · Fabrice MARIE

Hello

Quoted 3 lines

Hi,
When I am using the time match ,I have the following command:
iptables -A FORWARD -m time --timestart 08:00 --timestop 18:00 --days

Mon -j ACCEPT

Quoted 8 lines
Quoted 2 lines

This works well,but when i delete the rule,I have the following command:
iptables -D FORWARD -m time --timestart 08:00 --timestop 18:00 --days

Mon -j ACCEPT

Quoted 1 line

It does not work,and display:

I'm aware of the problem for quite some time, it's just that I need a bit of time to fix it...
But I'll do it soon, I promise :)

Hi Fabrice, could you please submit this to bugzilla so it doesn't get lost (and people can discover that this is a known bug)? Thanks.

Quoted 2 lines

Cheers,
Fabrice.

Signature · 5 lines
- Harald Welte <[email protected]>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie