1 |
Allan Spagnol Comar <allan.comar <at> gmail.com> writes: |
2 |
|
3 |
> I am using iptables 1.2.11-r3 |
4 |
|
5 |
Why not upgrade to: |
6 |
Latest version installed: 1.3.4 |
7 |
|
8 |
> and iptables init.d script doesn´t do |
9 |
> it´s work; had run '/etc/init.d/iptables save' and 'rc-update add |
10 |
> iptables default' but, when the system boots it does not restore the |
11 |
> iptables rules !!!! some one could help me with that !!! |
12 |
|
13 |
Looking at /etc/init.d/iptables I see: |
14 |
case ${iptables_name} in |
15 |
iptables) iptables_proc="/proc/net/ip_tables_names" |
16 |
iptables_save=${IPTABLES_SAVE};; |
17 |
ip6tables) iptables_proc="/proc/net/ip6_tables_names" |
18 |
iptables_save=${IP6TABLES_SAVE};; |
19 |
|
20 |
If you look at /etc/conf.d/iptables I see: |
21 |
|
22 |
IPTABLES_SAVE="/var/lib/iptables/rules-save" |
23 |
|
24 |
# Options to pass to iptables-save and iptables-restore |
25 |
SAVE_RESTORE_OPTIONS="-c" |
26 |
|
27 |
# Save state on stopping iptables |
28 |
SAVE_ON_STOP="yes" |
29 |
|
30 |
Make sure your scripts are ok and correct. |
31 |
|
32 |
rc-status nor 'ps aux | grep iptable will show iptables is |
33 |
running or not. |
34 |
|
35 |
'/etc/init.d/iptables start' will show if iptables is running |
36 |
* WARNING: "iptables" has already been started. |
37 |
|
38 |
Also, 'rc-update add iptables boot' will bring up your firewall |
39 |
before interfaces are up. |
40 |
|
41 |
HTH, |
42 |
James |
43 |
|
44 |
|
45 |
|
46 |
-- |
47 |
gentoo-user@g.o mailing list |