Brian J. Murrell wrote:
Is there a short-term hack I can use to insert a rule of the following form:# iptables -t mangle -I tcfor 3 -m helper --helper sip -j MARK --set-mark 0x1 Where "3" is the number of rules (or number of the last rule) in the tcfor chain? I'm thinking of something in the "start" script, or even a compile-time script, but I don't know if I have knowledge of the number of rules in a given chain or not.
A compile-time script won't work because this is the mangle table. I suppose I could just count them in the script,
but that's a bit hacky. :-)
It's the best you can do until 4.2.0 Beta 2.
I'm using shorewall-perl 4.0.6 on the control station and shorewall-lite 4.0.5 on the router.
Shorewall-perl 4.2.0 Beta2 has a HELPER column in tcrules. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ [EMAIL PROTECTED] PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
_______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
