Tuesday, August 25, 2009

ObHack 006.3 released by Fritz

While I no longer am working on the ObHack codebase (modifications I did to the original 2007 Oblige 2 code), Fritz has taken over maintenance of the code and we have just released Obhack 006.3:

http://samiam.org/slump

ObHack has a number of features not in to the Oblige 3 codebase, such as Deathmatch and CTF support (unlike Oblige, even single-player maps have some basic Deathmatch support, and there's even a mode which tries to make maps that are both good DM and single-player maps), Heretic support, and what not.

I hope people enjoy the code. Feel free to post suggested features or bugfixes here, but remember that Fritz, not myself, is maintaining the code.

New MaraDNS snapshot

I've updated the web page and have applied a one-line patch to fix the issue described here.

The file can be seen here:

http://www.maradns.org/download/1.3/snap/200908/

Monday, August 24, 2009

Deadwood update: No Deadwood 2.3.05 release needed

I've looked at the code in handle_expired again and have concluded that the code does not present any security risk. The relevant code appears to be a fossil from the Deadwood 1 days, before I added randomization. The code copies over the Query ID from the local connection to the remote connection, makes a DNS header, then calls make_remote_connection to send a packet to the remote DNS server.

make_remote_connection uses set_dns_qid to make the query ID random before sending it to the remote DNS server.

In conclusion: There is no need to make a new Deadwood 2.3 release; the DNS QID is always a random number. However, the cleanup to make it so it doesn't look like the QID isn't random I'm going to keep in the 2.3 tree; should a bug come up in the 2.3 code, I'll also apply this fix.

New Deadwood snapshots

Doing work on being able to merge multiple in-flight requests together. As I looked over the code, I realized some things didn't work with DNS-over-TCP (resurrections, blacklist_ip), which I think I have fixed (but I'm not going to test this; DNS-over-TCP is a bad hack).

In addition, the code that resent queries when we didn't hear from upstream has been revamped to create a new query ID number every time we resend the query, instead of echoing the local query ID. This is something I have also fixed in the Deadwood 2.3 codebase.

One issue is that, sometimes we will need to keep the DNS-over-TCP connections around while the DNS-over-UDP connections have died. I've redone forward_remote_reply() so that, once this routine sends a UDP reply, it resets that particular local UDP connection so it won't send a reply again. This will hopefully solve the multiple DNS-over-TCP issue.

I think I will have it so DNS-over-TCP connections simply don't look for in-flight requests, but always open up a new request. I'll do this, but put some things in place so we could have both UDP and TCP on the same connection number if this is desirable in the future.

The work can be seen here:

http://maradns.org/deadwood/snap/

The deadwood-H releases are releases for the next 2.4 release of Deadwood (the "Head" branch); the deadwood-S releases will become the next 2.3 release of Deadwood (the "Stable" branch). I have run all tests in 32-bit CentOS for the next stable release; all I have to do before Deadwood 2.3.05 is to test it in 64-bit CentOS, make a new random prime for both the source code and the Windows compile, make a Windows compile, then Deadwood 2.3.05 will be ready.

Sunday, August 23, 2009

New Deadwood snapshot: Final touches to execfile

I've done a couple of final touches to execfile support in Deadwood today; I have made it so execfile doesn't change directories in Windows, did a bit of final touch-up to the documentation, notably documenting it in Windows.

It's here:

http://maradns.org/deadwood/snap/

Saturday, August 22, 2009

Deadwood snapshot update: execfile finished

OK, guys, I've decided to not devote any more time to execfile("foo") in Deadwood.

I have finished up the feature this morning; all files parsed with execfile must be in /etc/deadwood/execfile and errors in sub-files are not correctly reported; the workaround is Deadwood -f /etc/deadwood/execfile/filename, which will report the line a parse error is on.

I have also documented execfile.

The one last thing I will do before the next Deadwood 2.4 release is have it so, on Windows systems, execfile uses a different directory besides /etc/deadwood/execfile; probably just the same directory all the other Deadwood files are in Windows (#ifdef the chdir() to make sure it isn't used in Windows).

It's time to go back to merging multiple in-flight DNS requests.

Friday, August 21, 2009

New Deadwood snapshot

I am working on making it possible for the parser to load other files to parse while parsing a dwood2rc file; this makes some kinds of management easier for some sysadmins.

The feature currently works, but I need to harden it against security-type issues this feature can add.