python-iptables-list Mailing List for python-iptables
Status: Beta
Brought to you by:
mithro
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Johann G. <Joh...@gm...> - 2010-06-23 15:05:17
|
Hi! Unfortunately this project seems quite dead for sime time now. We'd like to implement our firewall scripts with Python and therefore really would prefer a nice object oriented wrapper instead of os.execv('iptables',[...]). Alexander Reelsen <alr@em...> - 2005-11-10 12:25, did you get forward with your wrapper and would be willing to share? That would help us a lot! Thanks Hansi |
From: <com...@gm...> - 2007-08-06 08:39:26
|
On Monday 06 August 2007 11:19:36 you wrote: > On Mon, 2007-08-06 at 11:14 +0300, O=C4=9Fuz Yar=C4=B1mtepe wrote: > > Hi, > > > > I was looking for the usage of python-iptables module but i couldnt find > > any example. Tyring with ipython and importing the iptables i checked t= he > > methods and the source file but couldnt visualise how i will add or > > insert a new rule to the iptables ruleset. Is there any document or > > example that i can check or may you please just simply show me a simple > > example that is inserting a rule? > > You can currently only read out the rules. Even then I doubt it works as > it has suffered a couple of years of bitrot. ok > > > I will use this module only for inserting a new rule, now. But in the > > future i may need to work on the iptables ruleset, read it and get > > dublicated rules and clear them out. So do you suggest me to use this > > module, because in the email list i read the project is on hold. > > I just don't have time to work on this project anymore. Feel free to > work on it however. I dont know now but i will remember this. Thanx. > > Tim Ansell =2D-=20 O=C4=9Fuz Yar=C4=B1mtepe http://www.yarimtepe.com/en |
From: Tim A. <mi...@mi...> - 2007-08-06 08:19:41
|
On Mon, 2007-08-06 at 11:14 +0300, O=C4=9Fuz Yar=C4=B1mtepe wrote: > Hi, >=20 > I was looking for the usage of python-iptables module but i couldnt fin= d any=20 > example. Tyring with ipython and importing the iptables i checked the m= ethods=20 > and the source file but couldnt visualise how i will add or insert a ne= w rule=20 > to the iptables ruleset. Is there any document or example that i can ch= eck or=20 > may you please just simply show me a simple example that is inserting a= rule? You can currently only read out the rules. Even then I doubt it works as it has suffered a couple of years of bitrot. > I will use this module only for inserting a new rule, now. But in the f= uture i=20 > may need to work on the iptables ruleset, read it and get dublicated ru= les=20 > and clear them out. So do you suggest me to use this module, because in= the=20 > email list i read the project is on hold. I just don't have time to work on this project anymore. Feel free to work on it however. Tim Ansell |
From: <com...@gm...> - 2007-08-06 08:14:38
|
Hi, I was looking for the usage of python-iptables module but i couldnt find an= y=20 example. Tyring with ipython and importing the iptables i checked the metho= ds=20 and the source file but couldnt visualise how i will add or insert a new ru= le=20 to the iptables ruleset. Is there any document or example that i can check = or=20 may you please just simply show me a simple example that is inserting a rul= e? I will use this module only for inserting a new rule, now. But in the futur= e i=20 may need to work on the iptables ruleset, read it and get dublicated rules= =20 and clear them out. So do you suggest me to use this module, because in the= =20 email list i read the project is on hold. =2D-=20 O=C4=9Fuz Yar=C4=B1mtepe http://www.yarimtepe.com/en |
From: Alexander R. <al...@em...> - 2005-11-10 12:25:28
|
Hi > python-iptables is currently on hold because of major changes which are > happening in the userspace to kernel interface. Once these have > stabilised I will get back to writing it. Can you give some references to those problems (if handy, I just dont have time till the late weekend to get back to that topic)? > c = iptc.Chain(t, "PREROUTING") <--- Getting the first rule > r = c.first() > print r > print r.counters <--- The counters for the first rule Oh. Ok. Thx > Please note that the current version only compile with the very old > version of iptables (1.2.5). So is unlikely to work with anything else. This is not an option. As this is python and object oriented I will write a wrapper class using temporarily iptables commands, which will be replaced with pipt when it is ready :) Thanks for your help anyway! Regards, Alexander |
From: Tim A. <mi...@mi...> - 2005-11-10 12:09:26
|
python-iptables is currently on hold because of major changes which are happening in the userspace to kernel interface. Once these have stabilised I will get back to writing it. With the current version you should be able to get the counters for each rule. c = iptc.Chain(t, "PREROUTING") <--- Getting the first rule r = c.first() print r print r.counters <--- The counters for the first rule Please note that the current version only compile with the very old version of iptables (1.2.5). So is unlikely to work with anything else. Mithro On Thu, 2005-11-10 at 09:09 +0100, Alexander Reelsen wrote: > Hi > > Just wanted to ask about any release plans of python-iptables (and future > plans at all, as there does not seem be too much action lately). I'd like > to test and help where possible. > > Judging by the test.py example script, there is currently no way of > getting counters of specific rules, or? > > This is what I am seeking for. I want to write an accounting tool in > python with RRD backend (there are just no products currently which do > what I need). > > > Regards, Alexander > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > python-iptables-list mailing list > pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-iptables-list |
From: Alexander R. <al...@em...> - 2005-11-10 08:09:18
|
Hi Just wanted to ask about any release plans of python-iptables (and future plans at all, as there does not seem be too much action lately). I'd like to test and help where possible. Judging by the test.py example script, there is currently no way of getting counters of specific rules, or? This is what I am seeking for. I want to write an accounting tool in python with RRD backend (there are just no products currently which do what I need). Regards, Alexander |
From: Tim A. <mi...@mi...> - 2005-06-01 00:57:14
|
This is the first testing message to the list. Tim Ansell |