Author Topic: Zentyal network configuration over a VM with different gateway  (Read 1604 times)

pftech

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Hi to all,
We're pretty new with Zentyal and we appreciate the good job that has done. We've tested Zentyal in a small server environment and now we'd like to test in a larger server for using OpenChange good features.

We're encountering big problems configuring Zentyal network interface since we're installing it on a VM over Proxmox. The first problem is that we should assign a static IP with .255 subnet mask and Zentyal web configurator doesn't allow it. Then we should use a default gateway that is different (outside) the ip assigned to the network interface.

We've already searched a lot over the internet and we'd found other people that had the same problem but it seems that they haven't found an easy way to solve this and most of these tricks doesn't work over new versions 3.4 and even the latest 3.5 that we tried 2 days ago.

Our network interface should look like this:

Code: [Select]
iface eth0 inet static
        address 94.23.XXX.YYY
        netmask 255.255.255.255
        broadcast 94.23.XXX.YYY
        post-up route add 37.WWW.ZZZ.1 dev eth0
        post-up route add default gw 37.WWW.ZZZ.1
        post-down route del 37.WWW.ZZZ.1 dev eth0
        post-down route del default gw 37.WWW.ZZZ.1

The default gateway is part of the Proxmox server static ip ending with .1
This is required by our hosting provider Online.net and we cannot change this. Over other linux distro we don't have any problem. Here with Zentyal the problem is that everytime we try setting network in this why we reboot our Zentyal server and we have /etc/network/interfaces changed back again to the original one.

We've even tried to create a network.postsetconf file trying to replace network interfaces file back after reboot but it doesn't work.

Anyone has a solution about this problem? We're going crazy!!!!  :o :o  :D


Thanks in advance to everyone!!!

Regards,
Paolo
« Last Edit: July 13, 2014, 10:51:47 am by pftech »

pftech

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Zentyal network configuration over a VM with different gateway
« Reply #1 on: July 14, 2014, 08:05:00 am »
After a weekend passed over this configuration problem I've found a simple way to solve this, even if it's a bit long to do.

I've installed a VM with pfSense distribution with firewall/routing functionality. I've done a bridge with a virtual interface VMBR1 over pfSense and Zentyal VM with standard local LAN IP configuration (eg. 192.168.1.XXX).

Then I've "played" with pfSense over port forwarding to open the correct ports to reach Zentyal over the internet.

It works great and I can even close and disable those port like SSH access that I don't want to be able to access outside our virtual LAN.

Anyway I'm still interested if someone have solved the problem about setting a gateway in Zentyal that is outside the ip network assigned to the interface.

Regards,
Paolo