Gentoo Archives: gentoo-user

From: dg <dg@××××××××××.ru>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] launching iptables
Date: Wed, 02 Aug 2006 21:58:43
Message-Id: 200608030153.29462.dg@kaboom.spb.ru
In Reply to: [gentoo-user] launching iptables by James
1 On Thursday 03 August 2006 00:41, James wrote:
2 > Hello,
3 >
4 > I've got my own iptables script to launch a customized firewall, located in
5 > /usr/local/bin.
6 >
7 > I'm aware of /etc/init.d/iptables the 'runscipt'. I do not wish to edit
8 > this scipt as 'gentoo' updates nuke my edits therein. Where is the gentoo
9 > place of preference to launch my scipt after the gentoo runscipt
10 > '/etc/init.d/iptables' is finished running?
11 >
12 > Is their a way to get 'rc-update add <my_firewall> default' to launch
13 > my_firewall without putting it in the /etc/init.d/ dir and using the
14 > runscipt template for my script?
15 >
16 >
17 > thoughts, suggestions and examples are most welcome.
18 >
19 >
20 > James
21
22 Just run your script once, then do
23 /etc/init.d/iptables save
24 /etc/init.d/iptables start
25 and
26 rc-update add iptables default
27
28 ... and it will load your rules and start firewall automatically.
29
30 BR,
31 dmitri
32 --
33 gentoo-user@g.o mailing list

Replies

Subject Author
[gentoo-user] Re: launching iptables James <wireless@×××××××××××.com>