Restricting Internet access

Hi,

I was curious on how you could limit users surfing the Internet, I found KobrAs's guide useful  :D
I setup a group called Internet and assigned users to it and apply this to my iptable

iptables -t filter -A OUTPUT -p tcp -dport 80 --match owner --gid-owner 501 -j DROP

This worked great, but I was wondering if you had your users logging in all over your network
using LDAP, How could you make these rules apply still?
LVL 16
xDamoxAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ravenplCommented:
If You mean, that user has it's own machine, and authenticates via LDAP on Your server, then the answer is, You can't apply this in the way shown above.

In such case, You can DROP/REJECT packets on FORWARD chain depending on machine the packet arrive from (IP, MAC, and so on.)

But, You can force all Your users to access internet only via proxy (a squid proxy) with proxy authentication. Then You would be able to give a user selectible access to web(user can access this webpage, but can't the another).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.