Koozali.org: home of the SME Server

restrict internet access

serrano vincent

restrict internet access
« on: March 12, 2002, 12:41:34 PM »
hi
I try to make my linux box don't allow some users to acces internet via my linux box, How can I get this ? I use sme server V5

thanx for all

Lloyd Keen

Re: restrict internet access
« Reply #1 on: March 12, 2002, 01:41:32 PM »
download and install pam_auth from the follow: http://www.drbig.co.uk/downloads/Mitel-SME/Squid-Authenticate/tmp-mitel-pam-auth-0.1-1.noarch.rpm
Now edit the custom template:
#mcedit /etc/e-smith/templates-custom/etc/squid/squid.conf/89AuthAdd
and add these two lines after the line that says REQUIRED

acl banned proxy_auth user1 user2 user3
http_access deny banned

where user1 user2 etc are valid e-smith users

rebuild the template
#/sbin/e-smith/expand-template /etc/squid/squid.conf
restart squid
#/etc/rc.d/init.d/squid restart
Make sure that you tell your browser to use the proxy server or it won't work.

serrano vincent

Re: restrict internet access
« Reply #2 on: March 14, 2002, 01:30:50 PM »
thanks for your solution

it works terrific, very simple

thanx for all