Raised This Month: $51 Target: $400
 12% 

Traceroute


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
haza555
Junior Member
Join Date: Jan 2006
Location: Brisbane, Australia
Old 05-27-2006 , 05:11   Traceroute
Reply With Quote #1

I need a mod(I really need this)
that checks if a client to connected to the server goes through a specific route, if it does it stops them downloading any files but still allows them to connect or kicks them when they request a file.

I need this because my country Australia has very high bandwidth costs and i only want the internet connection used where neccerary(I have annother connection to a PEERing network which 70% of australian are connected to, where bandwidth is free)
__________________
"To Alcohol, the Cause of and Solution all of Lifes Problems"
haza555 is offline
Send a message via MSN to haza555
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 05-27-2006 , 08:44  
Reply With Quote #2

You cannot stop people downloading content unless you stop them playing.
Im not even sure you can stop them playing untill after they have downloaded what they need :\
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
imported_hippo
Junior Member
Join Date: Mar 2006
Old 05-27-2006 , 11:29  
Reply With Quote #3

If you want to regulate content download then setup a content server with sv_downloadurl. Then setup a script on your webserver to traceroute the client ip before redirecting them to the correct files on your webserver. This is not failsafe, but it should be able to regulate about 95%+ of your content download.

For example:

sv_downloadurl "http://mycontentserver.com/hlds/index.php/"

Read the args after index.php in the script and then tracert client ip. You may need to tracert once then put the ip in a sql database to streamline the process since tracert can be slow at times.

Hippo
imported_hippo is offline
haza555
Junior Member
Join Date: Jan 2006
Location: Brisbane, Australia
Old 05-27-2006 , 17:25  
Reply With Quote #4

The big problem is i want to keep my cpu useage down, its reserved for the game servers. So i do not want to run a webserver(im running windows2003).
I was thinking mybe some event scripts that(if you can on the event someone starts downloading something) use the SYSTEM plugin from mattie and run a program(i will write it) that traces the route to that client then if it goes over a certain route it then writes a cfg file that says kick that person then eventscripts will read that and then kick the person?
__________________
"To Alcohol, the Cause of and Solution all of Lifes Problems"
haza555 is offline
Send a message via MSN to haza555
CoolPeter
Member
Join Date: Nov 2005
Old 05-27-2006 , 17:57  
Reply With Quote #5

There a million of free webspace hosters out there!
Use one of them!
CoolPeter is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 05-27-2006 , 18:20  
Reply With Quote #6

Yeah, it would be much easier to use a webhost from another location, such as a free webhost..
__________________
sslice is offline
haza555
Junior Member
Join Date: Jan 2006
Location: Brisbane, Australia
Old 05-28-2006 , 04:39  
Reply With Quote #7

or are there any ideas on how to tell scrds to use 2 ips.
__________________
"To Alcohol, the Cause of and Solution all of Lifes Problems"
haza555 is offline
Send a message via MSN to haza555
imported_hippo
Junior Member
Join Date: Mar 2006
Old 05-30-2006 , 00:59  
Reply With Quote #8

If you are using linux: Setup iptables to route the ips to one ip that your srcds attaches to.

If you are using windows: I am not sure, but route may work, or try something like this http://www.analogx.com/contents/down...rk/pmapper.htm (I haven't tried it, so I am not 100% sure if it works). w2k3's routing and remote access services might have some sort of ip routing for multihomed NICs.

Hippo
imported_hippo is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode