LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-31-2007, 09:56 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
How to create a new rule in the default firewall?


Hi!
I have FC5 with the default firewall. I would like to create a new rule which would allow a specific IP-address to do everything. The graphical Tool to configure the firewall allows only to specify ports or dämons (sshd usw...) but not to specify other things like Ip-Address. Is there a way to configure this default firewall or do I have to abandon it in order to create this one rule?
To make things maybe more clear: the problem for me is not to write this one rule (the syntax wouldn't be a problem), but to find the way how to include it in this default firewall, since I have to use its configuration's tool.
 
Old 01-31-2007, 07:18 PM   #2
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,271

Rep: Reputation: 249Reputation: 249Reputation: 249
Quote:
Originally Posted by xpucto
Hi!
I have FC5 with the default firewall. I would like to create a new rule which would allow a specific IP-address to do everything. The graphical Tool to configure the firewall allows only to specify ports or dämons (sshd usw...) but not to specify other things like Ip-Address. Is there a way to configure this default firewall or do I have to abandon it in order to create this one rule?
To make things maybe more clear: the problem for me is not to write this one rule (the syntax wouldn't be a problem), but to find the way how to include it in this default firewall, since I have to use its configuration's tool.
I'm not sure exactly how to add a specific rule to the default firewall. One easy way of doing this is to download firestarter (yum -y install firestarter). It's a GUI based iptables rule generator. It will allow you to do those kinds of things.
 
Old 02-01-2007, 12:08 PM   #3
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by stormtracknole
I'm not sure exactly how to add a specific rule to the default firewall. One easy way of doing this is to download firestarter (yum -y install firestarter). It's a GUI based iptables rule generator. It will allow you to do those kinds of things.
Thanks! I've just installed firestarter, very interesting so far! Unfortunatly it seems to start the iptable all over again, without re-using the rules that have been defined so far. Or is there a way to import rules that have been pre-defined?
 
Old 02-01-2007, 12:44 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,466

Rep: Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218
Fedora uses service scripts. You can add a rule via the command line and then to save run the command:
services iptables save
or
iptables-save

Fedora uses service scripts.
The rules are saved in /etc/sysconfig/iptables. When the iptables service starts the rules are read. When the rules are save via the above commands they are rewritten to this file.
 
  


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
Default Rule in Iptables winxlinx Linux - Networking 12 12-08-2011 03:42 AM
newbie - firewall rule danimalz Linux - Security 3 07-30-2005 08:25 AM
how to create ip rule table? yenonn Linux - Networking 6 07-26-2005 12:57 AM
funny new firewall rule tom_from_van Linux - Security 3 07-19-2005 12:39 PM
Need A Firewall Rule linuxboy69 Linux - Software 1 11-26-2003 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:28 PM.

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