Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

I'm interested in limiting the use of a school network for academic purposes only. I would expect the solution to be able to efficiently filter and log traffic (to detect offenders) on an account by account basis.

Is this possible using the Raspberry Pi?

share|improve this question
    
First and foremost, you're going to need two networking interfaces on your Raspberry Pi in order to achieve what you desire. –  Andrew Larsson Jan 10 '13 at 17:23
    
Yes, I know. I was planning to use a usb adapter. –  mindoftea Jan 11 '13 at 1:10
    
Sorry, I didn't see the answer below that already explained this. –  Andrew Larsson Jan 11 '13 at 23:52
add comment

2 Answers

up vote 3 down vote accepted

There are several vendors providing solutions that are doing exactelly what you need. I doubt that you can easilly achieve similar functionality from scratch using RPi as this is quite complicated solution that needs also apropriate hardware. In a nutshell you will need some advanced firewall with some fancy features like application recognition (to block choosen services) and URL filtering (or some HTTP protocol inspection) to have ability to block choosen URLs.

Try to find some open sorce FW and check if this will fit into RPi. Some example could be Vyatta.

Newertheless in my opinion without buying some ready solurion this will be extremely hard.

share|improve this answer
1  
Google suggests that you meant Vyatta? –  mindoftea Dec 16 '12 at 14:43
    
Indeed, didn't noticed misspelling. –  codewarrior Dec 16 '12 at 16:16
add comment

This could be achieved with a Pi, although one notably issue makes it an unlikely solution. The Pi only has one ethernet interface, and the kind of usage your describe is best implemented as either a router or a bridge containing two interfaces where traffic is filtered as it passes through from one to the other.

It is possible to eaves drop on a single wire and monitor traffic, but much more difficult to do anything about it. If you wanted to actually shape the traffic in any way, you would need to load the Pi up with another interface using a USB device and funnel all your traffic through it. Frankly I can think of other devices much more suited to this operation, including other one-board computers that have two ethernet interfaces out of the box.

share|improve this answer
    
Thanks. I'll take this into account. –  mindoftea Jan 10 '13 at 16:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.