Lorem ipsum dolor sit amet, consectetur adipiscing elit. Test link

Search Suggest

Bài đăng

How to install and configure Squid Proxy server in Ubuntu 17.04

Install package
$ sudo apt-get install squid

Configure squid
$ sudo vim.tiny /etc/squid/squid.conf
#acl rule defile after
acl mylan src

http_access allow localhost
http_access allow mylan
http_access deny all

#port define
http_port 3128

#define cache dir
cache_dir ufs /var/spool/squid 30000 16 256

Start service
$ sudo  systemctl start squid
$ sudo systemctl status squid
$ sudo systemctl enable squid
$ sudo systemctl is-enabled squid

Logs file
$ sudo tail -f /var/log/squid/access.log

Block facebook.com
acl deny_site dstdomain "/etc/squid/deny_site"
http_access deny deny_site

#cat /etc/squid/deny_site

Whenever do changes in configuration file reload squid service
$ sudo systemctl reload squid

Đăng nhận xét