Commit Graph

8 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
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 7c07f13117 config and points submission stuff added to polster 2009-10-08 11:11:41 -06:00
Neale Pickett 742d1a0c35 Display what points your team has already made 2009-10-07 15:16:15 -06:00
Neale Pickett cb7ce0d84d New ctf python module 2009-10-05 13:33:20 -06:00
Renamed from config.py (Browse further)