Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Security

Security Let's be paranoid and secure our penguins.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2009-11-04, 11:16 AM CST
Zorg's Avatar
Zorg Offline
Registered User
 
Join Date: Aug 2008
Location: INT 13
Posts: 11
linuxfedorafirefox
iptables future-proof?

I've been using GUI-driven firewalls on Fedora since the start. Some of them are now old and no longer maintained, so the chances of them working with F12 and future releases of Fedora (and Gnome, even Linux in general) are slim at best.

So - is it worth my while to learn iptables syntax/rules so I can set up and modify the firewall at shell level?

Will iptables continue to be used going forward? - Is it worth the investment/headache?
Reply With Quote
  #2  
Old 2009-11-04, 11:20 AM CST
kyryder Offline
Registered User
 
Join Date: Mar 2009
Location: /home/In_my_Head
Posts: 313
linuxfedorafirefox
It is definitely worth the effort. Knowledge is power. I use http://netfilter.org/ for info and have found it very useful.
Reply With Quote
  #3  
Old 2009-11-04, 11:36 AM CST
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 303
linuxfedorafirefox
It is always worth it.

If for nothing else, you will gain an understanding of how IP tables works, as well
as what the GUI is doing, and recognize when it may be doing something wrong.
Reply With Quote
  #4  
Old 2009-11-04, 11:43 AM CST
Zorg's Avatar
Zorg Offline
Registered User
 
Join Date: Aug 2008
Location: INT 13
Posts: 11
linuxfedorafirefox
@kyryder: Thanks

@jpollard: No worries, the whole idea would be too ditch gui firewalls completely and just use the shell.

So far so good, thanks for the help.
Reply With Quote
  #5  
Old 2009-11-04, 01:17 PM CST
William Haller Online
Registered User
 
Join Date: Jul 2005
Age: 49
Posts: 631
linuxfedorakonqueror
By all means - have a go at iptables by hand. I did that for quite a long stretch. I must say I like fwbuilder though. The advantage of the GUIs are that they can give you ideas you might never think of doing just by trying to dredge through the man pages.
Reply With Quote
  #6  
Old 2009-11-04, 06:54 PM CST
diamond_ramsey's Avatar
diamond_ramsey Offline
Registered User
 
Join Date: Aug 2009
Posts: 164
linuxfedorafirefox
Hello Everyone,

+1 for iptables for sure!

Got to love Google Books for ideas, too -

http://books.google.com/books?q=ipta...G=Search+Books

Quote:
Originally Posted by William Haller View Post
By all means - have a go at iptables by hand. I did that for quite a long stretch. I must say I like fwbuilder though. The advantage of the GUIs are that they can give you ideas you might never think of doing just by trying to dredge through the man pages.
FirewallBuilder -

http://www.fwbuilder.org/

http://books.google.com/books?q=fwbu...G=Search+Books

http://blog.fwbuilder.org/2009/06/ne...lable-for.html

Hope this helps.
__________________
=
Three dual core systems with 3.0 GB running the Fedora 12 (Constantine) kernel - vmlinuz-2.6.31.5-127.fc12.i686.PAE
One dual core system with 3.0 GB running the Fedora 13 kernel - 2.6.32-0.51.rc7.git2.fc13.i686.PAE
Eight (8) x86_64 computing cores, 16 GB of RAM and two SATA Seagate 7200.12 500 GB harddisks.
=
Reply With Quote
  #7  
Old 2009-11-05, 08:41 AM CST
sej7278 Online
Registered User
 
Join Date: Sep 2004
Posts: 1,763
linuxfedorafirefox
yes most of the gui's for iptables (especially firestarter!) seem to add uneccessary tables/rules to the iptables config, its much better/easier i find to do it by hand.

some people even use shell scripts to configure their iptables rules, i'm not a fan of that either, just edit /etc/sysconfig/iptables
Reply With Quote
  #8  
Old 2009-11-05, 12:19 PM CST
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 303
linuxfedorafirefox
If you do, don't reboot to apply the changes.

The system shutdown re-creates this file from the existing rules in the system, and
overwrites the file each time.

Any comments you may add to the file will be lost.
Reply With Quote
  #9  
Old 2009-11-05, 12:37 PM CST
kyryder Offline
Registered User
 
Join Date: Mar 2009
Location: /home/In_my_Head
Posts: 313
linuxopera
Quote:
Originally Posted by jpollard View Post
If you do, don't reboot to apply the changes.

The system shutdown re-creates this file from the existing rules in the system, and
overwrites the file each time.

Any comments you may add to the file will be lost.
You know I have heard other people say this, but I have always edited /etc/sysconfig/iptables and saved. I have never had that file revert back. Maybe because I don't allow ip6?
Reply With Quote
  #10  
Old 2009-11-05, 12:41 PM CST
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 303
linuxfedorafirefox
No idea on that -

I do know if you reload the tables before reboot that things will be fine.

I believe the "save on reboot" is to capture any rules applied on the fly
that may not be in the file.
Reply With Quote
  #11  
