[Dnsmasq-discuss] static-y IP management

Carl Karsten carl at nextdayvideo.com
Mon May 16 21:46:25 UTC 2022


I'm not sure if what I am doing qualifies as static, so if there is a
proper term let me know.   It isn't sticky:
https://en.wikipedia.org/wiki/IP_address#Sticky_dynamic_IP_address

I have 10 clients, each with a unique mac, and I want the same known
IP assigned to the same mac.

20:89:84:d5:94:28 192.168.0.10
52:54:00:08:02:55 192.168.0.11
68:94:23:f6:33:27 192.168.0.12
... 13, 14, 15....

What I am doing: 10 sshd servers behind 1 public IP,  nttable.conf
maps a range of 10 ports to the 10 servers.

I know of a few ways of doing this, but they all involve generating 10
lines of .conf file.  I have no problem creating a little csv and
writing about 10 lines of python to generate the file.   But anything
that involves "generate" seems clunky.     I am hoping dnsmasq has a
provision for what I am doing.

OT: same issue with the nftables.conf:  I can generate the .conf file,
but if someone knows a slick way of doing this bit, let me know.

-- 
Carl K



More information about the Dnsmasq-discuss mailing list