Netbalancer & Iptables

Forums Network Management Networking Netbalancer & Iptables

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #43303


    I have to configure a rule reading that i must use the gateway 3 when i connect to the site have a dynamic public ip so i have to type the fqdn name (not the ip of the site)

    Is it possible ? How does i configure it in zeroshell ?

    Thank you very much ^^


    Nobody knows ?

    Thank you ^^


    No, i don’t think you can just add the FDQN as a Balancing Rule. That’s a firewall table. What you have to do, i think, is write a bash or ruby or whatever script that adds the rule manually, after resolving the IP address.

    You would want to put that script in Setup>Startup/Cron. And the script would have to:

    * resolve the IP address with dig or nslookup
    * extract it from the output
    * manually add the rule with iptables.

    And then schedule the job with the appropriate frequency. If it’s a site that realistically only changes IP once every few months, or so, than you might be OK with an hourly or daily job: in the worst case you would have to just wait until it refreshes, but only very rarely. Otherwise have it update every 5 mins or so.

    That’s all i can think of.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.