On 23 Dec 2005, at 14:00, Gavin Seddon wrote:
Hi,
I to have such a script that blocks ip's after 5 'opportunist'
attempts.
See below. How do I rc-update this to default?
Cheers.
I'd dump the current rules to a file (something like /var/lib/
iptables/rules) then have that read in from /etc/conf.d/local.start.
You can also have a script in /etc/conf.d/local.stop which will save
the rules to a file. The advantage of this approach is that if you
change rules on-the-fly the firewall rules will be preserved across
restarts. If you want to have the firewall start as a separate
process to local then try copying an existing init script and
modifying it.
Yours,
Craig
--
Craig Webster | t: +44 (0)131 516 8595 | e: [EMAIL PROTECTED]
Xeriom.NET | f: +44 (0)709 287 1902 | w: http://xeriom.net
--
[email protected] mailing list