Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have read the iptables tutorial and have a little understanding of how the rules work, and how they are written, but i'm still a little confused on where the rules actually go. Some refer to /etc/rc.d/rc.firewall, l and others say /etc/rc.d/init.d/iptables. I found a script I would like to use, it seems to be simple but well put together. In the tutorial the say you can cut and paste them into your /etc/rc.d/init.d/ iptables script, and then run the command service iptables save, so I opened the script with kwrite, and there is quite a few commands already in there, so do i delete everything that's already in the script, or do I paste them into a specific place.
to be on a safe side just put it into /etc/rc.d/rc.local file and put all statements in there, but note if you are configuring firewall through iptables system script, take care of not duplicating or erasing other rules
In mandrake the iptables init.d script saves your firewall settings in /etc/sysconfig/iptables. All you have to do is simply configure your firewall at the command line using the iptables command and then use:
service iptables save
That saves your firewall in /etc/sysconfig/iptables and it will get reloaded whenever the iptables init.d script is started.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.