 |
 |
 |
 |
| Security Let's be paranoid and secure our penguins. |

2009-11-04, 11:16 AM CST
|
 |
Registered User
|
|
Join Date: Aug 2008
Location: INT 13
Posts: 11

|
|
|
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?
|

2009-11-04, 11:20 AM CST
|
|
Registered User
|
|
Join Date: Mar 2009
Location: /home/In_my_Head
Posts: 313

|
|
It is definitely worth the effort. Knowledge is power. I use http://netfilter.org/ for info and have found it very useful.
|

2009-11-04, 11:36 AM CST
|
|
Registered User
|
|
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 303

|
|
|
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.
|

2009-11-04, 11:43 AM CST
|
 |
Registered User
|
|
Join Date: Aug 2008
Location: INT 13
Posts: 11

|
|
|
@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.
|

2009-11-04, 01:17 PM CST
|
|
Registered User
|
|
Join Date: Jul 2005
Age: 49
Posts: 631

|
|
|
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.
|

2009-11-04, 06:54 PM CST
|
 |
Registered User
|
|
Join Date: Aug 2009
Posts: 164

|
|
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
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.
=
|

2009-11-05, 08:41 AM CST
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 1,763

|
|
|
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
|

2009-11-05, 12:19 PM CST
|
|
Registered User
|
|
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 303

|
|
|
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.
|

2009-11-05, 12:37 PM CST
|
|
Registered User
|
|
Join Date: Mar 2009
Location: /home/In_my_Head
Posts: 313

|
|
Quote:
Originally Posted by jpollard
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?
|

2009-11-05, 12:41 PM CST
|
|
Registered User
|
|
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 303

|
|
|
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.
|

2009-11-05, 12:43 PM CST
|
|
Registered User
|
|
Join Date: Mar 2009
Location: /home/In_my_Head
Posts: 313

|
|
|
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.
|

2009-11-06, 02:57 AM CST
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 1,763

|
|
|
yeah never seen the file get overwritten (on various platforms) then again i don't use rubbish like networkmanager, dhcp, zeroconf, avahi, ipv6 etc.
|

2009-11-06, 09:18 AM CST
|
 |
Registered User
|
|
Join Date: Apr 2006
Location: Ohio, USA
Posts: 4,611

|
|
Well you could learn to use getsockopt/seetsockopt nad parse the route tables yourself. It's educational too.
Quote:
Originally Posted by sej7278
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
|

2009-11-06, 09:53 AM CST
|
|
Registered User
|
|
Join Date: Oct 2009
Posts: 35

|
|
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
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?
|
|

2009-11-08, 08:55 AM CST
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 1,763

|
|
Quote:
Originally Posted by stevea
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.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Automatic Translations (Powered by  ):
All times are GMT -7. The time now is 07:41 AM CST.
|
|
 |
 |
 |
 |
|
|