LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-08-2004, 01:43 AM   #1
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Iptables Confusion


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.

currently running mdk 9.1

thanks
 
Old 01-08-2004, 08:30 AM   #2
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
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
 
Old 01-08-2004, 08:39 AM   #3
hazza
Member
 
Registered: Nov 2003
Location: Australia
Distribution: Mandrake, SUSE, Fedora
Posts: 122

Rep: Reputation: 15
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.
 
Old 01-08-2004, 05:24 PM   #4
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Original Poster
Rep: Reputation: 62
thanks that makes it esier to understand
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
a little confusion..... b0nd Linux - Newbie 1 02-17-2005 06:45 AM
iptables confusion ...? marlor Linux - Security 5 07-10-2004 10:17 AM
confusion on iptables gauge73 Linux - Networking 5 12-17-2003 07:31 AM
WM Confusion phoeniXflame Slackware 3 02-16-2003 05:19 AM
Some confusion about RH 7.3 psyklops Linux - Distributions 2 05-08-2002 03:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration