squid

dynamically modify HTTP POST data

谁说我不能喝 提交于 2019-12-24 04:18:08
问题 I set up a squid proxy server, and I would like to monitor and modify certain HTTP POST requests before it goes out of squid. What are my options? 回答1: Take a look at the Squid page on Content Adaptation to find what you're looking for. Those are valid options, although the only really good one is new in Squid 3. Another option, and what I use personally for this, is to transparently redirect the request to a script which modifies it and then forwards the changed version to the original

Squid代理服务器应用

吃可爱长大的小学妹 提交于 2019-12-23 18:10:29
第一步:配置squid代理服务器 #远程共享并挂载源码包 [root@squid ~]# smbclient -L //192.168.142.1 [root@squid ~]# mount.cifs //192.168.142.1/squid /mnt #解压源码包 [root@squid ~]# cd /mnt [root@squid mnt]# tar zxvf squid-3.4.6.tar.gz -C /opt #安装编译环境 [root@squid mnt]# yum install gcc gcc-c++ make -y #切入源码包目录 [root@squid mnt]# cd /opt/squid-3.4.6/ #配置configure组件项 [root@squid squid-3.4.6]# ./configure --prefix=/usr/local/squid \ >--sysconfdir=/etc \ >--enable-arp-acl \ >--enable-linux-netfilter \ >--enable-linux-tproxy \ >--enable-async-io=100 \ >--enable-err-language="Simplify_Chinese" \ >--enable-underscore \ >--enable

配置sonar和jenkins进行代码审查

柔情痞子 提交于 2019-12-23 06:31:07
转自: http://www.cnblogs.com/gao241/p/3190701.html, 版权归原作者所有。 本文以CentOS操作系统为例介绍Sonar的安装配置,以及如何与Jenkins进行集成,通过pmd-cpd、checkstyle、findbugs等工具对代码进行持续审查。 一、安装配置sonar 1、Sonar介绍 Sonar是一个用于代码质量管理的开源平台,用于管理Java源代码的质量。通过插件机制,Sonar 可以集成不同的测试工具,代码分析工具,以及持续集成工具,比如pmd-cpd、checkstyle、findbugs、Jenkins。通过不同的插件对这些结果进行再加工处理,通过量化的方式度量代码质量的变化,从而可以方便地对不同规模和种类的工程进行代码质量管理。 同时 Sonar 还对大量的持续集成工具提供了接口支持,可以很方便地在持续集成中使用 Sonar。 此外,Sonar 的插件还可以对 Java 以外的其他编程语言提供支持,对国际化以及报告文档化也有良好的支持。 2、配置数据库 Apache Derby 是Sonar自带并且默认安装使用的数据库,此外Sonar对如下数据库提供支持:MySQL 5.x, Oracle 10g XE, Postgresql, MS SqlServer等,本文以mysql为例介绍如何配置数据库: 1)创建数据库

Squid+iptables: how do i allow https to pass-through and bypassing Squid?

不羁的心 提交于 2019-12-23 01:43:44
问题 Basically started with Squid and iptables today (google is your friend). This stuff is going to be the death of me. I have Squid3 setup on Ubuntu 9.04 server as Transparent Proxy. It works sweetly when i use the proxy-box as my default gateway etc. The iptable rules for this setup was part of the tutorial. :P I can unfortunately not access https sites (such as Gmail or anything on port 443 basically). This is because Squid dont like what it cannot cache, which in this case is the https

Apache 、Nginx 、Squid 的区别

醉酒当歌 提交于 2019-12-22 22:20:56
一、Apache: Apache 是一个优秀的开放源码的网页服务器,第一款web服务器端软件。但对于那些需要更强大的Web应用服务器(比如大小、可定制、响应速度、可扩展性等方面)的人而言,Apache明显不符合他们的要求,同类替代软件有Lighttpd,Nginx,kangle,Boa,Jigsaw等。 二、Squid: Squid是一个缓存Internet 数据的软件,其接收用户的下载申请,并自动处理所下载的数据。当一个用户想要下载一个主页时,可以向Squid 发出一个申请,要Squid 代替其进行下载,然后Squid 连接所申请网站并请求该主页,接着把该主页传给用户同时保留一个备份,当别的用户申请同样的页面时,Squid 把保存的备份立即传给用户,使用户觉得速度相当快。Squid 可以代理HTTP、FTP、GOPHER、SSL和WAIS等协议并且Squid 可以自动地进行处理,可以根据自己的需要设置Squid,使之过滤掉不想要的东西。 (1)工作流程 当代理服务器中有客户端需要的数据时: 客户端向代理服务器发送数据请求; 代理服务器检查自己的数据缓存; 代理服务器在缓存中找到了用户想要的数据,取出数据; 代理服务器将从缓存中取得的数据返回给客户端。 当代理服务器中没有客户端需要的数据时: 客户端向代理服务器发送数据请求; 代理服务器检查自己的数据缓存;

Squid 理解

人盡茶涼 提交于 2019-12-21 12:26:06
因工作中需要用到squid,为此开始学习squid。这只能说明一点,学习是被逼出来的。费话不多说,开始了! Squid的代理模式有: 1.代理服务器 理解:web直接将80请求发给代理服务器3128端口) 2.透明代理 理解:web的80请求被防火墙直接重定向到3128,因此透时代理对用户而言是不可见的。 3.反向代理 一、代理服务器 这是SQUID的最基本功能;通过在squid.conf文件里添加一系列访问及控制规则,用户在客户端设置服务器地址和端口,即可通过SQUID访问INTERNET,在下面的规则里,squid实现局域网用户代理和高速缓存功能。 http_port 3128 #监听内外网端口 cache_dir ufs /var/squid #定义内容缓存的目录 cache_mem 32MB #定义内存缓冲的大小 cache_swap_low 90 cache_swap_high 95 cache_dir /var/squid 1000 16 32 dns_nameservers 202.96.128.86 #设置硬盘缓冲的大小 cache_access_log /var/log/squid/access.log #设置访问日志 cache_log /var/log/squid/cache.log #设置缓存日志 acl all src 0.0.0.0/0.0.0.0

squid介绍及其简单配置

六月ゝ 毕业季﹏ 提交于 2019-12-19 18:50:01
squid的简单介绍 squid的概念 squid是一种用来缓存Internet数据的软件。接受来自人们需要下载的目标(object)的请求并适当的处理这些请求。也就是说,如果一个人想下载一web界面,他请求squid为他取得这个页面。squid随之连接到远程服务器并向这个页面发出请求。然后,squid显式地聚集数据到客户端机器,而且同时复制一份。当下一次有人需要同一页面时, squid可以简单的从磁盘中读到它,那样数据会立即传输到客户机上。 squid代理的作用 通过缓存的方式为用户提供Web访问加速 对用户的Web访问进行过滤控制 工作流程 当代理服务器中有客户端需要的数据时: a. 客户端向代理服务器发送数据请求; b. 代理服务器检查自己的数据缓存; c. 代理服务器在缓存中找到了用户想要的数据,取出数据; d. 代理服务器将从缓存中取得的数据返回给客户端。 当代理服务器中没有客户端需要的数据时: 客户端向代理服务器发送数据请求; 代理服务器检查自己的数据缓存; 代理服务器在缓存中没有找到用户想要的数据; 代理服务器向Internet 上的远端服务器发送数据请求; 远端服务器响应,返回相应的数据; 代理服务器取得远端服务器的数据,返回给客户端,并保留一份到自己的数据缓存中。 Squid代理服务器工作在TCP/IP应用层 Squid各种代理的定义 正向代理

How to get started with web caching, CDNs, and proxy servers? [closed]

风流意气都作罢 提交于 2019-12-18 10:34:08
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I'm newbie programmer building a startup that I (naturally) hope will create a large amount of traffic. I am hosting my django project on dotcloud, which is on Amazon EC2. I have some streaming media (Http though, not rmtp) so the dotcloud guys recommended I go with a CDN. I am

squid代理服务器-传统代理,透明代理

橙三吉。 提交于 2019-12-18 10:12:46
缓存代理概述 web代理的工作机制: 缓存网页对象,减少重复请求 代理的基本类型 传统代理:适用于Internet,需明确指定服务端 透明代理:客户机不需要指定代理服务器的地址和端口,是通过默认路由,防火墙将web重定向给代理 使用代理的好处 提高web访问速度 隐藏客户机的真实IP地址 一,传统代理 实验环境 squid服务器 192.168.13.179 web服务器 192.168.13.151 client测试机192.168.13.135 1,在squid服务器上安装squid代理服务器 [root@squid ~]# mkdir /abc [root@squid ~]# mount.cifs //192.168.100.3/LNMP-C7 /abc/ ##挂载 [root@squid ~]# cd /abc/ [root@squid abc]# tar zxvf squid-3.4.6.tar.gz -C /opt ##解压 [root@squid abc]# yum install gcc gcc-c++ make -y ##安装环境组件 [root@squid abc]# cd /opt/squid-3.4.6 [root@squid squid-3.4.6]# ./configure \ --prefix=/usr/local/squid \ ##安装路径 -