Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

Access to the NAT tables

Reply
 
Thread Tools Display Modes
  #1  
Old 12-01-2005, 09:21 AM
Default Access to the NAT tables



Hi,

I would like to have access to the NAT tables from the application I am
developing. Do you know of some library I may use to do so? It would be
just like dreaming if it was in Java (hahaha)...

I think a workaround would be to use the "ipchains" commands and parse
their output...but that would be ugly.

Thanx.


Alvaro
Reply With Quote
  #2  
Old 12-01-2005, 05:35 PM
Bill Marcum
Guest
 
Posts: n/a
Default Re: Access to the NAT tables

On Thu, 01 Dec 2005 10:21:46 +0100, Alvaro
<(E-Mail Removed)> wrote:
> Hi,
>
> I would like to have access to the NAT tables from the application I am
> developing. Do you know of some library I may use to do so? It would be
> just like dreaming if it was in Java (hahaha)...
>
> I think a workaround would be to use the "ipchains" commands and parse
> their output...but that would be ugly.
>

Use the iptables commands unless you have a very old kernel; or you
could study the source code of iptables.

--
We all like praise, but a hike in our pay is the best kind of ways.
Reply With Quote
  #3  
Old 12-05-2005, 05:10 PM
Alvaro
Guest
 
Posts: n/a
Default Re: Access to the NAT tables

Ok. Then I should parse the output...

Thanks.

Bill Marcum escribió:
> On Thu, 01 Dec 2005 10:21:46 +0100, Alvaro
> <(E-Mail Removed)> wrote:
>
>>Hi,
>>
>>I would like to have access to the NAT tables from the application I am
>>developing. Do you know of some library I may use to do so? It would be
>>just like dreaming if it was in Java (hahaha)...
>>
>>I think a workaround would be to use the "ipchains" commands and parse
>>their output...but that would be ugly.
>>

>
> Use the iptables commands unless you have a very old kernel; or you
> could study the source code of iptables.
>

Reply With Quote
Reply

Tags
access, nat, tables

Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:11 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.