Persistent iptables? Where to save the script?
First a bit of background: I've had a dedicated server for about 3 years and am used to basic remote adminisitration. The GUI and other features are actually a bit overwhelming...I find myself in terminal pretty often.
At any rate, I'm trying to setup a basic forwarding for my home network. It's run of the mill and it works but is not persistent after reboot or restart. Here is the script I'm using (courtesy of yolinux.com):
Now, I want to apologize to all the vets for such a simple question. I have UFSB and read 14 pages of threads as they releate to "gateway". Most are asking how to troubleshoot their networks and iptables for access. I did not find one explaining how to make a currenty working homenetwork persistent after reboot.
I am using CentOS v3.3 with 2 NIC's. eth0 -> internet, eth1 -> internal
All settings are good on boot (homenetwork functional, external access is good) but the forwarding has to be setup with the script above.
Well.... I have that kind of stuff (things that have to happen at boot time) at the rc.local file. I think that's the quasi-standard place to do that (in a RH-based distribution).
|All times are GMT -5. The time now is 08:01 AM.|