ispCP - Board - Support
admin.domain.tdl - false IP in Bind9 - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: admin.domain.tdl - false IP in Bind9 (/thread-12307.html)



admin.domain.tdl - false IP in Bind9 - fluser - 12-02-2010 05:05 AM

Hello all

I've got a small problem.

My IspCP-Server is behind a firewall. Now i've got the problem, that the master-Bind-File every time takes the internally IP-Adress.

At the moment, I've got this workarround:
Code:
sed -i "s/192.168.2.51/xxx.xxx.xxx.xxx/g" /var/cache/bind/admin.domain.tdl.db
sed -i "s/192.168.2.151/xxx.xxx.xxx.xxx/g" /var/cache/bind/admin.domain.tdl.db
/etc/init.d/bind9 reload

I found the script, which recreates this file, but I can't edit it, because I'm not able to write in Perl.

The other domain files in bind are correct created, because I changed the templates.

Maybe someone can help me.

Best Regards
Fluser


RE: admin.domain.tdl - false IP in Bind9 - fluser - 12-04-2010 12:19 AM

Nobody any idea?

Best Regards
Fluser


RE: admin.domain.tdl - false IP in Bind9 - motokochan - 12-04-2010 01:50 AM

ispCP doesn't really support NAT all that well. To get it somewhat working, you'll need to edit a few template files, the configuration file, and the database. Basically, you'll have to switch to using the external IP within the control panel and edit the Apache configuration to listen on the correct IPs. This will only work if you have a static external IP. Is this the case?


RE: admin.domain.tdl - false IP in Bind9 - fluser - 12-04-2010 02:05 AM

I've done all changes on the /etc/ispcp/bind/parts/ Template files. And all worked fine with IspCP 1.0.6
But since Version 1.0.7, the admin.domain.tdl is changed every time, I add a new customer.
All other bind-files are created correctly with the external (static) IP.

IspCP works great behind a firewall with NAT. The only change what is needed is to change all files in /etc/ispcp/bind/parts/

Best Regards
Fluser


RE: admin.domain.tdl - false IP in Bind9 - motokochan - 12-04-2010 03:16 AM

Did you change the server IP in both the database and ispcp.conf?


RE: admin.domain.tdl - false IP in Bind9 - fluser - 12-04-2010 04:36 AM

Please, I only need to know how to change /var/www/ispcp/engine/ispcp-dmn-mngr at section: "Add DNS record in master db file for customer domain alias"

I didn't change the ip since installation. As I already said, with version 1.0.6 it worked. But the new mod of Laurent Declercq changed the management of the master db file.

Best Regards
Fluser