• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

HAProxy not recognising dynamic public ip address change until service restart

Scheduled Pinned Locked Moved Cache/Proxy
3 Posts 1 Posters 661 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    Clarence
    last edited by Jan 30, 2021, 9:19 AM

    Hello friendly forum peeps,

    in the past month I have setup a frontend and backend in HAProxy to access my local services via subdomains of a domain I own.
    Reason being I like not having to deal with certificate error messages when opening the web GUIs of my services in a web browser.

    For security reasons I use ACLs on the backend to perform a "http-request deny" if a local network or my domain name (DNS rebinding is annoying) is NOT recognised.
    The local networks are grouped with the help of an alias but because I have not been successful in getting PfSense aliases to resolve hostnames I can't add my domain name to the alias.
    So I just added my domain name as an additional "Source IP matches IP or Alias:" backed ACL rule and this works great until my ISP decides to restart my router remotely during working hours (the absolute F*cking cheek) and I receive a new IP address. Thereafter I naturally get "403: Request forbidden by administrator rule...." because my domain name does not resolve to the same public IP according to HAProxy.

    Do I need to change the HAProxy global dns resolver settings in order to get things automated after a change of public IP address?
    b71a5d8b-b980-442b-a39c-f83caedccbea-image.png
    Or are cron jobs my only source of respite?

    Thanks in advance for any help! 😊

    1 Reply Last reply Reply Quote 0
    • C
      Clarence
      last edited by Jan 30, 2021, 10:27 AM

      EDIT: Note that I have double NAT (using my ISP cable modem is a necessity. PfSense is "behind" it.) but have setup my WAN gateway to monitor 8.8.4.4.

      1 Reply Last reply Reply Quote 0
      • C
        Clarence
        last edited by Feb 27, 2021, 5:47 AM

        Anyone have any ideas?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received