سلام من 1 سوال خيلي فوري دارم.
ميخام بدونم با SQUID كه داره كار ميكونه wccp رو فعال كنم.
فكر ميكنم كه تنظيمات روتر تقريا كامل باشه.
تورو خدا زود جواب بدين
موضوعات مشابه:
|
سلام من 1 سوال خيلي فوري دارم.
ميخام بدونم با SQUID كه داره كار ميكونه wccp رو فعال كنم.
فكر ميكنم كه تنظيمات روتر تقريا كامل باشه.
تورو خدا زود جواب بدين
موضوعات مشابه:
خوب شد كه گوفتم عجله دارم وگنه كه ...
برای اینکه بشه Squid رو به صورت wccp استفاده کرد نياز داريد که يک Module و يا به عبارتی يک نرم افزار رو در هسته سيستم عامل Load کنيد.
اول اين رو از اينجا دانلود کنيد
http://www.squid-cache.org/WCCP-support/
برای کامپايل کردن!! شما حتما بايد Kernel developer و Software developer رو روی لينوکس نصب کنيد.
Compile the WCCP Module
Compile ip_wccp.c:
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -c -o ip_wccp.o ip_wccp.c
Copy ip_wccp.o to /lib/modules/<kernel-version>/kernel/net/ipv4
دقت کن در هر نسخه از لينوکس Path ها رو چک کنی که موجود باشه!
مثل
usr/src/linux/include/linux/modversions.h
و يا
usr/src/linux/include
در آخر دستور زير رو در rc.local می ذارين!
insmod ip_wccp
برای squid هم اين خط رو تغيير ميدين!
wccp_router x.x.x.x
موفق باشيد
صادق جان از لطفت و راهنماييت ممنونم.
ولي مشكل اينه كه اين پد ها وجود نداره و وقتي كه اينو كمپال مي كنم فقط ارور و وارنينگ مي ده
هر جاي ديگه از لينوكس رو گشتم يكي از شاخه ها نبود.
مثلاusr/src/linux/include
اون يكي فايل هم مسيرش usr/include/linux/modversions.h بود.
او يكي شاخه اصلا وجود خارجي نداره
راستي من ديروز اين لينكو پيداhttp://www.angelfire.com/un/azimi/squid-wccp.htm كردم .ولي....
اگه اكان داره بيشتر كمك كنين.
من توي لينوكس خيلي پرت هستم.
ممنون مي شم.
از چه لينوكسي استفاده مي كني؟!!
بگو كامپايل شده برات بفرستم عزيز دل برادر...
موفق باشي
راستي اين هم متن ارور هست كه ميده.
gcc -D__KERNEL__ -I/usr/include/linux -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -
fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/include/linux/modversions.h -c -o ip_wccp.o ip_wccp.c
In file included from <command line>:1:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
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 ip_wccp.c:33:
/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 ip_wccp.c:33:
/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 ip_wccp.c:33:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from ip_wccp.c:33:
/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 ip_wccp.c:33:
/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/linux/highmem.h:5,
from /usr/include/linux/skbuff.h:26,
from ip_wccp.c:35:
/usr/include/asm/pgalloc.h:6:24: asm/fixmap.h: No such file or directory
In file included from /usr/include/linux/highmem.h:5,
from /usr/include/linux/skbuff.h:26,
from ip_wccp.c:35:
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:57: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `get_pgd_slow':
/usr/include/asm/pgalloc.h:59: `pgd_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:59: (Each undeclared identifier is reported only once/usr/include/asm/pgalloc.h:59: for each function it appears in.)
/usr/include/asm/pgalloc.h:59: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:59: parse error before ')' token
/usr/include/asm/pgalloc.h:62: `USER_PTRS_PER_PGD' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:63: `swapper_pg_dir' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:63: `PTRS_PER_PGD' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:70: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `get_pgd_fast':
/usr/include/asm/pgalloc.h:80: `pgd_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:80: parse error before ')' token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:83: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `free_pgd_fast':
/usr/include/asm/pgalloc.h:85: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:90: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `free_pgd_slow':
/usr/include/asm/pgalloc.h:99: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:103: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_alloc_one':
/usr/include/asm/pgalloc.h:105: `pte_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:105: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:109: parse error before ')' token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:118: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_alloc_one_fast':
/usr/include/asm/pgalloc.h:127: `pte_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:127: parse error before ')' token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:130: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/include/asm/pgalloc.h:132: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:137: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_free_slow':
/usr/include/asm/pgalloc.h:139: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_mm':
/usr/include/asm/pgalloc.h:183: `current' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_page':
/usr/include/asm/pgalloc.h:190: dereferencing pointer to incomplete type
/usr/include/asm/pgalloc.h:190: `current' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_range':
/usr/include/asm/pgalloc.h:197: `current' undeclared (first use in this function)
In file included from ip_wccp.c:35:
/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
ip_wccp.c:42:26: net/checksum.h: No such file or directory
ip_wccp.c:43:26: net/protocol.h: No such file or directory
In file included from ip_wccp.c:44:
/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
ip_wccp.c:45:20: net/ip.h: No such file or directory
ip_wccp.c:46:26: net/inet_ecn.h: No such file or directory
ip_wccp.c: In function `ip_wccp_ecn_decapsulate':
ip_wccp.c:63: dereferencing pointer to incomplete type
ip_wccp.c:65: warning: implicit declaration of function `INET_ECN_is_ce'
ip_wccp.c:65: dereferencing pointer to incomplete type
ip_wccp.c:66: warning: implicit declaration of function `INET_ECN_is_not_ce'
ip_wccp.c:66: dereferencing pointer to incomplete type
ip_wccp.c:67: warning: implicit declaration of function `IP_ECN_set_ce'
ip_wccp.c: In function `ip_wccp_rcv':
ip_wccp.c:76: warning: implicit declaration of function `pskb_may_pull'
ip_wccp.c:79: dereferencing pointer to incomplete type
ip_wccp.c:80: dereferencing pointer to incomplete type
ip_wccp.c:84: dereferencing pointer to incomplete type
ip_wccp.c:84: dereferencing pointer to incomplete type
ip_wccp.c:92: dereferencing pointer to incomplete type
ip_wccp.c:93: dereferencing pointer to incomplete type
ip_wccp.c:93: warning: implicit declaration of function `pskb_pull'
ip_wccp.c:95: dereferencing pointer to incomplete type
ip_wccp.c:97: dereferencing pointer to incomplete type
ip_wccp.c:100: warning: implicit declaration of function `IPCB'
ip_wccp.c:100: invalid type argument of `->'
ip_wccp.c:100: sizeof applied to an incomplete type
ip_wccp.c:101: dereferencing pointer to incomplete type
ip_wccp.c:102: dereferencing pointer to incomplete type
ip_wccp.c:104: warning: implicit declaration of function `dst_release'
ip_wccp.c:104: dereferencing pointer to incomplete type
ip_wccp.c:105: dereferencing pointer to incomplete type
ip_wccp.c:114: warning: implicit declaration of function `netif_rx'
ip_wccp.c:118: warning: implicit declaration of function `kfree_skb'
ip_wccp.c: At top level:
ip_wccp.c:129: variable `ipwccp_protocol' has initializer but incomplete type
ip_wccp.c:130: warning: excess elements in struct initializer
ip_wccp.c:130: warning: (near initialization for `ipwccp_protocol')
ip_wccp.c:131: warning: excess elements in struct initializer
ip_wccp.c:131: warning: (near initialization for `ipwccp_protocol')
ip_wccp.c:132: warning: excess elements in struct initializer
ip_wccp.c:132: warning: (near initialization for `ipwccp_protocol')
ip_wccp.c:133: warning: excess elements in struct initializer
ip_wccp.c:133: warning: (near initialization for `ipwccp_protocol')
ip_wccp.c:134: warning: excess elements in struct initializer
ip_wccp.c:134: warning: (near initialization for `ipwccp_protocol')
ip_wccp.c:135: warning: excess elements in struct initializer
ip_wccp.c:135: warning: (near initialization for `ipwccp_protocol')
ip_wccp.c:137: warning: excess elements in struct initializer
ip_wccp.c:137: warning: (near initialization for `ipwccp_protocol')
ip_wccp.c: In function `wccp_add_protocol':
ip_wccp.c:138: warning: implicit declaration of function `inet_add_protocol'
ip_wccp.c: In function `wccp_del_protocol':
ip_wccp.c:139: warning: implicit declaration of function `inet_del_protocol'
ip_wccp.c: In function `ip_wccp_init':
ip_wccp.c:144: warning: implicit declaration of function `printk'
ip_wccp.c:144: `KERN_INFO' undeclared (first use in this function)
ip_wccp.c:144: parse error before string constant
ip_wccp.c: In function `ip_wccp_fini':
ip_wccp.c:152: `KERN_INFO' undeclared (first use in this function)
ip_wccp.c:152: parse error before string constant
ip_wccp.c: At top level:
ip_wccp.c:129: storage size of `ipwccp_protocol' isn't known
[root@cache-squid root]#
سلام صادق خان گل.
از لطفت متشكر هستم.
اگه امكان داره كامپايل شدش رو بهم بدي مرسي ميشم.
Fedora 2
با كرنل linux-2.6.5-1.358
اگه كمي عجله كني ممنون ميشم.
دوست عزيز دل انگيز...
اين نسخه از ip_wccp براي كرنل 2.6 نوشته نشده!!
از كرنل 2.4 بايستي استفاده كني..
مثل Fedora Core 1
موفق باشيد
[LEFT]
squid-users
<-- Chronological --> Find <-- Thread -->
Re: [squid-users] Re: Ip wccp patch for kernel 2.6 Fedora2
--------------------------------------------------------------------------------
From: unixware
Subject: Re: [squid-users] Re: Ip wccp patch for kernel 2.6 Fedora2
Date: Wed, 01 Sep 2004 01:11:23 -0700
--------------------------------------------------------------------------------
> Hi everybody,
>
> > Download the entire package:
> >
>
http://www.squid-cache.org/WCCP-supp...ccp-1.6.tar.gz
> > It includes a Makefile that should allow you to
> build on kernel 2.6.X
>
These steps work for Redhat Fedora Core which i use
without compiling the whole kernel .
1. install the kernel source that come with the distro
2. log as root and change to your
/usr/src/linux-`uname -r` directory
where `uname -r` stands for your kernel version
3. To be sure: go to your kernel source dir and do a
"make clean" + "make
mrproper" -> this will clean all your custom
configuration files
4. copy the /boot/config-`uname -r` into
/usr/src/linux-`uname -r`/.config
5. open the /usr/src/linux-`name -r`/Makefile and
change the EXTRAVERSION to
match your real kernel version (that's `uname -r`)
(before doing this my EXTRAVERSION was
2.6.5-1.358custom and I experienced
problem loading the module with "Invalid module
format" since the kernel
version is 2.6.5-1.358 and NOT 2.6.5-1.358custom)
6. then go to /usr/src/uname -r/net/ipv4 and
add the following in Makefile
obj-m += ip_wccp.o
7. make prepare
8. make SUBDIRS=net/ipv4 modules
-> here you'll get "ip_wccp.ko"
9. cp net/ipv4/ip_wccp.ko /lib/modules/`uname
-r`/kernel/net/ipv4/ip_wccp.ko
10. /sbin/depmod (to be sure)
11. /sbin/modprobe ip_wccp
Good Luck !!!!
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
--------------------------------------------------------------------------------
[squid-users] File descrptors in squid for kernel-2.4.20-8, (continued)
[squid-users] File descrptors in squid for kernel-2.4.20-8, Eswari sharma
Re: [squid-users] File descrptors in squid for kernel-2.4.20-8, Diamond King
Re: [squid-users] File descrptors in squid for kernel-2.4.20-8, Henrik Nordstrom
Re: [squid-users] File descrptors in squid for kernel-2.4.20-8, Mohsin Khan
Re: [squid-users] File descrptors in squid for kernel-2.4.20-8, A. Sajjad Zaidi
[squid-users] poor performance of squid..squid wccp, Eswari sharma
Re: [squid-users] poor performance of squid..squid wccp, Mark Tinka
Re: [squid-users] poor performance of squid..squid wccp, Eswari sharma
[squid-users] wccp connection broken frequently with router, Eswari sharma
[squid-users] Cisco Router 7206 wccp connection reset with cache server, Eswari sharma
Re: [squid-users] Re: Ip wccp patch for kernel 2.6 Fedora2, unixware
Re: [squid-users] Re: Ip wccp patch for kernel 2.6 Fedora2, Henrik Nordstrom
Re: [squid-users] Re: Ip wccp patch for kernel 2.6 Fedora2, Henrik Nordstrom
Re: [squid-users] Re: Ip wccp patch for kernel 2.6 Fedora2, unixware
<-- Chronological --> <-- Thread -->
Reply via email to
نه بابا کسی نبود که به من کمک کنه.
ترو خدا کمک کنین.