wombatshare-devel Mailing List for WombatShare
Brought to you by:
ciaranjessup
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(4) |
Oct
|
Nov
|
Dec
|
---|
From: Ciaran <ci...@gm...> - 2004-09-24 05:03:52
|
Thats just plain weird, I would've sworn that I'd added that in, sorry about that, I'll add it as soon as I get to work :( -ciaran On Thu, 23 Sep 2004 17:42:16 -0400, Walt <idu...@ho...> wrote: > I dont think the wsrules.* got uploaded to the cvs. > > Walt King > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Wombatshare-devel mailing list > Wom...@li... > https://lists.sourceforge.net/lists/listinfo/wombatshare-devel > -- - Ciaran http://www.wombatinvasion.com/ (Share the love) |
From: Walt <idu...@ho...> - 2004-09-23 21:42:27
|
I dont think the wsrules.* got uploaded to the cvs. Walt King |
From: Ciaran <ci...@gm...> - 2004-09-21 18:21:38
|
I've now integrated Walt's IP rule filtering code into the CVS trunk. This is a really nifty little solution (that currently doesn't have a graphical configuration). Just create a file 'rules.txt' in the directory wombatshare runs that specifies a set of ordered rules, one of which should match. ie: a 192.168.1.2 d 156.*.*.* a 192.168.168.* Would *allow* IP 192.168.1.2 or anyone from sub-net 192.168.168.*, but would deny anyone who's net matched with 156.*.*.*. Eventually this will obviously be integrated into the configuration screens :) (IF you do take a cvs cut, it might be wise to decrement the version id in wombatshare.h or you may annoy everyone else on your network by appearing to be a new version to them ;) ) -- - Ciaran http://www.wombatinvasion.com/ (Share the love) |
From: w k <idu...@ho...> - 2004-09-08 22:25:46
|
iTunes, for some reason, stops at the local router, and since my subnet only has 128 ips, theres about 3 people sharing max. I was making changes and it compiles fine in debug mode, but after I compile in release mode to test it somewhere else, when I try to run it it performs an illegal operation. Probably some stupid setting somewhere, but not sure where to look. The changes are really simplistic, just harded coded an ip to check, but with some configurability it should work, unless I missed something. (it seemed to block the other people I was getting, and only allow the one other person here running it to show up). cvs diff: Diffing WombatShare Index: WombatShare/WSWeb.cpp =================================================================== RCS file: /cvsroot/wombatshare/WombatShare/WSWeb.cpp,v retrieving revision 1.4 diff -r1.4 WSWeb.cpp 530a531,540 > > if(noConf->verifyIP(client->get_ip())) > { > noConf->logError("WEB IP blocked"); > client->putline("HTTP/1.1 404 Not Found"); > client->putline("Server: wombatshare/"WOMBAT_SHARE_VERSION); > client->putline("Connection: close"); > return; > } > Index: WombatShare/WombatShare.cpp =================================================================== RCS file: /cvsroot/wombatshare/WombatShare/WombatShare.cpp,v retrieving revision 1.5 diff -r1.5 WombatShare.cpp 267a268,278 > >bool WombatShare::verifyIP(ipaddress ip) >{ > if(ip.data[0]!=uchar(128) || ip.data[1]!=uchar(253)) > { > logError("IP invalid"); > return false; > } > return true; >} > 268a280,284 > > if(!verifyIP(srv->getIP())) > return; > > 585c601 < udpmessage msg(mcastgroup, 9000, 255); --- > udpmessage msg(mcastgroup, 9000, 32); 598c614 < udpmessage msg(mcastgroup, 9000, 255); --- > udpmessage msg(mcastgroup, 9000, 32); Index: WombatShare/WombatShare.h =================================================================== RCS file: /cvsroot/wombatshare/WombatShare/WombatShare.h,v retrieving revision 1.9 diff -r1.9 WombatShare.h 235a236,237 > bool verifyIP(ipaddress ip); > >If you reduce the TTL to 1 then it *should* stay within your local >sub-net (local to your nearest router) , it did used to be set to 1, but >I noticed that the iTunes protocol used a TTL of 255 so I figured I >might as well change that :). I'm currently working on a 'passive' >mode for WombatShare which won't broadcast its presence or notify others >that it exists, and there is blacklist ip address functionality chalked >up to be done, this could be extended (quite usefully) I guess to be a >set of rules that both *allow* and *disallow* ip's. If you're >interested in contributing code to do this, I'd be happy to help you :) >(I see it as a new interface to the top level wombatshare class that >would validate a 'dsicovered' IP to see if it passes the set of defined >rules ...I really need to release the new config screens *sigh* never >enough time!) > >WRT pwRequired, looks like a bug to me : > char pwRequired[1]; // Password required. > sprintf(pwRequired, "%01d", config->requiresPassword); > >Thats obviously meaningless, not even space for a null character ;) >should be >char pwRequired[2]; // Password required. >or perhaps >char pwRequired[3]; // Password required. as I'm tired and can't remeber >the printf formatting conditions off the top of my head any more :( >*sigh* Thanks for pointing this out ! I'll log it as a bug and fix >it as soon as possible, unfortunately I've a) Just moved house so have >no internet at home (gah!) and b) I'm running behind and need to tarball >up the current cvs snapshot as the latest release before I can modify it >:) > >Any other problems/comments etc ? There is a mailing list that I'm >(currently the only person) subscribed to for development chat, >no-one's used it yet, but you're welcome to :) >http://lists.sourceforge.net/lists/listinfo/wombatshare-devel > >Thanks, >- ciaran > > >Walter J King wrote: > >>Hi. >> >>At my school, we get charged based on internet usage, so it is important >>to be able to restrict ip addresses. When I run wombatshare, names show >>up and I check the details and they do not have IP's from the school. >> >>I took a quick glance at the code. In announcePresence, Wombatshare.cpp >>line 598 in cvs, if I just reduce the 255(ttl), will that work? I would >>still get people from farther away though i think, so add an ip block to >>the discovering portion? >> >>Also, I keep getting an error Stack around the variable pwRequired was >>corrupted, wombatshare/wsweb.cpp line 272. >> >>Both happened with the dll on the site. (well, i assume the error is the >>same) >> >>Thanks, >>Walt >> >> >> >> >> > > _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ |