Wildcarddnsd with authpfMay 2nd, 2009
Yesterday, I downloaded and installed OpenBSD 4.5. Today while I was configuring it I noticed the login group "authpf" and this got me started on making
wildcarddnsd complete.
I created a new subnet with vmware workstation and placed two of
my virtual hosts inside it (Solaris and Windows XP). The new OpenBSD vmware
guest acts as a firewall for both but locks them down if they haven't got
their IP in the table "authpf_users". Here is what I did to my firewall
rules:
So anyone whose IP isn't in the table authpf_users will get denied and also
a custom non-recursing/non-tunneling wildcarddnsd will deliver them DNS
errors. The wildcarddnsd is set up this way in /etc/rc.local:
There is really two of them but we'll not worry about the IPv6 one that one answers for ipv6.solarscale.de. You see that the second one is bound to localhost port 8053. It's configuration looks like this: *,soa,1,neptune.ATLAS.,pbug.neptune.ATLAS,1,1,1800,7200,3600That's all there is, it's a one-liner. TTL's and serial numbers are set to 1 second. A named with the -4 flag is also there it does the name lookups for authenticated hosts. Then I added users and in the adduser command you can specify whether I would like authpf and I did. Then I had to create two files in /etc/authpf/ called authpf.conf and authpf.rules which are blank (touch does this). And I was ready for testing it out.
This is how it looks like:
Why do I do this? Because I don't want people tunneling out via DNS, that's what wildcarddnsd was written for. I have no users but this is a sandbox for the program that I write. PS: The wildcarddnsd dishing out non-resolvable addresses gives almost the same error message as the "unable to connect" firefox message when there is no wildcarddnsd. Unfortunately originally I wanted wildcarddnsd to answer with a wildcard IP but after testing this on solaris I noticed this breaks OS's like solaris that do caching of dns names. Also if you set the TTL low as in 1, eventually the real zone's ttl will surpass this but may not go lower again when the TTL is 1 again after unauthenticating as I suspect it is the case with mac os x. So in total my efforts for the last 3 years in developing wildcarddnsd were wasted and I busted my theory that this was possible, it may work on non-dns-caching OS's but not on ones that cache. I still use wildcarddnsd on the Internet for which I may still do development for it, but it's not the same intent as before. Random HackepediaMay 1st, 2009Often when downloading a file from the Internet, you will see either KB or Kb, however they are not the same thing: Read more about Bytes at Hackepedia. Gossip: OpenBSD 4.5 is released! Solaris 10, configuring IPv6April 30th, 2009
This is just a reminder for myself on how I configured IPv6 on solaris because the box is needed for IPv4 only. In /etc/hostname6.pcn0 should be: addif 2001:a60:f074::2/48 up This is the same as is stated in the ifconfig manpage In a script in /etc/rc2.d is a file called S69inet6 which has the contents: #!/bin/sh echo routing default ipv6 route add -inet6 default 2001:a60:f074::1 #and that's it the box should then talk IPv6. Gossip: NetBSD releases version 5.0! OpenBSD donationApril 30th, 2009
I donated 15 euros to Theo De Raadt via bank transfer to his Munich bank account. In the exchange this is 24 dollars (CA) and is half of what I'd pay for an OpenBSD CD (in canada). I'm not buying 4.5 which is due tomorrow on the FTP servers and I'll just ftp it instead. For anyone wanting to donate some money to de Raadt should go here. Random HackepediaApril 23rd, 2009When a system call fails inside a process, the system sets a variable called errno in the process with a certain integer. Usually a subsequent error message will contain the human readable string associated with the errno. Ie. if you do: Read more about errno from Hackepedia. Gossip: Oracle buys Sun Microsystems Postfix Message LimitApril 20th, 2009
I recently ran into a problem where someone wanted to send me a file larger than 10 MB. The limit in postfix is 10 MB exactly I think so here is the main.cf variables to set:
This should increase the mail acceptable to 100 MB. Random HackepediaApril 18th, 2009A file descriptor is a handle in a program that allows data to be read and written. It is assigned a number starting at 0 and going to the file descriptor limit. A descriptor of -1 indicates an error. File descriptors are limited to files in filesystems but there is other sorts of descriptors (like sockets) that behave similarly so we bunch them together here. Read more about File Descriptors from Hackepedia. Mail with spam protectionApril 14th, 2009
I've installed postfix on my DSL link. It's protected from spammers by OpenBSD's spamd. Spamd rocks. Also I was sorta stuck getting the TLS to work with postfix, but I finally have this sorted out now I think. Here is a script that I made to create the certificates in $HOME/ssl, those get copied then (with tar) to /etc/postfix and the config for smtpd tls looks like this:
It works now and I'm glad it's over. I'm bleeding now after having gone through books and google trying to get this right. I'm glad to be sharing it with you. RFC 2460 Reading changeApril 2nd, 2009I've found and taken out 2 comments out of the audio RFC 2460 (IPv6) in the RFC audio section of this website. They were just screwing around and didn't really help with the professionalism of the reading. Happy Equinox!March 19th, 2009
Tomorrow is vernal equinox. Happy equinox! |
![]() Keyword SearchOlder Blog Entries
Other links
Have feedback?
Send mail to pjp [at] centroid [dot] eu |