Bugfix and enhancement

Ciao Alessandro,

I've found a bug in the rule define, building an invalid mangle table. Fixed that.

Also, added state tracking to the remaining chains, in order to improve the generated firewall.

Please see if you agree with these changes. Any comments are welcome :)

Regards,
   Javier