ISPConfig behind an OpenBSD binat firewall

Discussion in 'Installation/Configuration' started by hitechwizard, Aug 21, 2007.

  1. hitechwizard

    hitechwizard New Member

    I have everything in ISPConfig working, except when I create new domains, the DNS uses the default IP address of the box. This works ok when the IP address of the box is public, however for a system that is behind an OpenBSD firewall with pf binat'ing the outside address, the DNS zone gets populated with the private IP as the server has no clue what's going on at the firewall or the outside IP address. Apache has to have the inside IP since all packets have had their destination changed to the inside address, but for DNS everything needs to be the external. Could someone point me to where the DB/zone file initially gets populated? This would save me quite a bit of time tracing through the code.

    Thanks
     
  2. till

    till Super Moderator

    Just do not enable the dns record auto creation when you create a website and add the DNS records with the correct external IP addtess in the DNS-manager.
     
  3. hitechwizard

    hitechwizard New Member

    I would still like for it to auto-populate the zones, just with the correct IP address. I've traced it down as far as the multidoc editor, but I'm still looking for where doc type 1012 is being handled.
     
  4. till

    till Super Moderator

    You will have to ptogram this in the action file of the form. You will find the name of the action file in the settings of the form. The action files are PHP classes and located in /home/admispconfig/ispconfig/lib/classes/
     
  5. hitechwizard

    hitechwizard New Member

    Thanks for pointing me in the right direction. Three changed lines in /home/admispconfig/ispconfig/lib/classes/ispconfig_isp_web.lib.php and it works like a champ. Now to abstract it to a configuration file and I'll be set.

    Thanks again.
    Jesse
     

Share This Page