Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17th June 2005, 02:39 PM
showe Offline
Registered User
 
Join Date: Jun 2005
Location: naples italy
Posts: 2
disabling the "firewall" fedora core 3 installs by default

hello,

I have looked about a bit to try to find documentation that explains how the default firewall is set up .
I need to know where the config. files are, how to configure them etc. etc.

Actually, the reason why I wanted to know this was to switch the DARN THING off.

I normally write my own script, save it as "firewall" or something like that in the directory /etc/init.d/rc.d/
and add it to my run level.

The result of doing this was that the firewall was overwritten by whatever the gnome-firewall script does during boot up.
When I restarted my firewall, then everything (firewall and masq) worked fine, until I reboot again of course.

I treid disabling various services, but nothing made any difference, and I could not locate any documentation on the gnome-firewall, so I took to guessing at a few strategies instead (reminds me of win 95 at this point).

Anyway, to cut a long story short , I solved the problem by cutting and pasting the firewall script to the file /etc/rc.d/rc.local instead.

I'd like to know why the firewall didn't work before doing this.
Anyone got any ideas/info on this (useless) gnome-firewall so i can try to work out what was going on before I fixed the problem ?
Reply With Quote
  #2  
Old 17th June 2005, 03:12 PM
bytesniper's Avatar
bytesniper Offline
Registered User
 
Join Date: May 2005
Location: Abq, NM
Age: 35
Posts: 1,158
the firewall is actually iptables. if you type service iptables stop from a console it will stop. to keep it off when rebooting you can type chkconfig iptables off.

if you want to learn more about iptables, how it works, and how to configure it there is an excellent guide here.

hope this helps
__________________
I am root. If you see me laughing you better have a backup.
Reply With Quote
  #3  
Old 17th June 2005, 04:13 PM
showe Offline
Registered User
 
Join Date: Jun 2005
Location: naples italy
Posts: 2
I had turned on the auto firewall using the gnome wizard during install.
I noticed before I reset the level in this wizard to "no firewall", there was a reference to a chain that had been auto-created during the execution of this wizard.

I understand quite well how to get the iptables commands to work, my problem is where the commands need to be put to turn them into something that will stop and start everytime i need them to and will also swich on automaticaly when I boot.

where is the "firewall" stored ?
how do I customize entries in it in a text editor ( I hate "wizards")?

I also had tried overwriting the "iptables" script in the /etc/rc.d/init.d/ directory with my custom firewall, but it still did not work as i needed after rebooting.It only worked as expected when I added the iptables commands to my/etc/rc.d/rc.local file.
Reply With Quote
  #4  
Old 17th June 2005, 04:19 PM
kg4cbk Offline
Registered User
 
Join Date: Feb 2005
Posts: 675
The file you want to modify is /etc/sysconfig/iptables. That file is used at start time. bytesniper already described how to start/stop/turn on/off iptables at boot time using chkconfig. You can also use the

service iptables start/stop/status

command to do this after you have booted. Spend a little time reading up on how to use iptables directly instead of hacking your system init files. It is relatively straight forward and will be consistent on any box you get on. Doing things as you described will only work on your system and as you found could have unexpected problems with the system fighting you to control a particular service.
Reply With Quote
  #5  
Old 17th June 2005, 10:20 PM
neoaeon Offline
Registered User
 
Join Date: Apr 2005
Posts: 7
the stock iptables init script has a feature called "save", which will save currently running rules. (kinda like `copy running start` in IOS).

You can run your script, get iptables running the way you want, then use `/etc/init.d/iptables save`, and it will preserve the current config for the next reboot.

-neo
Reply With Quote
Reply

Tags
core, default, disabling, fedora, firewall, installs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Core 9: Screen Resolution can not change from "800X600" to "1024X 768" csoftvietnam Using Fedora 7 26th August 2008 02:11 AM
when fedora team will fix "disabling IRQ #19"? Haber_Nir Using Fedora 2 15th August 2008 10:34 PM
Can't compile "checkpassword-0.90" on a "fedora core 3" system adnieman Using Fedora 1 11th September 2005 08:24 PM
Error:visibility arg must be one of "default", "hidden", "protected" or "internal" wangfeng Using Fedora 0 23rd May 2005 04:59 AM
FC2 installs, no problem. On first reboot, hangs at "Mounting USB Filesystems [OK]" gwilson EOL (End Of Life) Versions 4 13th August 2004 03:56 PM


Current GMT-time: 16:32 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat