LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2015, 11:31 AM   #1
Chriswf
LQ Newbie
 
Registered: Aug 2015
Posts: 1

Rep: Reputation: Disabled
How to convert iptables to config file


Hello. And thank you for reading.

I've been going crazy trying to find a distro that is visually pleasing to me, but also is simple to configure. I've been through Bodhi, mageia, kde, debian, etc. They're all pretty but I don't like how the iptables have to be configured. Their iptables file is encrypted or coded weirdly.

Centos and manjaro "next" have iptables that I can vi into and easily configure. The problem is centos is amazing but looks very boring. And I don't like arch pacman package system (of Manjaro).

Is there a distro out there for me? Or should I configure iptables?
Or... should I just deal with it?

I'm just worried that if I settle with one of these, that down the road I'll find other things that can't be configured so easily as well.
 
Old 08-22-2015, 08:17 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,314
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
Gufw is a simple, straightforward front-end for configuring iptables. It should be in the repos of any distro you've named. Some distros include a GUI tool for configuring iptables in the control center. I know that Mageia does, because I just looked.

Normally, iptables is not encrypted, but it does have its own syntax. This is a pretty good introduction to it.

You can view your iptables rules by entering

Code:
# iptables -L
as root in a terminal.

Last edited by frankbell; 08-22-2015 at 08:19 PM.
 
Old 08-23-2015, 05:27 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by Chriswf View Post
...I've been through Bodhi, mageia, kde, debian, etc.
One of those things is unl|e the others. DE s a GU the others are dstros. Bodhi is enlightenment-focussed as it's raison d'etre, but something like Debian could be configured to use almost any GUI.

Quote:
Originally Posted by Chriswf View Post
They're all pretty but I don't like how the iptables have to be configured. Their iptables file is encrypted or coded weirdly.
Encrypted I haven't heard of - it is possible I suppose and ultimately there may be a security argument of some kind for it but it isn't common. There is a scheme that I can't remember the name of currently that uses some 'simpler' intermediate language which then produces iptables rules...and that might be easer to recommend if the intermediate language were more clearly 'simpler', so you might as well learn iptables (At least that's how I see it).

Quote:
Originally Posted by Chriswf View Post

Is there a distro out there for me? Or should I configure iptables?
Or... should I just deal with it?

I'm just worried that if I settle with one of these, that down the road I'll find other things that can't be configured so easily as well.
Well the choice between a distro that you fix the appearance of, and a distro that you fix iptables on is a close one; something like kde or Gnome it is easy to alter the appearance of a distro. But, 'altering' isn't the same as 'getting how you would like it' necessarily.

@frankbell
That is a pretty good intro; not accurate in every technical detail, but a good overview for the neophyte. If you wanted more information, then this has a lot more of that. 'iptables -L', I don't really like, though. It omits some critical info, and 'iptables -S' is clearer. If you run a bash script to generate your iptables ruleset, the bash script is usually the clearest.
 
Old 08-23-2015, 05:49 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by salasi View Post
@frankbell
(..) 'iptables -L', I don't really like, though. It omits some critical info, and 'iptables -S' is clearer.
Indeed one shouldn't use 'iptables -L;' to review currently used rule sets, however 'iptables -S' isn't that much better (though it avoids resolving IP addresses and ports which performance-wise is one step forward) as it defaults to listing only the "filter" table unless you explicitly use "-t". Unfortunately it doesn't like multiple "-t" (and even then you'd have to know which tables are in use) so while you could one-liner around that with 'cat /proc/net/ip_tables_names|xargs -iX /sbin/iptables -t 'X' -S;' I'd say 'iptables-save;' still is the single most efficient way to list rule sets in use.
 
  


Reply



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
Where is iptables config file satimis Ubuntu 4 09-12-2007 10:25 PM
Where is the iptables config file? huxflux SUSE / openSUSE 4 06-20-2006 05:24 AM
Location iptables config file freakin'me Linux - Software 10 08-14-2005 08:01 AM
where is the iptables dufault rules config file? ayiiq180 Linux - Software 2 12-18-2004 02:42 AM
location of iptables config file munisp Linux - Networking 1 12-13-2001 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:35 AM.

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