OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 15.7 Legacy Series »
  • [SOLVED] Sync of /etc/hosts in HA Configuration failure
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] Sync of /etc/hosts in HA Configuration failure  (Read 3792 times)

ornd

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
[SOLVED] Sync of /etc/hosts in HA Configuration failure
« on: August 27, 2015, 01:29:12 pm »
Hi,

I have two opnsense instances running in a HA config with xmlrpc sync activated. The config is synced fine but it doesn't seem to be activated on the second system. For example dnsmasq and the entries inside /etc/hosts

When I add a new host in the dns forwarder (for example host01 with the ip 192.168.1.1) then it gets activated on the first gateway and the dns resolutions works fine.

gateway01, $ cat /etc/hosts:
...
192.168.1.1   host01.foo.dom host01
...

on the second gateway(02) in the web gui the host is shown but in the /etc/hosts its missing, resulting in a dns failure.

The workaround is to restart the gateway02 (the whole system, not only the service), then the entries are synced.

In addition, on the second opnsense the /etc/hosts contains duplicate entries from dhcp (pool) leases.

This doesn't look like production ready.

Any hints how to solve it?

Best regards!
« Last Edit: August 31, 2015, 10:36:48 am by ornd »
Logged

ornd

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Sync of /etc/hosts in HA Configuration failure
« Reply #1 on: August 31, 2015, 10:36:26 am »
Solved the problem. I moved back to pfSense.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13624
  • Karma: 1173
    • View Profile
Re: [SOLVED] Sync of /etc/hosts in HA Configuration failure
« Reply #2 on: September 10, 2015, 02:48:16 pm »
Thanks for reporting. 15.7.12 will contain the following fix:

https://github.com/opnsense/core/commit/5b39c0a44d19bf3b57d88c26324603b872e4c3fc
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 15.7 Legacy Series »
  • [SOLVED] Sync of /etc/hosts in HA Configuration failure
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2