From: Mike Jones on

I've got WWW on eth0, and machines on my LAN (eth1) being forwarded
through a single machine. I've been using static addresses so far, but
dnsmasq looks like a better way to do this, plus it also looks like I can
restrict things to specific machines based on their MAC address too.


So, working from the man page (whilst tired)...

# ===================================================

# /etc/dnsmasq.conf

interface=eth1
no-hosts
dhcp-range=192.168.1.1,static

# (Real MAC addresses to be added here)
dhcp-host=11:22:33:44:55:66,BOX2,192.168.1.2,infinite
dhcp-host=11:22:33:44:55:77,BOX3,192.168.1.3,infinite
dhcp-host=11:22:33:44:55:88,BOX4,192.168.1.4,infinite
dhcp-host=11:22:33:44:55:99,BOX5,192.168.1.5,infinite

domain-needed
bogus-priv

# add to as required...
address=/doubleclick.net/127.0.0.1

# ===================================================

....does this look sane?

All I need is for selected machines to be able to connect to and forward
through the box acting as a router, that being BOX1 192.168.1.1

If this is a screw up, feel free to point out the glaring mistakes. %)

Ta.




XP=alt.os.linux,alt.os.linux.slackware FU=alt.os.linux

--
*=( http://www.thedailymash.co.uk/
*=( For all your UK news needs.