Networking Forums

Networking Forums > Computer Networking > Linux Networking > Access to the NAT tables

Reply
Thread Tools Display Modes

Access to the NAT tables

 
 
Alvaro
Guest
Posts: n/a

 
      12-01-2005, 08:21 AM
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.
 
Reply With Quote
 
 
 
 
Bill Marcum
Guest
Posts: n/a

 
      12-01-2005, 04:35 PM
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
 
Alvaro
Guest
Posts: n/a

 
      12-05-2005, 04:10 PM
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

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IP tables help CCW Linux Networking 0 05-17-2008 11:59 AM
Routing Tables Alex Pearce Windows Networking 1 11-22-2005 01:27 PM
NAT tables chains lekkie.aydot@gmail.com Linux Networking 5 07-29-2005 07:21 PM
Configuring IP Tables Max Linux Networking 1 07-28-2004 06:22 AM
IP Tables - PPTP/GRE + NAT Andrew Townsend Linux Networking 1 06-12-2004 09:23 AM



1 2 3 4 5 6 7 8 9 10 11