Date: Mon, 28 Oct 2002 16:33:40 +0200 From: Lefteris Tsintjelis <lefty@asda.gr> To: freebsd-net@freebsd.org Subject: GRE tunnel kernel support for SQUID and Cisco (wccp v1) Message-ID: <3DBD4AC4.616F652C@asda.gr>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------280F9B86158792D0D1C57E7F Content-Type: text/plain; charset=iso-8859-7 Content-Transfer-Encoding: 7bit Hi all, It would make a nice addition to the kernel this patch found at http://www.squid-cache.org/Doc/FAQ/FAQ-17.html. I included it with some very minor fixes to compile under 4.7-stable. It adds direct GRE tunnel support to kernel, transparent proxy (use with wccp v1 enabled routers and Squid boxes) A very simple step by step howto for some previous message I saw at the list. 1) Add gre.c to /usr/src/sys/netinet 2) Patch kernel with gre-squid.patch (cd /usr/src; patch -p0 < gre-squid.patch) 3) Add "option GRE" to kernel config, rebuild and install (UDP port 2048 tunnel squid <---> router) 4) Setup your rc.conf to inculde similar to gre-ipfw.conf rules 5) Setup squid.conf to use your wccp router (further info @ http://www.squid-cache.org/Doc/FAQ/FAQ-17.html) 6) Setup your Cisco IOS for wccp webcache version 1 redirection. 7) DONE. Don't forget to reset :-) I have tested it with FreeBSD 4.7-STABLE, squid-STABLE 2.4/5 and seems to be working very STABLE. Beats Cisco access-list redirection rules by far. Router can handle a lot more requests for large scale networks. Lefteris Tsintjelis (lefty@ene.asda.gr) --------------280F9B86158792D0D1C57E7F Content-Type: application/x-compressed; name="wccp.tgz" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="wccp.tgz" H4sIAC8GvD0AA+1Z6XPixhL3V+mv6DiVBAwIiUN48fHMAptQwQsBNptX9apUsjQCZXWtDmMn z/97ukcyhwzr5IOdqoTeBYmePn7T05rukaXq0YuTLDfkVrOJV075a3qPAi1Zrsu12pGs4I16 BM2Xh3Z0lESxHgIchb4ff0luuWDMeQ1Ar0tSdR4yyXhRH7SeaqOxb/1rLbXG119Va42mjHKK QsMgvyiqjP7l6189EeEEkHgalG9BkWpQ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Oq2foKIMZR0giSRSH zEIDdgQzdBr/ytARFBxk3l8xj0l6ZOrSHPPi734qX4/S8/8qr1/ExzP7v9xopX//UVstta40 UZ7+DnDY/1+DdNxiaQlOgV6KL+n0C1bou3DOtxnHN+gcG1zSI61794LwNYxDdou1IMoGHd8P IvHRzpu8HVQi3bw52v02bWGRsSzb2HrqUW1DizTK9P4NLT66a8pgLU1Qai1Jxn9Kua7UTp/4 pkvmb5KZJ5Tg8+2YRtJqkWHgxtVms97I5kKyOXv/oh3iQAc60IEOdKADHehA/yT6A8OZDk0A KAAA --------------280F9B86158792D0D1C57E7F-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DBD4AC4.616F652C>