LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 02-06-2005, 09:59 AM   #1
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Rep: Reputation: 30
Arrow RH-Firewall combining


how to save iptables current policy in appropriate new file?

Last edited by johnnydangerous; 02-06-2005 at 06:14 PM.
 
Old 02-07-2005, 01:05 AM   #2
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Rep: Reputation: 30
iptables-save > /etc/sysconfig/iptables
 
Old 02-07-2005, 01:19 AM   #3
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Original Poster
Rep: Reputation: 30
thanks, and how to auto apply file in - etc/rc.d/init.d/rc.firewall - which I made coz it's executable but not really working on startup

and workaround for chain already exists because I define it in that file rc.... obviously not needed everytime?
 
Old 02-07-2005, 01:30 AM   #4
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Rep: Reputation: 30
normally, if iptables is starting service is started the correct run level then, the /etc/sysconfig/iptables rules will be loaded as default. i have no experience on FC3, but, for FC2 i think it should be working. no prob at all. make sure ur iptables is started a correct run level.

chkconfig iptables --level 3 on
 
Old 02-07-2005, 04:11 AM   #5
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Original Poster
Rep: Reputation: 30
Red face

great that's a good answer to clear things up so is safe to remove the iptables file in sysconfig folder and put my own there? because now I have two of them in /etc/rc.d/init.d/rc.firewall and iptables wondering exactly how to use a single rules set

Last edited by johnnydangerous; 02-07-2005 at 04:13 AM.
 
Old 02-07-2005, 05:24 AM   #6
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 288

Rep: Reputation: 30
The best way would be to clear your current rules

iptables -F

then run your script to set the rules, when the script has ran
service iptables save

will save your new rules

service iptables restart

iptables -L to list your new rules

then to make sure iptables will start automatically

chkconfig iptables on

chkconfig --list iptables

That should be it, your rules will start automatically.
 
Old 02-07-2005, 06:00 AM   #7
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Original Poster
Rep: Reputation: 30
thank you so much man, it's transparent now ) so the save is doing the /etc/sysconfig/iptables guess now I finally deleted that RH-Firewall shit... although it's a good start but a bad overal config if you're in my situation when a LOT of guys attemp some shit on my IP, like when I'm in windows my F-Secure Firewall (which I work for) states all the time - Inbound Sasser probe, or Bagle.C or Kuang.2 and under linux I reveice some strange requests but still not so familiar with the ports used there like those sunrpc or ipp anyone to know why are they used?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
combining pdfs RaI Linux - Software 1 09-09-2005 01:31 PM
Combining files into one cobra7x Linux - General 10 05-05-2005 01:39 AM
Write-combining thiagorobert Linux - Hardware 3 05-11-2004 09:38 PM
Write-combining thiagorobert Linux - Software 2 05-10-2004 03:50 PM
Combining mpegs? BajaNick Linux - Software 4 09-25-2003 11:50 PM


All times are GMT -5. The time now is 11:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration