<pre>Hi Punky,<br />
<br />
Yes, that's working. But the other way should be working too and is working on other systems. It's also in man pages of iptables:<br />
</pre>
<dl><dt><strong>-D, --delete</strong> <em>chain rule-specification</em> </dt><dt><strong>-D, --delete</strong> <em>chain rulenum</em> </dt><dd>Delete one or more rules from the selected chain. There are two versions of this command: the rule can be specified as a number in the chain (starting at 1 for the first rule) or a rule to match. </dd></dl>How can I use Shorewall on Voyage linux then? I don't think, that I can somehow force Shorewall to use rule numbers instead of rule specification...<br />
<pre><br />
Lukas<br />
<br />
----------------------------<br />
Hi Lukas,<br />
<br />
You need to put a rule number when delete a rule, see iptables -h<br />
<br />
iptables -D chain rulenum [options]<br />
<br />
- Punky<br />
<br />
On 10/11/2010 1:32 PM, Lukáš Pecha wrote:<br />
><em> Hi,<br />
</em>><em><br />
</em>><em> I've recently installed Voyage 0.6.5 on my Alix board and when I started to configure Shorewall, I ran into an error <br />
</em>><em> with iptables.<br />
</em>><em><br />
</em>><em> Shorewall start ends when it tries to remove rule "/sbin/iptables -D INPUT -m state --state ESTABLISHED,RELATED -j <br />
</em>><em> ACCEPT". It just says "Bad rule (does a matching rule exist in that chain?)".<br />
</em>><em><br />
</em>><em> I cleared up the iptables and tried to add the same rule and then remove it manually - it did the same thing again, so <br />
</em>><em> it's not Shorewall, but something with iptables. It's working fine on my other linux box (opensuse). Somehow, iptables <br />
</em>><em> don't find the rule, which I want to remove.<br />
</em>><em><br />
</em>><em> I have kernel version 2.6.30-voyage #1 PREEMPT, shorewall 4.0.15 and iptables 1.4.2 on my Voyage installation.<br />
</em>><em><br />
</em>><em> Does anyone know what to do with it or do you need more information (if yes, what kind of information do you need)?<br />
</em>><em><br />
</em>><em> Thanks in advance,<br />
</em>><em> Lukas<br />
</em>><em><br />
</em>><em> _______________________________________________<br />
</em>><em> Voyage-linux mailing list<br />
</em>><em> <a href="http://list.voyage.hk/mailman/listinfo/voyage-linux">Voyage-linux at list.voyage.hk</a><br />
</em>><em> <a href="http://list.voyage.hk/mailman/listinfo/voyage-linux">http://list.voyage.hk/mailman/listinfo/voyage-linux</a><br />
</em><br />
<br />
-- <br />
Regards,<br />
Punky<br />
<br />
Voyage Solutions (<a href="http://solution.voyage.hk/">http://solution.voyage.hk</a>)<br />
* Embedded Solutions and Systems<br />
- Mesh Networking, Captive Portal, IP Surveillance, VoIP/PBX<br />
- Network Engineering, Development Platform and Consultation<br />
</pre>