Need help with iptables in Linux
I'm retireing my Linksys and turning a P4 I brought home into a simple network gateway.
I'm running Debian Lenny 5.10, don't ask I have my reasons for that version. I'm having issues on getting iptables to reload the rules file I created. Would it be fine if I loaded it on the /etc/rc.local file or should I create a init script?
I'm running Debian Lenny 5.10, don't ask I have my reasons for that version. I'm having issues on getting iptables to reload the rules file I created. Would it be fine if I loaded it on the /etc/rc.local file or should I create a init script?
Comments
This way, if I want to add another port forward, change a rule, etc, it's as easy as just updating the script and rerunning it by hand. The rule will always be applied in the future.
Another common way to do it is to set your iptables how you want it, then run iptables-save. I like the script approach, for the reasons I outline above.
If you need any help getting the rules working how you want, let me know and I'd be happy to share some of my commands and insights with you.
btw lenny today is a stupid idea
Not all of Lenny's repos are gone. Found a third party site that has a mirror including backports-sloppy. Lenny isn't bad to use. Just have to compile the latest fixes by hand instead of using aptitude.
It's for a Dial-up data/fax/voice modem so I can send faxes and also use it for a custom voice mail service for my PBX.