What's new

Closed block any sites on squid pasok

Status
Not open for further replies.

PHTUNNELER

Forum Guru
Joined
Jul 12, 2018
Posts
1,596
Reaction
14,265
Points
1,884
Age
23
how to block sites on squid para sa security purposes lang ng isang SERVER for anti down

login yung server mo as a root


edit si squid

type this command

Code:
nano /etc/squid/squid.conf

then add this command

Code:
acl bad_url dstdomain "/etc/squid3/tunneler.conf"
http_access deny bad_url

then save

paano mag block ng site edit lang si tunneler.conf

Code:
nano /etc/squid/tunneler.conf

then ganito ang pag block sa site

1579953852465.png


proof

1579953867113.png


1579953879378.png


once na nailagay na ang list ng i bloblock restart mo lang si squid

Code:
 service squid restart

then wait

then ayos na yan

FEEDBACK KUNG GUMANA SA INYO

PHTUNNELER
 

Attachments

Last edited:
Hindi ito gagana kung https yung site na ini-access ng user unless configured yung transparent https proxying as well. Yung mga examples, mga http sites.

Ang pinaka-epektib na domain blocking is at the DNS level sa gateway mismo. In doing so, kahit anong protocol, eg http(s), smtp(s), ftp lahat blocked. Dagdag pa dun, it is more performant kasi hindi na mage-elevate pa yung kuneksyon, umpisa pa lang blocked na. Tulad ng pi-hole DNS blocker project.
 
Status
Not open for further replies.

Similar threads

Back
Top