Skip to contentSkip to conversation

time modules problem

DISCUSSION sean 2 participants 2 messages Oct 16, 2003

lore
Share & tools
lore

sean

author
#0 lore raw

i get some problem that cannt del law like
adding success
iptables -A FORWARD -p tcp -m time --timestart 08:00 --timestop 16:00 --days Mon -j ACCEPT

delete fail
iptables -D FORWARD -p tcp -m time --timestart 08:00 --timestop 16:00 --days Mon -j ACCEPT
iptables: Bad rule (does a matching rule exist in that chain?)

#1 lore raw
Quoted 9 lines · sean

i get some problem that cannt del law like
adding success
iptables -A FORWARD -p tcp -m time --timestart 08:00 --timestop 16:00 --days Mon -j ACCEPT

delete fail
iptables -D FORWARD -p tcp -m time --timestart 08:00 --timestop 16:00 --days Mon -j ACCEPT iptables: Bad rule (does a matching rule exist in that chain?)

Try:
locate rule:
iptables -L -n --line numbers |more

choose your rule line number from the list

iptables -D FORWARD (line number)

to delete the rule.

Signature · 6 lines
	Alistair Tonner
	nerdnet.ca
	Senior Systems Analyst - RSS
	
     Any sufficiently advanced technology will have the appearance of magic.
	Lets get magical!