Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2005

Tip: Looking for answers? Try searching our database.

Java bindings for IPTABLES

Thread view: 
Krashan - 26 Jul 2005 14:04 GMT
Hello!

I guess this is more javish than linuxish question... I'm looking for
(preferably JNI) bindings to linux' IPTABLES. I need to
create/review/update/delete firewall rules from Java.

One thing I can do now is to call 'iptables' command and parse
results, but this is painfully slow.

Is there any project available over there or must I sit on my a** and
write one myself? I guess this would be a great experience to do that -
but might be a bit beyond my reach (read - knowledge)... :( Google
unfortunately gave nothing...

Best regards,
 Pawel Kraszewski
Krashan - 26 Jul 2005 14:15 GMT
Hello!

 I guess this is more javish than linuxish question... I'm looking for
(preferably JNI) bindings to linux' NetFilter. I need to
create/review/update/delete firewall rules from Java.

One thing I can do now is to call 'iptables' command and parse
results, but this is painfully slow.

As I understand, 'NetFilter' is the kernel part I want to talk to,
'iptables' is an example of userspace program to do that from command
line.

Is there any project available over there or must I sit on my a** and
write one myself? I guess this would be a great experience to do that -
but might be a bit beyond my reach (read - knowledge)... :( Google
unfortunately gave nothing...

Best regards,
 Pawel Kraszewski
Juri Kuehn - 26 Jul 2005 14:43 GMT
> Hello!
>
[quoted text clipped - 16 lines]
>  Best regards,
>   Pawel Kraszewski

Hi,
maybe try working with rulesets for iptables. They're also easy to parse
and aren't "painfully slow".
http://www.faqs.org/docs/iptables/saveandrestore.html

Greetings,
Juri
Pawel Kraszewski - 26 Jul 2005 18:39 GMT
> maybe try working with rulesets for iptables. They're also easy to parse
> and aren't "painfully slow".
> http://www.faqs.org/docs/iptables/saveandrestore.html

Nope... I need to generate rules on-the-fly (worse, also rules tor TC) from
database. I would like to make purely java-controlled router with bandwidth
control. And all this will be (well, would be nice to be) controlled via
XML-RPC :)

Signature

Pawel Kraszewski



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.