How do you insert an iptables rules before the end?....
I also asked this question in the security group.
I'm working on an IDS response PERL script (based upon guardian and smack code) that will deny IPs that are trying to do "bad things".
My problem is that services such as SMTP and HTTP are being port forwarded (i.e. in PREROUTE and FORWARD) and if I put insert a new INPUT rule, it doesn't seem to work.
Any suggestions for how I need to build my rules so that after I set up the basic configuraiton I can later go back in and deny access?
|