LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 01-14-2020, 07:25 PM   #1
bkone
Member
 
Registered: Jun 2006
Distribution: SUSE, Red Hat, Oracle Linux, CentOS
Posts: 100

Rep: Reputation: 15
Squid WCCP caching


I am going on week 2 and still not able to get the squid proxy server to work correctly with WCCP. I am running Squid Cache: Version 3.5.20 on Linux CentOS 7.7.1908 (3.10.0-1062.9.1.el7.x86_64).

I try to create the gre0 interface in /etc/sysconfig/network-script/ifcfg-gre0 with the following:
Code:
 /etc/sysconfig/network-scripts/ifcfg-gre0 
DEVICE=gre0
BOOTPROTO=static
IPADDR=<random ip address, 10.10.10.1>
NETMASK=255.255.255.252
ONBOOT=yes
IPV6INIT=no
Then using iptables rule
Code:
iptables -t nat -A PREROUTING -i gre0 -p tcp -m tcp --dport 80 -j DNAT --to <ip address of proxy server>:3128
When I try to restart networking I am getting this error message:
Code:
-- Unit network.service has begun starting up.
Jan 14 14:07:27 PROXY_SERVER_NAME network[6331]: Bringing up loopback interface:  [  OK  ]
Jan 14 14:07:27 PROXY_SERVER_NAME kernel: RTL8211E Gigabit Ethernet r8169-200:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=r8169-200
Jan 14 14:07:28 PROXY_SERVER_NAME kernel: IPv6: ADDRCONF(NETDEV_UP): p1p1: link is not ready
Jan 14 14:07:29 PROXY_SERVER_NAME kernel: libphy: r8169-200:00 - Link is Up - 100/Full
Jan 14 14:07:29 PROXY_SERVER_NAME kernel: IPv6: ADDRCONF(NETDEV_CHANGE): p1p1: link becomes ready
Jan 14 14:07:32 PROXY_SERVER_NAME network[6331]: Bringing up interface p1p1:  [  OK  ]
Jan 14 14:07:32 PROXY_SERVER_NAME network[6331]: Bringing up interface p1p1_20200114:  RTNETLINK answers: File exists
Jan 14 14:07:32 PROXY_SERVER_NAME network[6331]: [  OK  ]
Jan 14 14:07:32 PROXY_SERVER_NAME network[6331]: Bringing up interface gre0:  ERROR     : [/etc/sysconfig/network-scripts/ifup-tunnel] Device 'gre0' isn't su
Jan 14 14:07:32 PROXY_SERVER_NAME /etc/sysconfig/network-scripts/ifup-tunnel[6607]: Device 'gre0' isn't supported as a valid GRE device name.
Jan 14 14:07:32 PROXY_SERVER_NAME network[6331]: [FAILED]
Jan 14 14:07:32 PROXY_SERVER_NAME systemd[1]: network.service: control process exited, code=exited status=1
Jan 14 14:07:32 PROXY_SERVER_NAME systemd[1]: Failed to start LSB: Bring up/down networking.
-- Subject: Unit network.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit network.service has failed.
I have looked for a decent guide on setting up a WCCP proxy server with squid but most I have seen are for older versions, CentOS 6.5 for example, or for setting up a tunnel between two Linux servers.

Anyone setup a CentOS 7 WCCP proxy server in transparent mode, think that is what it is called where no configuration is required on the endpoints browsers?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid proxy caching issue- Downloaded file isn't caching by server ashish1234 Linux - Newbie 1 12-28-2018 03:19 AM
How does squid with wccp redirection work? dablew Linux - Server 1 10-24-2007 10:37 AM
WCCP and Transparent Proxy with Squid tech-ninja Linux - Networking 4 03-29-2005 11:25 AM
Help using freebsd 5.0 + squid + wccp + cisco ios nazzymac *BSD 1 07-27-2004 04:11 PM
WCCP on Squid vwhk Linux - General 3 01-28-2002 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 03:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration