Iptables-p2p problemas na instalação
Sim abaixo seque as mensagem do MAKE:
make -C iptables
make[1]: Entrando no diretório `/root/iptables-p2p/iptables-p2p-0.3.0a/iptables'
gcc -O2 -Wall -DIPTABLES_VERSION=\"1.2.8\" -I../common -c -o libipt_p2p.o libipt_p2p.c
ld -shared -o libipt_p2p.so libipt_p2p.o
make[1]: Saindo do diretório `/root/iptables-p2p/iptables-p2p-0.3.0a/iptables'
make -C kernel linux-2.4
make[1]: Entrando no diretório `/root/iptables-p2p/iptables-p2p-0.3.0a/kernel'
gcc -O3 -D__KERNEL__ -DMODULE -I/root/iptables-p2p/iptables-p2p-0.3.0a/kernel/../common -I/lib/modules/2.4.20-28.8/build/include -I/lib/modules/2.4.20-28.8/build/include/asm/mach-default -c -o main.o main.c
In file included from /usr/include/linux/fs.h:23,
from /usr/include/linux/capability.h:17,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/sched.h:9,
from /usr/include/linux/skbuff.h:19,
from main.c:18:
/usr/include/linux/string.h:8:2: warning: #warning Using kernel header in userland!
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/skbuff.h:19,
from main.c:18:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from /usr/include/linux/sched.h:16,
from /usr/include/linux/skbuff.h:19,
from main.c:18:
/usr/include/asm/bitops.h:333:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:334:2: warning: #warning Using kernel headers in userspace.
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from /usr/include/linux/skbuff.h:19,
from main.c:18:
/usr/include/asm/signal.h:107: parse error before "sigset_t"
/usr/include/asm/signal.h:110: parse error before '}' token
In file included from /usr/include/linux/sched.h:81,
from /usr/include/linux/skbuff.h:19,
from main.c:18:
/usr/include/linux/timer.h:45: parse error before "spinlock_t"
/usr/include/linux/timer.h:53: parse error before '}' token
/usr/include/linux/timer.h:67: parse error before "tvec_base_t"
/usr/include/linux/timer.h:101: parse error before "tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:106: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:121: dereferencing pointer to incomplete type
In file included from /usr/include/asm/pgalloc.h:6,
from /usr/include/linux/highmem.h:5,
from /usr/include/linux/skbuff.h:26,
from main.c:18:
/usr/include/asm/fixmap.h: At top level:
/usr/include/asm/fixmap.h:77: parse error before "pgprot_t"
In file included from /usr/include/linux/highmem.h:5,
from /usr/include/linux/skbuff.h:26,
from main.c:18:
/usr/include/asm/pgalloc.h:59: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `get_pgd_slow':
/usr/include/asm/pgalloc.h:61: `pgd_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:61: (Each undeclared identifier is reported only once
/usr/include/asm/pgalloc.h:61: for each function it appears in.)
/usr/include/asm/pgalloc.h:61: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:61: parse error before ')' token
/usr/include/asm/pgalloc.h:64: `USER_PTRS_PER_PGD' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:66: `swapper_pg_dir' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:67: `PTRS_PER_PGD' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:74: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `get_pgd_fast':
/usr/include/asm/pgalloc.h:84: `pgd_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:84: parse error before ')' token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:87: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `free_pgd_fast':
/usr/include/asm/pgalloc.h:89: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:94: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `free_pgd_slow':
/usr/include/asm/pgalloc.h:103: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:107: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_alloc_one':
/usr/include/asm/pgalloc.h:109: `pte_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:109: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:113: parse error before ')' token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:122: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_alloc_one_fast':
/usr/include/asm/pgalloc.h:132: `pte_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:132: parse error before ')' token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:135: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/include/asm/pgalloc.h:137: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:142: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_free_slow':
/usr/include/asm/pgalloc.h:144: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_mm':
/usr/include/asm/pgalloc.h:188: `current' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_page':
/usr/include/asm/pgalloc.h:195: dereferencing pointer to incomplete type
/usr/include/asm/pgalloc.h:195: `current' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_range':
/usr/include/asm/pgalloc.h:202: `current' undeclared (first use in this function)
In file included from main.c:18:
/usr/include/linux/skbuff.h: At top level:
/usr/include/linux/skbuff.h:100: parse error before "spinlock_t"
/usr/include/linux/skbuff.h:120: parse error before "atomic_t"
/usr/include/linux/skbuff.h:124: parse error before '}' token
/usr/include/linux/skbuff.h:183: parse error before "atomic_t"
/usr/include/linux/skbuff.h:215: parse error before '}' token
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:25,
from main.c:21:
/usr/include/linux/netfilter_ipv4.h:53: `INT_MIN' undeclared here (not in a function)
/usr/include/linux/netfilter_ipv4.h:53: enumerator value for `NF_IP_PRI_FIRST' not integer constant
/usr/include/linux/netfilter_ipv4.h:59: `INT_MAX' undeclared here (not in a function)
/usr/include/linux/netfilter_ipv4.h:59: enumerator value for `NF_IP_PRI_LAST' not integer constant
In file included from main.c:21:
/usr/include/linux/netfilter_ipv4/ip_tables.h:427: parse error before "rwlock_t"
/usr/include/linux/netfilter_ipv4/ip_tables.h:431: parse error before '}' token
main.c: In function `match':
main.c:96: dereferencing pointer to incomplete type
main.c:111: dereferencing pointer to incomplete type
main.c:111: dereferencing pointer to incomplete type
main.c: In function `init':
main.c:141: `KERN_INFO' undeclared (first use in this function)
main.c:141: parse error before string constant
main.c: In function `fini':
main.c:148: `KERN_INFO' undeclared (first use in this function)
main.c:148: parse error before string constant
make[1]: ** [main.o] Erro 1
make[1]: Saindo do diretório `/root/iptables-p2p/iptables-p2p-0.3.0a/kernel'
make: ** [linux-2.4] Erro 2
Iptables-p2p problemas na instalação
Como a rede é a mesma, tenta bloquear o range do ip dela, só não tenho a regra agora, mas comigo funcionou.
Abraços
Iptables-p2p problemas na instalação
ja tentou barrar tudo o que vem pela porta do kazaa?
falando nisso..qual é q porta do kazaa??
hehehe
Iptables-p2p problemas na instalação
Pq você não dá um FORWARD DROP no seu gateway, e sai liberando aquilo que necessita ? ou bloqueie as portas altas que estes p2p utilizam
iptables -A FORWARD -p udp -i ethx -s ipaserbloqueado -d 0/0 --destination-port 1024:65535 -j DROP
iptables -A FORWARD -p tcp -i ethx -s ipaserbloqueado -d 0/0 --destination-port 1024:65535 -j DROP
Iptables-p2p problemas na instalação
Citação:
Postado originalmente por Vaza
ja tentou barrar tudo o que vem pela porta do kazaa?
falando nisso..qual é q porta do kazaa??
hehehe
O problema e que o kazaa tem a capacidade de operar em varias outras portas inclusiv na porta 80