Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


Top White Papers

More on LinuxToday


Linux Gazette: Hooking Up a Local School Network to the Net with a Java Proxy

Nov 25, 2000, 15:32 (0 Talkback[s])
(Other stories by Alan Ward)

"I'm writing this article after a couple of weeks of messing around getting our local school network hooked up to the net. Our problem was similar, I guess, to that of many schools: how do you give students' boxes access to the net, but restricting both certain types of content and certain services altogether (IRC)?"

"...I was at this time fresh out of ideas. And school-in was 48 hours away. So I took the only reasonable decision - write my own proxy daemon in Java, to be installed on the filter. This may take a bit of explaining. First of all, why is writing a proxy daemon reasonable? In this case, the proxy just had to:

  • accept a socket connection from a client, and read the client browser's request;
  • establish a second socket connection to WinGate, send the client's request on with no changes;
  • listen on the second connection, and send whatever came down the line back on the first connection;
  • terminate the first connection as soon as the second one is dropped by WinGate.
There is no caching, no address resolution, nothing else to be done."

Complete Story

Related Stories: