Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm the admin in my hostel's computer lab. The problem is, some folks use the lab machines to download big files ( 100 mb and above ) almost all the time , thereby using up almost all the bandwidth allocated to the hostel. I want to ensure that people can't open certain sites like megaupload / rapidshare from the lab...Is there any way to do that ?
The machines all have Ubuntu (Hardy Heron) installed...i googled the problem, only to find solutions to block certain particular ips/sites...but i want to block a generic class of sites, say all links containing the word "megaupload" . If someone has any idea, pls help...
I'm basically looking for a solution where i could ideally block an outgoing connection to all links having a particular word ( or regular expression !! ) in them... Is it possible to do so using squid ? If so,would u pls give an example ?
I'm sorry , but it isnt very clear to me... what do u mean by using Dansguardian "on the firewall" ? I'm not using any firewall rite now, but i can enable ufw in ubuntu... so u mean i shud use Dansguardian in conjunction with ufw ?
Also, u can understand it wont really do if all users could undo what I block .... so i'm looking for a solution that would require a user to have sudo privilege to modify it....
I'll look into the website link u gave...but it would help me if u were a bit more elaborate.
You need a central server, which will act as firewall/proxy for all the other computers.
so all configuration will happen at 1 place.
otherwise they will always change the settings on their own machine.
You need a central server, which will act as firewall/proxy for all the other computers.
so all configuration will happen at 1 place.
otherwise they will always change the settings on their own machine.
Apparently, the problem is more complicated than i thought it is
I initially thought i could add a rule in iptables that would drop a connection having a specific word in the link...Then noone can modify the permissions w/o sudo access...But apparently, its not possible it seems....
But in my case, all the m/cs are standalone machines...i want them to individually block the said sites...else some1 will just shutdown the proxy server itself , to bypass it , as it wont be possible to deny physical access to the server !!
so they will be redirected to 127.0.0.1
they need root rights to change them.
there are sample hostsfiles on the net, so you can also block porn, ebay......
Yes, i had got that solution when i used google...but the catch is, this will only work when it one particular site/sites i want to block...but will this approach work when trying to block all links containing the word "megaupload" ? I'm not sure it will... and i possibly cant add all megaupload links ever posted on the net to the /etc/hosts file
but will this approach work when trying to block all links containing the word "megaupload"
No wildcards are allowed and only the main domain name is a valid entry.
Seems to me the best thing to do is to setup a server, and then use squid and squidguard or dansguardian.
And when you are at it, you can use it as a firewall.
No wildcards are allowed and only the main domain name is a valid entry.
Seems to me the best thing to do is to setup a server, and then use squid and squidguard or dansguardian.
And when you are at it, you can use it as a firewall.
Hehe...i'm installing dansguardian as i type on all machines in the lab...
Is it possible for each machine to act as its own server , where i would then use dansguardian / squid etc ? If its a dumb thing to ask, pls bear with me...but as i said , setting up a single server for all machines in the lab is not an option, since shutting it down would either disable the firewall or worse, disable internet access on all the other machines...as the old saying goes, who guards the guard(s) ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.