Skip to main content
GameDev.net gamedev.net
🔒 Locked

Gateway programming

Started by emileej Oct 19, 2004 at 2:54 AM 5 replies 1.1k views
Original Post
emileej
emileej
My goal is to program an application that will monitor and limit the internet access from a LAN. I have been programming network applications before, but I do not know that much about network 'hardware'/designs. Anyways I have assumed that what I will need is to set up a server to act as gateway on which my program will run. If that is indeed so then how will the clients be transmitting their packets and which messages can I return as a gateway (for instance when a user has broken his quota and I am rejecting his packet)?
Emil Johansen- SMMOG AI designerhttp://smmog.com
overflowed_
overflowed_
Take a look at iptables and CBQ (Class-based Queueing). You'll need Linux, but it's well worth it.

Edit: Typo
-----BEGIN GEEK CODE BLOCK-----Version: 3.12GCS/M/S d->+(++) s+: a19? C++++ UL++ P+++ L+ !E W+++ N+ o++ K? w!O M-- V? !PS PE Y+ PGP t++ 5+++ X R tv+> b+(++)>+++ DI+++>+++++ D++G e>++++ h! r y?------END GEEK CODE BLOCK------
emileej
emileej
As much as this is a problem solution it is also a learning proccess. I would like to program a gateway - preferrably platform independant.
Emil Johansen- SMMOG AI designerhttp://smmog.com
emileej
emileej
Nobody in here have any experience in that field?
Emil Johansen- SMMOG AI designerhttp://smmog.com
ChaoticCanuck
ChaoticCanuck
What you are talking about is not terribly complex, however, these types of tasks usually require operating system specific tools.

Another alternative is to use a pcap library to inspect individual packets and generate your own stats.
emileej
emileej
I had imagined that all packets would just be sent to the gateway which would then either reject them or pass them on. If this is not the case then how is it done - what happens when a computer on a network with a gateway sends a packet?
Emil Johansen- SMMOG AI designerhttp://smmog.com
emileej
emileej
If people don't know the ansvers to those questions then maybe you have some relevant links? I can't find any.
Emil Johansen- SMMOG AI designerhttp://smmog.com

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.