Compilation of the NAT tool


 
Thread Tools Search this Thread
Top Forums Programming Compilation of the NAT tool
# 1  
Old 09-27-2006
Compilation of the NAT tool

I was wondering if anyone has managed to compile the NAT ( Netbios Auditing Tool ( NOT network adress translation !) for a 2.6 + kernel version since it was written for an older version.
# 2  
Old 09-27-2006
Being a usermode program rather than a driver, kernel changes are largely irrelevant.
Code:
# uname -r
2.6.12-gentoo-r10

# emerge nbaudit

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] net-analyzer/nbaudit-1.0

Would you like to merge these packages? [Yes/No] yes

>>> Emerging (1 of 1) net-analyzer/nbaudit-1.0 to /
>>> Downloading http://distfiles.gentoo.org/distfiles/nat10.tgz
--13:26:52--  http://distfiles.gentoo.org/distfiles/nat10.tgz
           => `/usr/portage/distfiles/nat10.tgz'
Resolving distfiles.gentoo.org... 64.50.236.52, 64.50.238.52, 216.165.129.135, ...
Connecting to distfiles.gentoo.org|64.50.236.52|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 111,835 (109K) [application/x-gzip]

100%[====================================>] 111,835      128.21K/s

13:26:53 (127.99 KB/s) - `/usr/portage/distfiles/nat10.tgz' saved [111835/111835]