Old 2009-11-05, 12:43 PM CST
kyryder Offline
Registered User
 
Join Date: Mar 2009
Location: /home/In_my_Head
Posts: 313
linuxopera
Oh, if you access iptables from the firewall GUI I bet it would revert back to GUI settings. You can access the iptables file with a editor like gedit and just hit save and stay away from the GUI.

Last edited by kyryder; 2009-11-05 at 12:47 PM CST.
Reply With Quote
  #12  
Old 2009-11-06, 02:57 AM CST
sej7278 Online
Registered User
 
Join Date: Sep 2004
Posts: 1,763
linuxfedorafirefox
yeah never seen the file get overwritten (on various platforms) then again i don't use rubbish like networkmanager, dhcp, zeroconf, avahi, ipv6 etc.
Reply With Quote
  #13  
Old 2009-11-06, 09:18 AM CST
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 4,611
linuxfedorafirefox
Well you could learn to use getsockopt/seetsockopt nad parse the route tables yourself. It's educational too.



Quote:
Originally Posted by sej7278 View Post
yeah never seen the file get overwritten (on various platforms) then again i don't use rubbish like networkmanager, dhcp, zeroconf, avahi, ipv6 etc.
You know sej' I generally like your posts, but this is about the most ignorant statement I've seen in a long time.

What do you use for a full featured network config service if you don't use dhcp ? dnsmassq will only take you so far.
What do you use on an ipv6 network aside from ipv6 ?
avahi is a pretty sweet little service advertisement schemes - it solves a real problem. What is your alternative ?

I might agree that NM is still a work in progress, but if you are lugging a laptop around the planet is not replaceable. Is there something better ?

I suppose "I don't use rubbish like ethernet" is next ?
__________________
Nothing is so unbelievable that oratory cannot make it acceptable - Cicero
Reply With Quote
  #14  
Old 2009-11-06, 09:53 AM CST
droidhacker Offline
Registered User
 
Join Date: Oct 2009
Posts: 35
linuxfedorafirefox
Just to make things clear, regardless of whose interface you are using, the underlying firewall is, in all cases, iptables.

Quote:
Originally Posted by Zorg View Post
I've been using GUI-driven firewalls on Fedora since the start. Some of them are now old and no longer maintained, so the chances of them working with F12 and future releases of Fedora (and Gnome, even Linux in general) are slim at best.

So - is it worth my while to learn iptables syntax/rules so I can set up and modify the firewall at shell level?

Will iptables continue to be used going forward? - Is it worth the investment/headache?
Reply With Quote
  #15  
Old 2009-11-08, 08:55 AM CST
sej7278 Online
Registered User
 
Join Date: Sep 2004
Posts: 1,763
linuxfedorafirefox
Quote:
Originally Posted by stevea View Post
You know sej' I generally like your posts, but this is about the most ignorant statement I've seen in a long time.

What do you use for a full featured network config service if you don't use dhcp ? dnsmassq will only take you so far.
What do you use on an ipv6 network aside from ipv6 ?
avahi is a pretty sweet little service advertisement schemes - it solves a real problem. What is your alternative ?

I might agree that NM is still a work in progress, but if you are lugging a laptop around the planet is not replaceable. Is there something better ?

I suppose "I don't use rubbish like ethernet" is next ?
lol, ignorant is a bit harsh, but i'm not going to get into it

not sure what you mean with the dhcp/dnsmasq thing, i just use static ips with a resolv.conf and hosts file. even on a large scale deployment i wouldn't use dhcp, i guess its ok for a windows-based office, but on unix servers there's better ways to do it.

ipv6 i just don't think we need enabled by default at this point in time, its only going to confuse matters and lead to more security issues. we may as well go the whole hog and enable sctp by default next.

avahi i don't understand the point of, i really don't want to connect to random networks that my computer might find over wifi or bluetooth or because something is broadcasting as a dhcp/samba/whatever server.

networkmanager i can really see the use of if you have a laptop, but it just doesn't work and probably shares #1 spot on these forums with selinux for causing problems; and is pointless on a desktop/server too. i'd prefer to go back to defaulting to the network service.
Reply With Quote
Reply

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
Proof that Microsoft is going DOWN rappermas Wibble 12 2006-10-05 07:57 PM CDT
What do you see in the future for Technology? I SEE A BRIGHT and PENGUINY FUTURE!!! zivalican_elite Wibble 4 2005-10-25 08:38 AM CDT
What do you see in the future for Technology? I SEE A BRIGHT and PENGUINY FUTURE!!! zivalican_elite Fedora Focus 1 2005-10-20 03:51 AM CDT
What do you see in the future for Technology? I SEE A BRIGHT and PENGUINY FUTURE!!! zivalican_elite Programming 1 2005-10-20 03:50 AM CDT
OLE Linux-proof? tashirosgt Software 2 2004-10-27 11:53 AM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 08:34 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



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 | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Translations by vBET translator