What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Strange iptables rules

Jack Yaz

Part of the Furniture
Can anyone explain what these do for me please?

Code:
-A iptfromlan -o eth0 -m account--aaddr 10.14.16.0/255.255.255.0 --aname lan  -j RETURN
-A iptfromlan -o tun11 -m account--aaddr 10.14.16.0/255.255.255.0 --aname lan  -j RETURN
-A iptfromlan -o tun21 -m account--aaddr 10.14.16.0/255.255.255.0 --aname lan  -j RETURN
-A iptfromlan -o tun21 -m account--aaddr 10.14.16.0/255.255.255.0 --aname lan  -j RETURN
-A iptfromlan -o tun21 -m account--aaddr 10.14.16.0/255.255.255.0 --aname lan  -j RETURN
-A iptfromlan -o tun21 -m account--aaddr 10.14.16.0/255.255.255.0 --aname lan  -j RETURN
-A iptfromlan -o tun21 -m account--aaddr 10.14.16.0/255.255.255.0 --aname lan  -j RETURN
-A ipttolan -i eth0 -m account--aaddr 10.14.16.0/255.255.255.0 --aname lan  -j RETURN
-A ipttolan -i tun11 -m account--aaddr 10.14.16.0/255.255.255.0 --aname lan  -j RETURN
-A ipttolan -i tun21 -m account--aaddr 10.14.16.0/255.255.255.0 --aname lan  -j RETURN
-A ipttolan -i tun21 -m account--aaddr 10.14.16.0/255.255.255.0 --aname lan  -j RETURN
-A ipttolan -i tun21 -m account--aaddr 10.14.16.0/255.255.255.0 --aname lan  -j RETURN
-A ipttolan -i tun21 -m account--aaddr 10.14.16.0/255.255.255.0 --aname lan  -j RETURN
-A ipttolan -i tun21 -m account--aaddr 10.14.16.0/255.255.255.0 --aname lan  -j RETURN
 
It's a limitation/bug in ipt_account, that kernel module fails to remove rules for some reason, as it's unable to locate the existing rule. Unfortunately its author disappeared a few years ago, and never returned my previous emails concerning bugs with the 2.6.36 kernel support (fortunately I was able to fix it myself back then).

Code:
admin@Stargate88:/tmp# iptables -D ipttolan -i tun12 -m account --aaddr 192.168.10.0/255.255.255.0 --aname lan -j RETURN
iptables: Bad rule (does a matching rule exist in that chain?).

Not being a Netfilter kernel code expert, fixing this is outside of my field of expertise. Plus, that old module is becoming increasingly useless, as it cannot handle IPv6 traffic at all, and due to the way it's designed, it never will either.

The issue is more cosmetic than anything (aside from a mostly un-measurable performance hit) , and restarting the firewall will clear up the chains.

Code:
service restart_firewall
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Staff online

Back
Top