Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: lorenzo on April 29, 2011, 05:14:31 pm

Title: [SOLVED]Dyndns and interfaces
Post by: lorenzo on April 29, 2011, 05:14:31 pm
Hello,

I'm using Zentyal Gateway, I have 3 network cards with this scenario:

router Telecom (192.168.1.1) <---> Zentyal eth0 (192.168.1.100) external
router Tiscali (192.168.0.1) <---> Zentyal eth1 (192.168.0.100) external
switch Asus <------> Zentyal eth2 (192.168.2.100) internal

On Network->Gateway i've added both routers and I've set Telecom like default.

I need to have 2 dynamic hosts for both my external ips: my Tiscali's router (an Atlantjs) support directly DynDns service, so that's ok, but Telecom's router don't support it, so i need that Zentyal keep updated my Telecom's ip by dyndns.

The problem is that Zentyal much times send to DynDns.org the IP of tiscali (eth1) interface, how can I tell to Zentyal to use only the telecom (eth0) interface to update my address ?

I thought that I can modify ddclient.conf, or adding on iptables a rule to redirect all HTTP (or dyndns2?) traffic by eth0, but before to do that I wanna know if zentyal can do it directly!

Thanks,
Lorenzo
Title: Re: Dyndns and interfaces
Post by: sixstone on April 29, 2011, 06:28:45 pm
Hi Lorenzo,

Zentyal currently cannot do such thing directly from the interface. I'm afraid you will have to use a custom ddclient configuration to send dynamic IP address queries from one interface (using ddclient options) or set a custom multigateway rule when requesting the external IP address to route all packets from a single interface.

For a way to customise Zentyal, check the following post:

http://blogs.zentyal.org/jacalvo/2011/01/04/how-to-customize-the-configuration-files-generated-by-zentyal/

Best regards,
Title: Re: Dyndns and interfaces
Post by: lorenzo on April 29, 2011, 06:50:12 pm
First of all, thanks for helping,

I've used the multigateway option, and I've redirect all the traffic to checkip.dyndns.com by eth1, and now It works!
 
Lorenzo