>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking nat10.tgz ;-)
>>> Unpacking source...
>>> Unpacking nat10.tgz to /var/tmp/portage/nbaudit-1.0/work
 * Applying nbaudit-1.0-gentoo.diff ...                                   [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/nbaudit-1.0/work/nat10 ...
Compiling nat.c
gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\"  -DLINUX -DSHADOW_PWD -DNO_ASMSIGNALH -trigraphs -c nat.c
Compiling client.c
gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\"  -DLINUX -DSHADOW_PWD -DNO_ASMSIGNALH -trigraphs -c client.c
Compiling util.c
gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\"  -DLINUX -DSHADOW_PWD -DNO_ASMSIGNALH -trigraphs -c util.c
Compiling system.c
gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\"  -DLINUX -DSHADOW_PWD -DNO_ASMSIGNALH -trigraphs -c system.c
Compiling nmb.c
gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\"  -DLINUX -DSHADOW_PWD -DNO_ASMSIGNALH -trigraphs -c nmb.c
Compiling charset.c
gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\"  -DLINUX -DSHADOW_PWD -DNO_ASMSIGNALH -trigraphs -c charset.c
Compiling parse_ip.c
gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\"  -DLINUX -DSHADOW_PWD -DNO_ASMSIGNALH -trigraphs -c parse_ip.c
gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\"  -DLINUX -DSHADOW_PWD -DNO_ASMSIGNALH -trigraphs -o nat  nat.o client.o util.o system.o nmb.o charset.o parse_ip.o -lshadow -L/usr/X11R6/lib/modules
>>> Source compiled.
>>> Test phase [not enabled]: net-analyzer/nbaudit-1.0

>>> Install nbaudit-1.0 into /var/tmp/portage/nbaudit-1.0/image/ category net-analyzer
>>> Completed installing nbaudit-1.0 into /var/tmp/portage/nbaudit-1.0/image/

man:
gzipping man page: nbaudit.1
strip: i386-pc-linux-gnu-strip --strip-unneeded
   usr/bin/nbaudit
>>> Merging net-analyzer/nbaudit-1.0 to /
--- /usr/
--- /usr/bin/
>>> /usr/bin/nbaudit
--- /usr/share/
--- /usr/share/man/
--- /usr/share/man/man1/
>>> /usr/share/man/man1/nbaudit.1.gz
--- /usr/share/doc/
>>> /usr/share/doc/nbaudit-1.0/
>>> /usr/share/doc/nbaudit-1.0/README.gz
>>> /usr/share/doc/nbaudit-1.0/COPYING.gz
>>> Regenerating /etc/ld.so.cache...
>>> net-analyzer/nbaudit-1.0 merged.
>>> Recording net-analyzer/nbaudit in "world" favorites file...

>>> No packages selected for removal by clean.

>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
#

It compiles.
# 3  
Old 09-28-2006
i had no such luck with suse 10.1 though....
# 4  
Old 09-28-2006
Unfortunately, since we can't see your system from here, you might actually have to post some sort of error message for anyone to see what's going wrong.
# 5  
Old 09-28-2006
I've put up the patch Gentoo applied to nbaudit here. This might fix your problem, or might have nothing to do with it. Note that, among other things, it renames the executable to nbaudit instead of nat to avoid confusion.

Last edited by Corona688; 09-28-2006 at 11:52 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

OpenVPN and NAT

Hi. I am attempting to set up an OpenVPN server on my Solaris 11 box by following all the Linux guides. Thus far I have a working VPN that I can connect to and ssh onto my VPN server over which is great but not what I require long term. I would like to route all VPN client requests for addresses... (0 Replies)
Discussion started by: nickb1976
0 Replies

2. Infrastructure Monitoring

Snmp and NAT

Hello, I am facing this scenario: three or more remote LAN (peripheral offices), with the same devices (printers, NAS) in each of them. Those LANs have the same network addresses, i.e.192.168.1.* (are connected to WAN via NAT). I need to collect snmp traps from a central server (public IP).... (4 Replies)
Discussion started by: neutrino
4 Replies

3. Solaris

NAT IPFilter

Hi everybody, I'm running on Solaris 10 X86 (update 1009). I would like to make NAT's rule. I explain you. On Solaris, I configure the principal interface e1000g0 with IP : 192.168.0.33 I created the first logical interface like that : ifconfig e1000g0 addif 192.168.0.40 netmask... (0 Replies)
Discussion started by: aureliensm
0 Replies

4. Shell Programming and Scripting

NAT detection

hellou, can anybody help me with nat detection in real time ? i prefer some detection script because i try some nat detection program's for example p0f or i'm using tcpdump, but i would get contain of specific packet. Some ideas? (1 Reply)
Discussion started by: TheTechnic
1 Replies

5. IP Networking

L2 nat

Hi All, Is there any possibility to change the IP address of a package according to its MAC address. It would be a sort of L2 NAT. (i.e. If the MAC address is 00:1A:A0:1E:XX:XX so the dir IP will be 192.168.X.X) Thanks!. (4 Replies)
Discussion started by: lagigliaivan
4 Replies

6. IP Networking

NAT address

Hi Could anybody tell me the solaris command to display the NAT address Thanks in advance (5 Replies)
Discussion started by: axes
5 Replies

7. IP Networking

NAT question

i have a firewall with two interfaces eth0 and eth1, eth0 is connected to an external network, and eth0 is connected to a private lan. im using this command for NAT iptables -A POSTROUTING -t nat -s 192.168.0.0/24 -o eth0 -j SNAT --to-source 223.0.0.3 my questions are : 1) how can i... (4 Replies)
Discussion started by: ratamahatta
4 Replies

8. BSD

proxy or NAT

how do i configure proxy in freeBSD or NAT so that when i set it up as a server can connect other to my new gateway (0 Replies)
Discussion started by: AkinOkin
0 Replies

9. Linux

NAT Routing in linux

How to use NAT Router in linux Redhat 6 ? and what packages and configuration are required ? (1 Reply)
Discussion started by: salhoub
1 Replies

10. IP Networking

FreeBSD - NAT

Hi All! I have a Pentium 100 (32 MBRAM) with FreeBSD 4.4 installed on it and I am using it as a gateway. When I am downloading (or uploading) stuff simultaneously I see that natd is using up to 100% of the cpu capacity, hence the internet connection becomes blocked. My guess is I will have... (1 Reply)
Discussion started by: Ivo
1 Replies
Login or Register to Ask a Question