Hello all,
I feel kind of stupid asking this question, but I have not been able to find any answers to it anywhere else. I have had some *nix java development exposure, but most of my professional networking/configuration has been on Windows based platforms.
I have been playing around with Red Hat Linux 7.2 and IPTables. After a lot of reading, I was finally able to paint a basic rule set that allows me to browse the internet from the firewall machine and from my internal network. I just opened (I think) TCP port 22 to incoming traffic to allow me to connect to the machine using SSH from work.
I have created a bash script that I can run from a terminal window to flush the current IPTables rules and create my basic ruleset.
The problem is I lose my ruleset everytime I reboot the machine. In all reality, it is not that big a deal, I can just log in and rerun the script each time I reboot since I won't be rebooting. The problem is that I would prefer to not have to do this since if I forget, my family is connectionless.
I tried running "iptables-save" and it appears to do what I want, but it doesn't. When I reboot, the rules are gone.
Are there any suggestions? Thanks.
I feel kind of stupid asking this question, but I have not been able to find any answers to it anywhere else. I have had some *nix java development exposure, but most of my professional networking/configuration has been on Windows based platforms.
I have been playing around with Red Hat Linux 7.2 and IPTables. After a lot of reading, I was finally able to paint a basic rule set that allows me to browse the internet from the firewall machine and from my internal network. I just opened (I think) TCP port 22 to incoming traffic to allow me to connect to the machine using SSH from work.
I have created a bash script that I can run from a terminal window to flush the current IPTables rules and create my basic ruleset.
The problem is I lose my ruleset everytime I reboot the machine. In all reality, it is not that big a deal, I can just log in and rerun the script each time I reboot since I won't be rebooting. The problem is that I would prefer to not have to do this since if I forget, my family is connectionless.
I tried running "iptables-save" and it appears to do what I want, but it doesn't. When I reboot, the rules are gone.
Are there any suggestions? Thanks.
