Wednesday, November 17, 2021

Configuring Squid webpoxy

Hi,

I'm having difficulties with my .conf file to run my proxy server on. There are no errors but the server allows continues connections even thought it's specified to allow it between the hours 9-12 12.30-17.

The selected IP's are called "IPGROEP1" and it's defined in the acl section.

acl werk_tijd time M T W T F 09:00-12:00
acl werk_tijd2 time M T W T F 12:30-17:00

And allowing them http_access to my network:

http_access allow IPGROEP1 werk_tijd
http_access allow IPGROEP1 werk_tijd2

The proxy does refuse connections when i put the line:

http_access deny IPGROEP1

above the other 2. When this line is put below them, the clients still webpages.

Is it possible to let the proxy refuse connections between specified times?

And idealy, could i filter the proxy in such a way that certain websites aren't available between working hours (with pause included)?

Setup:

Intel Nuc
Ubuntu 20.04 LTS

ESXI VMware as hypervisor
edge router

there are 2 clients connected (VM's)
A Ubuntu and a Windows 10 edu

Thanks in advance :3



No comments:

Post a Comment