Suggestion: do not get locked out of Omnia by a silly mistake or a typo

So by a stupid mistake I crashed my DHCP server, which in turn almost locked me out of Omnia…

steps to reproduce:

  1. use the same IP address twice in LuCI / Network / DHCP DNS / Static Leases
  2. restart Omnia

result:

root@turris:~# grep -i dnsmasq /var/log/messages

2019-03-20 22:36:19 notice dnsmasq[]: DNS rebinding protection is active, will discard upstream RFC1918 responses!
2019-03-20 22:36:19 notice dnsmasq[]: Allowing 127.0.0.0/8 responses
2019-03-20 22:36:20 crit dnsmasq[5664]: duplicate dhcp-host IP address 10.0.0.75 at line 29 of /var/etc/dnsmasq.conf
2019-03-20 22:36:20 crit dnsmasq[5664]: FAILED to start up

Now the user won’t be able to connect to the router unless they think of using static IP address…

suggestion:
do not let user enter the same IP address multiple times in LuCI / Network / DHCP DNS / Static Leases :slight_smile:

1 Like

Good idea, but…

  1. Development of luci is not done in any means by turris team, so please send this idea to the real developers
  2. This won’t help when using direct ssh-access.
  3. We have a simple and almighty security measurement in place which you should use instead called schnapps :hugs:
2 Likes

Have encountered the same problem. Now reported upstream.

1 Like