SHOW:
|
|
- or go back to the newest paste.
| 1 | ######## | |
| 2 | # Global server config | |
| 3 | ######## | |
| 4 | ||
| 5 | # Set port to 0 so that dnsmasq knows its not being used as a DNS server. | |
| 6 | port=0 | |
| 7 | ||
| 8 | # Configure DHCP-Proxy range | |
| 9 | dhcp-range=192.168.0.255,proxy | |
| 10 | ||
| 11 | # Log lots of extra information about DHCP transactions. | |
| 12 | log-dhcp | |
| 13 | ||
| 14 | # For debugging purposes, log each DNS query as it passes through dnsmasq. | |
| 15 | log-queries | |
| 16 | ||
| 17 | # TFTP support | |
| 18 | - | dhcp-match=gpxe,175 # gPXE sends a 175 option |
| 18 | + | |
| 19 | - | dhcp-boot=net:#gpxe,gpxe.kpxe # if the request does not match the gpxe rule (#gpxe) then tell the client (most likely standard PXE client) to boot gPXE |
| 19 | + | |
| 20 | - | dhcp-boot=\Boot\pxeboot.n12,freeone,192.168.0.254 # in this case the request was made by gPXE and we tell it to boot win7 pxe image via TFTP (freeone is the host name, and 192.168.0.254 is the IP; in theory these 2 fields should not be necessary if the TFPT server is on the same machine as dnsmasq but...) |
| 20 | + | |
| 21 | ||
| 22 | ######## | |
| 23 | # Booting part | |
| 24 | - | # Not sure why the line above is needed and how it should be used; please see: http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq.conf.example |
| 24 | + | ######## |
| 25 | - | # L.E.: It triggers the sending of dhcp-boot data... actual data is not sent, hence dummy data |
| 25 | + | |
| 26 | # gPXE sends a 175 option; make a rule named gpxe | |
| 27 | dhcp-match=gpxe,175 | |
| 28 | ||
| 29 | # if the request does not match the gpxe rule (#gpxe) then tell the client | |
| 30 | # (most likely standard PXE client) to boot gPXE | |
| 31 | # '#' isen't a comment but means 'not' same as '!' in C/C++/etc | |
| 32 | # gpxe.pxe should be in tftp-root directory (a.k.a. /tftpboot in this example) | |
| 33 | dhcp-boot=net:#gpxe,gpxe.pxe | |
| 34 | ||
| 35 | # Windows only boot setup | |
| 36 | ## in this case the request was made by gPXE and we tell it to boot win7 | |
| 37 | ## PXE image via TFTP (freeone is the host name, and 192.168.0.254 is the IP; | |
| 38 | ## in theory these 2 fields should not be necessary if the TFPT server is on the | |
| 39 | ## same machine as dnsmasq but...) | |
| 40 | #dhcp-boot=\Boot\pxeboot.n12,freeone,192.168.0.253 | |
| 41 | ||
| 42 | # HTTP(S) booting setup | |
| 43 | dhcp-boot=https://192.168.1.253/boot.php | |
| 44 | ||
| 45 | # Force sending of DHCP BOOT Packets | |
| 46 | pxe-service=123456789, "Trigger", triggerfile, 0 | |
| 47 | # Not sure why the line above is needed and how it should be used; please see: | |
| 48 | # http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq.conf.example | |
| 49 | # L.E.: It triggers the sending of dhcp-boot data... | |
| 50 | # actual data is not sent, hence dummy data | |
| 51 | ||
| 52 |