maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Off Topic (https://talk.maemo.org/forumdisplay.php?f=19)
-   -   how to block sites on ubuntu machine (https://talk.maemo.org/showthread.php?t=63977)

andreas.k 2010-10-18 12:56

how to block sites on ubuntu machine
 
I need help in order to block facebook on some of my school pcs.
Anybody has a clue on how I am supposed to do this?


thnaks for your help

pelago 2010-10-18 13:11

Re: how to block sites on ubuntu machine
 
You might get better help if you ask on http://ubuntuforums.org/

dana.s 2010-10-18 13:13

Re: how to block sites on ubuntu machine
 
if you have a firewall then block it from there.
You can also block them on DNS level if you have schools PCs use same DNS.
Use Ubuntu firewall or hosts file if you have to block it per machine and you don't have a firewall or DNS.

jedi 2010-10-18 13:14

Re: how to block sites on ubuntu machine
 
http://www.google.com/search?q=ubunt...0block%20sites

Bog loads of relevant results.

andreas.k 2010-10-18 16:04

Re: how to block sites on ubuntu machine
 
thank ya all i edited the hosts file with help from this guide...

http://www.technama.com/2010/block-w...-ubuntu-linux/

aligatro 2010-10-20 17:15

Re: how to block sites on ubuntu machine
 
Quote:

Originally Posted by andreas.k (Post 844095)
I need help in order to block facebook on some of my school pcs.
Anybody has a clue on how I am supposed to do this?


thnaks for your help

if you have access to the router, then you can block it there. But most stock firmwares don't let you do this stuff. You should block domain name AND the facebook's ip ranges or kids will bypath the block by typing in ip address. Also, I would completely block any type of VPN/SSH connections(by packet inspection, not just by blocking standard ports), to prevent any attempts of tunneling through another internet.

dchky 2010-10-21 12:18

Re: how to block sites on ubuntu machine
 
Quote:

Originally Posted by andreas.k (Post 844095)
I need help in order to block facebook on some of my school pcs.
Anybody has a clue on how I am supposed to do this?

You have a difficult problem ahead of you.

There are a few ways you can do it, but by far the easiest is to install a transparent proxy (like squid) on a server or appliance somewhere in the path.

For https stuff I tend to gather up a list of IP addresses for the domain to block, then use iptables to drop and log the connections.

Install something like squidview and monitor it daily because students will actively try to find alternative methods to access the site. Depending on how many students you have, and how determined they are, it'll probably take a week or two to clean it up to the point where everyone gets the message that facebook is not allowed. This wont stop them trying, but it'll stop the majority.

Another way is to add 0.0.0.0 facebook.com to the /etc/hosts file - but they'll figure out how to circumvent that quicker than you can blink.


All times are GMT. The time now is 21:07.

vBulletin® Version 3.8.8