Netbalancer & Iptables

Home Page Forums Network Management Networking Netbalancer & Iptables

This topic contains 1 reply, has 0 voices, and was last updated by  foudroyeur 6 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43303

    foudroyeur
    Member

    Hello

    I have to configure a rule reading that i must use the gateway 3 when i connect to the site http://www.abc.com

    http://www.abc.com 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 ^^

    #52264

    foudroyeur
    Member

    Nobody knows ?

    Thank you ^^

    #52265

    zgypa
    Member

    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.