Eric <(E-Mail Removed)> wrote:
> Dear all,
> I setup linux box as firewall and nat using iptables, the executable script
> is under /etc/rc.d/rc.firewall.
> I have searched that to enable the script run or executed on each reboot, i
> need to put
> the command syntax under rc.local.
>
> When i rebooted the machine, i can see that my script is executed. However,
> it does not seem
> to take effect (nat port mapping still does not work) until i manually
> execute the script in the console again.
Hello Eric,
Could you post the relevant lines from rc.local, and your reasons for thinking
that the script executed during boot? Also, what command do you actually use
to execute the script from the console? With the info someone might be able to
pin-point your problem.
In addition, while it might not matter, it couldn't hurt to also post the
distro and kernel that you're using.
Best regards,
David
--
There are no failures--just disappointments--when you have done your best.
- Coach John Wooden, UCLA
|