Squid with multiple IP segment
I've setup Squid - DHCP - Transparent Proxy with the following
eth0 = connected to internet
eth1 = connected to lan. (192.168.1.1)
I want to create multiple ip segment on this server.
192.168.1.1 = to be assigned on Department 1
192.168.2.1 = to be assigned on Department 2
192.168.3.1 = to be assigned on Department 3
1. Now, based on MAC address, the server will give IP, let say if the mac address xx:xx:xx:xx:xx belongs to department 3 dhcp will give 192.168.3.23
2. Also, I want to restrict bandwidth on those segment. let say, 192.168.1.1 will have 1mbps only. etc.
Is there a way to configure the above ?
Is it possible to configure that way with 2 NIC on my server?