[Squid] Pro User eine Ip

quicksilver

Lt. Junior Grade
Registriert
Jan. 2004
Beiträge
363
Guten Tag. Ich habe einen Squid Proxy Server mit authentication. Nun habe ich vor das jeder User nur mit einer Ip connecten darf. Ich möchte also nicht das user x Seine kennung an einen Nachbar weitergibt und der dann gleichzeitig mit der gleichen kennung aber mit einer anderen Ip Surft. Weiß da jemand rat ?

Meine Konfiguration im moment:
Code:
auth_param basic program /usr/sbin/ncsa_auth /etc/squid/squid_passwd

acl ncsa_users proxy_auth REQUIRED

und in der squid_passwd Stehen dann die User drin die Surfen dürfen.

Danke schonmal.
 
Lässt sich Squid, ähnlich wie bei DHCP-Servern, nicht auch mit MAC-Adressen was machen?

Bei DHCP-Servern kannst du ja einstellen, dass nur bestimmte MAC-Adressen bedient werden. Alle anderen werden abgewiesen.
 
Ja aber die ips sind ja dynamisch.. ich brauche nur eine regel die erlaubt das nicht mehrere ips/mac adressen mit ein und dem selbe usernamen surfen.
 
Hm da steht sehr viel. Aber würdest du da was von empfehlen marcelcedric ?
 
Das:

Acl Type:arp Usageacl aclname arp ARP-ADDRESS Description
Ethernet (MAC) address matching This acl is supported on Linux, Solaris, and probably BSD variants.

To use ARP (MAC) access controls, you first need to compile in the optional code.
Do this with the --enable-arp-acl configure option:
% ./configure --enable-arp-acl ...
% make clean
% make

If everything compiles, then you can add some ARP ACL lines to your squid.conf

Defaultacl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 1025-65535
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT

Example
acl ACLARP arp 11:12:13:14:15:16
ACLARP refers MACADDRESS of the ethernet 11:12:13:14:15:16

Note
Squid can only determine the MAC address for clients that are on the same subnet. If the client is on a different subnet, then Squid cannot find out its MAC address.

Dafuer muesstest du evtl. Squid neubauen.

MfG
 
Zurück
Oben