|
||||||||
|
|
#1
|
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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. > |
![]() |
| Tags |
| access, nat, tables |
| Thread Tools | |
| Display Modes | |
|
|