NAT ACL - não consigo detectar o porque do erro [RESOLVIDO]

1. NAT ACL - não consigo detectar o porque do erro [RESOLVIDO]

Guilherme de Morais Teixeira
guimteixeira

(usa Debian)

Enviado em 29/03/2011 - 09:49h

Olá galera,

instalei o NATACL mas qdo vou subir ele tenho o seguinte erro:

bash: Natacl: command not found
[1] 3764
[1]+ Exit 127 Natacl


Segue aqui o MAKE. Achei um erro no meio dele. (
cp: impossível fazer stat em `NatACL': Arquivo ou diretório não encontrado)

Firewall-1:/home/administrador# cd NatACL.20050311
Firewall-1:/home/administrador/NatACL.20050311# make
cc build_make.c -o .fastmake/build_fast_make.bin
./.fastmake/build_fast_make.bin
Searching Library: [ xml2] FOUND: /usr/lib
Searching Include: [ iconv.h] FOUND: /usr/include
Searching Include: [ libxml/xmlversion.h] FOUND: /usr/include/libxml2
./install.bin make.xml
Building project: NatACL

- Build Program: NatACL -----------------
[System Include path: src/NatACL]
[System Include path: /usr/local/include]
[System Include path: /usr/include]
[System library path: /usr/local/lib]
[System library path: /usr/lib]

-------------------------------------------------------
Searching...

[Include: ssl.h] [FOUND]: /usr/include/openssl
[Library: crypto] [FOUND]: /usr/lib
[Library: ssl] [FOUND]: /usr/lib
[Library: dl] [FOUND]: /usr/lib

Compiling...

Build NatACL.c OK - NOT CHANGED
Build config_file.c

src/NatACL/config_file.c:33:18: error: pcap.h: Arquivo ou diretório não encontrado
src/NatACL/config_file.c: In function ‘read_config_files’:
src/NatACL/config_file.c:279: warning: assignment makes pointer from integer without a cast


FAILED
Build html.c OK - NOT CHANGED
Build log.c OK - NOT CHANGED
Build sha1.c OK - NOT CHANGED
Build util.c OK - NOT CHANGED
Build auth.c OK - NOT CHANGED
Build file.c OK - NOT CHANGED
Build http.c OK - NOT CHANGED
Build ping.c OK - NOT CHANGED
Build socket.c OK - NOT CHANGED
Build webserver.c OK - NOT CHANGED
cc -O2 -rdynamic -s -L/usr/lib -lcrypto -L/usr/lib -lssl -L/usr/lib -ldl src/NatACL/NatACL.o src/NatACL/config_file.o src/NatACL/html.o src/NatACL/log.o src/NatACL/sha1.o src/NatACL/util.o src/NatACL/auth.o src/NatACL/file.o src/NatACL/http.o src/NatACL/ping.o src/NatACL/socket.o src/NatACL/webserver.o -o NatACL


cc: src/NatACL/config_file.o: Arquivo ou diretório não encontrado


FAILED

Installing...

Creating directory: /usr/local
Creating directory: /usr/local/bin
cp -f NatACL /usr/local/bin


cp: impossível fazer stat em `NatACL': Arquivo ou diretório não encontrado



- Build Program: NatACL.log.squid -----------------
[System Include path: src/NatACL]
[System Include path: /usr/local/include]
[System Include path: /usr/include]
[System library path: /usr/local/lib]
[System library path: /usr/lib]

-------------------------------------------------------
Searching...

[Include: ssl.h] [FOUND]: /usr/include/openssl
[Library: ssl] [FOUND]: /usr/lib

Compiling...

Build NatACL.log.squid.c OK - NOT CHANGED
Build file.c OK - NOT CHANGED
Build log.c OK - NOT CHANGED
Build sha1.c OK - NOT CHANGED
Build tail.c OK - NOT CHANGED
Build util.c OK - NOT CHANGED

Installing...

Creating directory: /usr/local
Creating directory: /usr/local/bin
cp -f NatACL.log.squid /usr/local/bin

- Build Program: auth_mysql.so -----------------
[System Include path: src/NatACL]
[System Include path: /usr/local/include]
[System Include path: /usr/include]
[System library path: /usr/local/lib]
[System library path: /usr/lib]

-------------------------------------------------------
Searching...

[Include: mysql.h] [FOUND]: /usr/include/mysql
[Include: NatACL.h] [FOUND]: src/NatACL
[Library: mysqlclient] [FOUND]: /usr/lib
[Library: dl] [FOUND]: /usr/lib

Compiling...

Build Mysql.c OK - NOT CHANGED

Installing...

Creating directory: /var/NatACL
Creating directory: /var/NatACL/modules
Creating directory: /var/NatACL/modules/auth
cp -f auth_mysql.so /var/NatACL/modules/auth

- Build Program: auth_unix.so -----------------
[System Include path: src/NatACL]
[System Include path: /usr/local/include]
[System Include path: /usr/include]
[System library path: /usr/local/lib]
[System library path: /usr/lib]

-------------------------------------------------------
Searching...

[Include: NatACL.h] [FOUND]: src/NatACL
[Library: crypt] [FOUND]: /usr/lib
[Library: dl] [FOUND]: /usr/lib

Compiling...

Build main.c OK - NOT CHANGED

Installing...

Creating directory: /var/NatACL
Creating directory: /var/NatACL/modules
Creating directory: /var/NatACL/modules/auth
cp -f auth_unix.so /var/NatACL/modules/auth
Creating directory: /var/NatACL
Creating directory: /var/NatACL/html
cp -f main.html /var/NatACL/html
Creating directory: /var/NatACL
Creating directory: /var/NatACL/html
cp -f login.html /var/NatACL/html
./post_install.sh
Keeping original /usr/local/etc/NatACL.conf
Keeping original cert_server.pem


####################

Alguem poderia me ajudar?


  


2. Re: NAT ACL - não consigo detectar o porque do erro [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 29/03/2011 - 10:09h

Instale a libpcap e tente d novo...

# aptitude install libpcap


3. Re: NAT ACL - não consigo detectar o porque do erro [RESOLVIDO]

Guilherme de Morais Teixeira
guimteixeira

(usa Debian)

Enviado em 29/03/2011 - 10:18h

Mesmo erro cara, melhor o código do erro mudou de 3764 para 4052

[1]4052
[1]+ Exit 127 Natacl


4. -

Guilherme de Morais Teixeira
guimteixeira

(usa Debian)

Enviado em 29/03/2011 - 10:27h

Olha agora o make...

Firewall-1:/home/administrador/NatACL.20050311# make
cc build_make.c -o .fastmake/build_fast_make.bin
./.fastmake/build_fast_make.bin
Searching Library: [ xml2] FOUND: /usr/lib
Searching Include: [ iconv.h] FOUND: /usr/include
Searching Include: [ libxml/xmlversion.h] FOUND: /usr/include/libxml2
./install.bin make.xml
Building project: NatACL

- Build Program: NatACL -----------------
[System Include path: src/NatACL]
[System Include path: /usr/local/include]
[System Include path: /usr/include]
[System library path: /usr/local/lib]
[System library path: /usr/lib]

-------------------------------------------------------
Searching...

[Include: ssl.h] [FOUND]: /usr/include/openssl
[Library: crypto] [FOUND]: /usr/lib
[Library: ssl] [FOUND]: /usr/lib
[Library: dl] [FOUND]: /usr/lib

Compiling...

Build NatACL.c OK - NOT CHANGED
Build config_file.c

src/NatACL/config_file.c:33:18: error: pcap.h: Arquivo ou diretório não encontrado
src/NatACL/config_file.c: In function ‘read_config_files’:
src/NatACL/config_file.c:279: warning: assignment makes pointer from integer without a cast


FAILED
Build html.c OK - NOT CHANGED
Build log.c OK - NOT CHANGED
Build sha1.c OK - NOT CHANGED
Build util.c OK - NOT CHANGED
Build auth.c OK - NOT CHANGED
Build file.c OK - NOT CHANGED
Build http.c OK - NOT CHANGED
Build ping.c OK - NOT CHANGED
Build socket.c OK - NOT CHANGED
Build webserver.c OK - NOT CHANGED
cc -O2 -rdynamic -s -L/usr/lib -lcrypto -L/usr/lib -lssl -L/usr/lib -ldl src/NatACL/NatACL.o src/NatACL/config_file.o src/NatACL/html.o src/NatACL/log.o src/NatACL/sha1.o src/NatACL/util.o src/NatACL/auth.o src/NatACL/file.o src/NatACL/http.o src/NatACL/ping.o src/NatACL/socket.o src/NatACL/webserver.o -o NatACL


cc: src/NatACL/config_file.o: Arquivo ou diretório não encontrado


FAILED

Installing...

Creating directory: /usr/local
Creating directory: /usr/local/bin
cp -f NatACL /usr/local/bin


cp: impossível fazer stat em `NatACL': Arquivo ou diretório não encontrado



- Build Program: NatACL.log.squid -----------------
[System Include path: src/NatACL]
[System Include path: /usr/local/include]
[System Include path: /usr/include]
[System library path: /usr/local/lib]
[System library path: /usr/lib]

-------------------------------------------------------
Searching...

[Include: ssl.h] [FOUND]: /usr/include/openssl
[Library: ssl] [FOUND]: /usr/lib

Compiling...

Build NatACL.log.squid.c OK - NOT CHANGED
Build file.c OK - NOT CHANGED
Build log.c OK - NOT CHANGED
Build sha1.c OK - NOT CHANGED
Build tail.c OK - NOT CHANGED
Build util.c OK - NOT CHANGED

Installing...

Creating directory: /usr/local
Creating directory: /usr/local/bin
cp -f NatACL.log.squid /usr/local/bin

- Build Program: auth_mysql.so -----------------
[System Include path: src/NatACL]
[System Include path: /usr/local/include]
[System Include path: /usr/include]
[System library path: /usr/local/lib]
[System library path: /usr/lib]

-------------------------------------------------------
Searching...

[Include: mysql.h] [FOUND]: /usr/include/mysql
[Include: NatACL.h] [FOUND]: src/NatACL
[Library: mysqlclient] [FOUND]: /usr/lib
[Library: dl] [FOUND]: /usr/lib

Compiling...

Build Mysql.c OK - NOT CHANGED

Installing...

Creating directory: /var/NatACL
Creating directory: /var/NatACL/modules
Creating directory: /var/NatACL/modules/auth
cp -f auth_mysql.so /var/NatACL/modules/auth

- Build Program: auth_unix.so -----------------
[System Include path: src/NatACL]
[System Include path: /usr/local/include]
[System Include path: /usr/include]
[System library path: /usr/local/lib]
[System library path: /usr/lib]

-------------------------------------------------------
Searching...

[Include: NatACL.h] [FOUND]: src/NatACL
[Library: crypt] [FOUND]: /usr/lib
[Library: dl] [FOUND]: /usr/lib

Compiling...

Build main.c OK - NOT CHANGED

Installing...

Creating directory: /var/NatACL
Creating directory: /var/NatACL/modules
Creating directory: /var/NatACL/modules/auth
cp -f auth_unix.so /var/NatACL/modules/auth
Creating directory: /var/NatACL
Creating directory: /var/NatACL/html
cp -f main.html /var/NatACL/html
Creating directory: /var/NatACL
Creating directory: /var/NatACL/html
cp -f login.html /var/NatACL/html
./post_install.sh
Keeping original /usr/local/etc/NatACL.conf
Keeping original cert_server.pem



5. Re: NAT ACL - não consigo detectar o porque do erro [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 29/03/2011 - 10:32h

Kra, o problema é esse erro:

src/NatACL/config_file.c:33:18: error: pcap.h: Arquivo ou diretório não encontrado
src/NatACL/config_file.c: In function ‘read_config_files’:
src/NatACL/config_file.c:279: warning: assignment makes pointer from integer without a cast

E eu errei informando o pacote. O certo é o descrito abaixo:

# aptitude install libpcap-dev


6. Re: NAT ACL - não consigo detectar o porque do erro [RESOLVIDO]

Guilherme de Morais Teixeira
guimteixeira

(usa Debian)

Enviado em 29/03/2011 - 11:09h

Então olha o que ele me retorna:

Nenhuma versão candidata para libpcap-dev
Nenhuma versão candidata para libpcap-dev
Nenhum pacote será instalado, atualizado ou removido.





7. Re: NAT ACL - não consigo detectar o porque do erro [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 29/03/2011 - 11:16h

Então vamos localizá-lo:

# aptitude search libpcap

Poste o resultado aki.


8. Re: NAT ACL - não consigo detectar o porque do erro [RESOLVIDO]

Guilherme de Morais Teixeira
guimteixeira

(usa Debian)

Enviado em 29/03/2011 - 13:01h

Firewall-1:/home/administrador/NatACL.20050311# aptitude search libpcap
i A libpcap0.8 - system interface for user-level packet capture
i libpcap0.8-dev - development library and header files for libpcap0.8
Firewall-1:/home/administrador/NatACL.20050311#



9. Re: NAT ACL - não consigo detectar o porque do erro [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 29/03/2011 - 13:04h

Hum... vamos v se ele existe no sistema:

# fdisk / -iname pcap.h

Se aparecer nos resultados, devemos modificar o local. Mostre-me a saída, caso tenha.


10. Re: NAT ACL - não consigo detectar o porque do erro [RESOLVIDO]

Guilherme de Morais Teixeira
guimteixeira

(usa Debian)

Enviado em 29/03/2011 - 13:18h

Acho que o iname não é aceito no DEBIAN

Firewall-1:/home/administrador/NatACL.20050311# fdisk / -iname pcap.h
fdisk: opção inválida -- i

Usage: fdisk [-b SSZ] [-u] DISK Change partition table
fdisk -l [-b SSZ] [-u] DISK List partition table(s)
fdisk -s PARTITION Give partition size(s) in blocks
fdisk -v Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors



11. Re: NAT ACL - não consigo detectar o porque do erro [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 29/03/2011 - 13:23h

Kraca! Tou ficando doido! Escrevi errado d novo! O certo é:

# find / -iname pcap.h


12. Re: NAT ACL - não consigo detectar o porque do erro [RESOLVIDO]

Guilherme de Morais Teixeira
guimteixeira

(usa Debian)

Enviado em 29/03/2011 - 14:45h

Retornou isso:

encontrei:

/usr/include/pcap.h



01 02 03



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts