0

在Debian安装配置squid3


在Debian上安装配置squid3,简单的很,作为代理可以用来限制客户端的访问权限,还可以允许某个IP或IP段能上,或者阻止下载类型为mp3与其他格式的文件。还可以限制访问网站,比如只能163或新浪,总之功能多多~

  1. debian:~# aptitude install squid3

squid默认端口为3128,更改端口在 /etc/squid3/squid.conf 找到 http_port 3128,把3128改为你想要的端口(前提是端口没被其他应用程序占用)

比如我该为11111

  1. debian:~# vi /etc/squid3/squid.conf
  2. http_port 11111



定义为内网的这个网段才能使用。

  1. acl abc src 192.168.0.0/16
  2. http_access allow abc



其他高级定义有机会再说~

我猜~这些文章你可能也感兴趣

暂时没有留言..

给我留言:

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word