Commit Graph

22 Commits

Author SHA1 Message Date
Curt Hash 3dd84a10f4 In order to make it harder for clients to allow connections from
pollster while blocking everyone else, pollster will now change
IP addresses every minute. The pollster box will need a secondary
interface (default: eth1) in order to do this. Before each poll,
the mac address of the interface is changed to a random address
with a particular vendor code (default: 00:01:c0 (FitPC)) and a
new address is requested via DHCP. All connections made from
pollster are bound to the new address, forcing them out through
the secondary interface. This caused some problems, since the
poll function for cat.cgi previously relied on urllib, which did
not support binding. I ended up having to subclass
http.client.HTTPConnection and override __init__() and connect().
These changes necessitated two new global configuration variables:
	(1) POLL_MAC_VENDOR : the vendor code to use in the random MAC
	(2) POLL_IFACE : the secondary interface to use

I also fixed a bug where an empty string would be interpreted as a
valid team name.
2010-01-22 16:57:45 -07:00
Curt Hash 5f6eeeb1b8 more merged changes from server 2010-01-19 15:31:15 -07:00
Paul S. Ferrell cb7f0cc055 Makefile - transfer .py files instead of .pyc
histogram.py - now locks the histogram file before making a new one.
puzzler.py - fixed name error
mkpuzzles.py - now handles subdirectories
2009-10-15 15:22:07 -06:00
Neale Pickett 7de6e179ec Histogram will always have a valid png now 2009-10-09 10:28:57 -06:00
Neale Pickett 9fe367ff39 A couple ctfd and pollster fixes 2009-10-09 10:15:24 -06:00
Neale Pickett 93c9306ea5 Tanks now using HTML template 2009-10-09 08:47:19 -06:00
Neale Pickett 1f9d735832 Add "service flags" tab on HTML 2009-10-08 17:46:42 -06:00
Neale Pickett ec202f23f5 Mostly cosmetics 2009-10-08 16:42:26 -06:00
Curt Hash 91ee387600 Merge branch 'master' of cfl:/var/projects/gctf 2009-10-08 11:12:13 -06:00
Curt Hash 7c07f13117 config and points submission stuff added to polster 2009-10-08 11:11:41 -06:00
Neale Pickett 1ba4f341f6 Fix exception in flagd.py:FlagServer.handle_close 2009-10-08 10:31:28 -06:00
Neale Pickett 742d1a0c35 Display what points your team has already made 2009-10-07 15:16:15 -06:00
Neale Pickett db646f244e Merge cfl:/var/projects/gctf 2009-10-07 12:54:03 -06:00
Paul S. Ferrell 00de19c078 teams.py now writes the team color to file. 2009-10-07 12:28:33 -06:00
Neale Pickett 4f3c7190d4 Gussy up register.py 2009-10-07 10:38:30 -06:00
Neale Pickett 15a2009506 Add a little disaster recovery 2009-10-07 08:31:54 -06:00
Neale Pickett 43a4ff2d59 Merge cfl:/var/projects/gctf 2009-10-06 14:28:12 -06:00
Paul S. Ferrell 2034591fb6 Final (I hope tanks update). 2009-10-06 12:47:36 -06:00
Paul S. Ferrell 41f077192d Various work on Tanks. 2009-10-06 11:50:21 -06:00
Neale Pickett 4b176a363a Kevin now joins +kevin, not #kevin 2009-10-05 16:51:45 -06:00
Paul S. Ferrell 5a27122cec Moved irc.py into ctf.
Moved Flagger into ctf.flagd
Moved Roshambo stuff into its own directory.
2009-10-05 15:30:37 -06:00
Neale Pickett cb7ce0d84d New ctf python module 2009-10-05 13:33:20 -06:00