Wednesday, May 23, 2012

My #OpenBSD Adventure: Part 2

I woke up this morning to be greeted by

Write failed: Broken pipe
cvs [checkout aborted]: end of file from server (consult above messages if any)

So like the true Windows admin I let myself become, I decided to download a -current iso, in the hopes that the patch for the Belkin USB would be applied. 

5.1-current, 5/21/12, installed and Belkin recognized and available as urtwn0! Ah the joys of living on the edge. I apparently did not read quite well enough. In my excitement to see an actual USB device in my hand, I did not notice the lack of (AP) next to the urtw in http://www.openbsd.org/faq/faq6.html#Wireless  so it is back to the store to exchange the USB for a low end WiFi router. 

I now have a D-Link DIR-601 for about $12 less (tax in) than the Belkin, and will be using the Prosys/3Com 10/100 extra NIC to control wireless. I may have to write a review/rant on the oddities of consumer network hardware, as that wizard is a bit crazy. 

Command to enable forwarding:

echo net.inet.ip.forwarding=1 >>/etc/sysctl.conf

My quick dhcpd.conf to just get it up and running

#       $OpenBSD: dhcpd.conf,v 1.2 2008/10/03 11:41:21 sthen Exp $
#
# DHCP server options.
# See dhcpd.conf(5) and dhcpd(8) for more information.
#

# Network:              192.168.1.0/255.255.255.0
# Domain name:          my.domain
# Name servers:         192.168.1.3 and 192.168.1.5
# Default router:       192.168.1.1
# Addresses:            192.168.1.32 - 192.168.1.127
#
option  domain-name "mynet";
option  domain-name-servers 10.0.0.1;

subnet 10.0.0.0 netmask 255.255.255.0 {
        option routers 10.0.0.1;

        range 10.0.0.40 10.0.0.90;

        host static-client {
                hardware ethernet 22:33:44:55:66:77;
                fixed-address 192.168.1.200;
        }

        host pxe-client {
                hardware ethernet 02:03:04:05:06:07;
                filename "pxeboot";
                next-server 10.0.0.1;
        }
}

Quick pf.conf to just get up and running

pass out on xl0 from em0:network to any nat-to (xl0)

(epic eh? ;) )

Well, this is it for tonight. I hope to move the DIR-601 to NIC #3 and set it on its own subnet tomorrow. 

No comments: