Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is there a tool that shows iptables graphically?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dj_farid
l33t
l33t


Joined: 14 Jun 2004
Posts: 613

PostPosted: Thu Nov 16, 2006 9:37 am    Post subject: Is there a tool that shows iptables graphically? Reply with quote

I am not 100% sure if my iptables script works the way I want it to work.
According to my logic it does, but it would feel better to be sure.

So is there a tool that could interpret either my script with commands or the running rules, and then show it in a more understandable way?
Back to top
View user's profile Send private message
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Thu Nov 16, 2006 11:33 am    Post subject: Reply with quote

I don't know about a real visualisation solution, but you might try to build your rules in a more "human readable" way in the first place, it will minimise the chance you do things you didn't want. A great tool for this is shorewall. (I use it on a production server, and found it very easy to make a solid firewall using almost natural language).

Good luck :!:
_________________
Cheers 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Thu Nov 16, 2006 12:09 pm    Post subject: Reply with quote

JeroenV wrote:
I don't know about a real visualisation solution, but you might try to build your rules in a more "human readable" way in the first place, it will minimise the chance you do things you didn't want. A great tool for this is shorewall.


A graphical front-end to setup iptables rules: Firewall Builder
It's even available in portage:
Code:
$ emerge -s fwbuilder
Searching...   
[ Results for search key : fwbuilder ]
[ Applications found : 2 ]
 
*  net-firewall/fwbuilder
      Latest version available: 2.0.12
      Latest version installed: [ Not Installed ]
      Size of files: 1,357 kB
      Homepage:      http://www.fwbuilder.org/
      Description:   A firewall GUI
      License:       GPL-2

*  net-libs/libfwbuilder
      Latest version available: 2.0.12
      Latest version installed: [ Not Installed ]
      Size of files: 275 kB
      Homepage:      http://www.fwbuilder.org/
      Description:   Firewall Builder 2.0 API library and compiler framework
      License:       GPL-2


_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
dj_farid
l33t
l33t


Joined: 14 Jun 2004
Posts: 613

PostPosted: Thu Nov 16, 2006 10:44 pm    Post subject: Reply with quote

Thanks for the replies.
I have tried fwbuilder in the past. It is nice.

The thing is that I want to do it hardcore and do iptables just as a learning experience.
I have a simple script that I have been doing the past days. I am fairly certain that it does exactly what I want it to do.
But there is no easy way to find out. I have done a ShiledsUp test at http://www.grc.com/ and the portscan shows things as I expected.

My thought was that there could be a program that reads the current iptables rules and somehow makes it easier to understand than the output of "iptables -L -n -v". Not that I am completely lost when I read the output, but still a picture would be more clear...
Back to top
View user's profile Send private message
DNAspark99
Guru
Guru


Joined: 03 Sep 2004
Posts: 321

PostPosted: Thu Nov 16, 2006 10:51 pm    Post subject: Reply with quote

FireHOL will let you generate a complex ruleset in a very understandable syntax.

I highly recommend it, it is the only tool I use for iptables configurations.
Back to top
View user's profile Send private message
CZAirwolfOC
n00b
n00b


Joined: 08 Nov 2006
Posts: 32

PostPosted: Thu Nov 16, 2006 11:49 pm    Post subject: Reply with quote

Or use Webmin and its modules.
Back to top
View user's profile Send private message
arpunk
n00b
n00b


Joined: 13 Jun 2006
Posts: 61
Location: Colombia

PostPosted: Fri Nov 17, 2006 4:01 am    Post subject: Reply with quote

Maybe vuurmuur?
Back to top
View user's profile Send private message
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Fri Nov 17, 2006 8:36 am    Post subject: Reply with quote

ah, seems we all kind of misunderstood the question, dj_farid is asking for visualisiation of the rules of an existing iptables firewall.

I'm sorry, don't know about such a tool, although one of the mentioned GUI firewalls may be able to extract the rules from a running firewall and translate them to their native format? That way you may be able to also use the visualisation feature of that GUI.

It may also be possible to write one using semi-automatic graphers like graphiz (and I read about other python based ones) and just parse the output of the IPtables listing and build a graph from it. (You could draw zones for interfaces, and coloured lines between them for connections). Of course this is by no means trivial and a project of its own.
_________________
Cheers 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum