2 # Deal with gentoo's IPtables save file
5 # Returns an error message if something is wrong with iptables on this system
8 if (!-r "/etc/init.d/iptables") {
9 return &text('gentoo_escript', "<tt>/etc/init.d/iptables</tt>");
15 &read_env_file("/etc/conf.d/iptables", \%iptconf);
16 $iptables_save_file = $iptconf{'IPTABLES_SAVE'};
19 # Applies the current iptables configuration from the save file
22 local $out = &backquote_logged("cd / ; /etc/init.d/iptables reload 2>&1");
23 return $? ? "<pre>$out</pre>" : undef;