1
Installation / Re: DNS/DHCP problems
« on: January 17, 2016, 05:41:30 PM »
Works like it should

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
$ cat / var/ etc/ dnsmasq/ dhcpd.conf
dhcp-option=option:domain-name, "local"
dhcp-authoritative
dhcp-leasefile=/ var/ db/ dnsmasq.dhcpd.leases
dhcp-range=set:lan,192.168.10.128,192.168.10.191
dhcp-option=tag:lan,option:dns-server,192.168.20.100
dhcp-option=tag:lan,option:router,192.168.10.1
dhcp-option=tag:lan,option:netbios-ns,192.168.10.100
dhcp-option=tag:lan,option:netbios-nodetype,8
dhcp-range=set:lan,192.168.30.128,192.168.30.191
dhcp-option=tag:opt2,option:dns-server,192.168.20.100
dhcp-option=tag:opt2,option:router,192.168.30.1
dhcp-option=tag:opt2,option:netbios-ns,192.168.10.100
dhcp-option=tag:opt2,option:netbios-nodetype,8
$ cat / var/ etc/ dnsmasq/ dnsmasq.conf
edns-packet-max=4096
log-facility=local7
except-interface=ngwan0
Installation on an embedded PC requires the following steps:With the 1.8 version this mostly works, until I try to change the webgui to HTTPS with a diffferent port number. Then I get locked out.
download the raw CF image (generic-pc-serial)
write the image to a CF card (>= 32 MB), either with dd under FreeBSD/Linux or under Windows with physdiskwrite
FreeBSD:
gzcat generic-pc-serial-xxx.img | dd of=/dev/rad[n] bs=16k
where n = the ad device number of your CF card (check dmesg)
(ignore the warning about trailing garbage - it's because of the digital signature)
Linux:
gunzip -c generic-pc-serial-xxx.img | dd of=/dev/hdX bs=16k
where X = the IDE device name of your CF card (check with hdparm -i /dev/hdX) - some adapters, particularly USB, may show up under SCSI emulation as /dev/sdX
(ignore the warning about trailing garbage - it's because of the digital signature)
Mac OS X:
gzcat generic-pc-serial-xxx.img | sudo dd of=/dev/rdisk[n] bs=64k
where n = the disk device number of your CF card (check Disk Utility)
(ignore the warning about trailing garbage - it's because of the digital signature)
Windows:
physdiskwrite generic-pc-serial-xxx.img
plug the CF card into the board
plug the box into the network (LAN/WAN/...)
power it up
make sure that your console speed matches the setting in the BIOS; m0n0wall will use the same speed as the BIOS
assign functions (LAN/WAN/OPT) to your interfaces
change the LAN IP address over the serial console, or use the default (192.168.1.1; m0n0wall acts as a DHCP server by default)
access the webGUI (user: 'admin', default password: 'mono')
make the necessary changes to the default configuration