您好,登錄后才能下訂單哦!
本篇內(nèi)容主要講解“Linux服務(wù)器設(shè)置squid連接限制”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實(shí)用性強(qiáng)。下面就讓小編來帶大家學(xué)習(xí)“Linux服務(wù)器設(shè)置squid連接限制”吧!
Squid連接限制
Squid可以有效的限制連接,指定哪些用戶可以連接,指定哪些網(wǎng)站可以訪問,這樣就可以有效的利用服務(wù)器帶寬。
1、限制指定網(wǎng)段不能連接。編輯配置文件”/etc/squid/squid.conf”,利用acl語言添加受限制的ip地址
|
重啟squid之后,使用這個(gè)代理的瀏覽器將不能訪問任何網(wǎng)頁
2、限制某個(gè)ip不能使用呢,和上面的一樣使用acl語法
|
重啟squid之后,IP地址為“192.168.0.113”的電腦如果用了這個(gè)代理,那么它將不能訪問網(wǎng)站
3、限制某些網(wǎng)站不能訪問
|
重啟squid之后,使用這個(gè)代理的瀏覽器將不能訪問百度
4、網(wǎng)站黑名單,可以通過一個(gè)網(wǎng)站列表文件形成網(wǎng)站黑名單,這些網(wǎng)站將不能被訪問。
1)在/etc/squid目錄下創(chuàng)建愛你一個(gè)文件denyurl,在此文件內(nèi)輸入要攔截的網(wǎng)站
|
2)修改配置文件“/etc/squid/squid.conf”
|
3)訪問百度和hao123
5、限制某個(gè)時(shí)間段內(nèi)不能連接
|
重啟squid之后,使用這個(gè)電腦的代理將無法再星期一的10~17點(diǎn)上網(wǎng)
到此,相信大家對“Linux服務(wù)器設(shè)置squid連接限制”有了更深的了解,不妨來實(shí)際操作一番吧!這里是億速云網(wǎng)站,更多相關(guān)內(nèi)容可以進(jìn)入相關(guān)頻道進(jìn)行查詢,關(guān)注我們,繼續(xù)學(xué)習(xí)!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。