WCCP Proxy Configuration
WCCP Proxy Configuration
Internet
WCCP Router
Proxy Squid
WCCP Cache Server
192.168.249.35/28
User-1 User-2
Network parameters:
2. PEER_OUTER_IPADDR of gre interface must be the address which shows in “sh ip wccp 80 view
commands” as follows
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
#-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
#-A INPUT -p icmp -j ACCEPT
#-A INPUT -i lo -j ACCEPT
#-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
#-A INPUT -j REJECT --reject-with icmp-host-prohibited
#-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
5. service iptables status should show the following line after disable the iptable rules
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
ip wccp 80
ip wccp 80 redirect in
Proxy server configuration
Ethernet interface 0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.249.47
HWADDR=00:18:8B:42:A6:34
IPADDR=192.168.249.35
NETMASK=255.255.255.240
NETWORK=192.168.249.32
GATEWAY=192.168.249.33
ONBOOT=yes
DEVICE=gre1
TYPE=GRE
BOOTPROTO=none
MY_INNER_IPADDR=127.0.1.1
PEER_OUTER_IPADDR=192.168.255.254
PEER_INNER_IPADDR=127.0.1.1
NETMASK=255.255.255.252
ONBOOT=yes
Rc.Local configuration for DNAT of all gre traffic to 3128 proxy port
###############################WCCP configuration####################
wccp2_router 192.168.249.33
wccp2_service dynamic 80
Requirements:
1. Apache/httpd installed
2. Perl installed
3. PHP installed
1. First need to change the FQDN name of server. For this goes to
/etc/hosts file and replace the default line with the following
Hostname webser.bg.com.bd
Search bg.com.bd
/* proxy settings */
$squidhost[0]="192.168.249.35";
$squidport[0]=3128;
$cachemgr_passwd[0]="xxxx";
$resolveip[0]=false;
See hosts.txt.dist. */
// $hosts_file[0]="hosts.txt"
$group_by[0]="host";
5. just restart the webservice and hit the webserver address on your brower with this line
http://10.10.10.10/sqstat
now you will get the live data