Zentyal Forum, Linux Small Business Server

Zentyal Server => Other modules => Topic started by: dzidek23 on March 15, 2022, 02:41:38 pm

Title: [SOLVED] How to steer traffic to a specific gateway?
Post by: dzidek23 on March 15, 2022, 02:41:38 pm
In my scenario, Zentyal 7.0.4 has two gateways.

eth0 VLAN10 10.0.0.1/24 connected to my L3 switch (IP addressing and DHCP from Zentyal)
eth1 VLAN11 192.168.0.1/24 connected to interent gateway/firewall (firewall is the DHCP server)

eth0 - (not default, weight 1)
eth1 - (default, weight 10)

My L3 switch has number of other VLANs eg.

VLAN3 10.0.1.1/24 another domain (not connected to Zentyal)

Now, If I try to ping 10.0.1.1, Zentyal sends all traffic to eth1 - with "no route to host"
The L3 switch would send the packet to the right place and it also knows how to forward traffic back VLAN11.

Can anyone tell me how to setup traffic forwarding so that certain IP's are pushed to eth0 and not the default. This is something I can't figure out and documentation doesn't cover this.
Title: Re: How to steer traffic to a specific gateway?
Post by: dzidek23 on March 15, 2022, 03:03:56 pm
Scrap that question  ;D

It is covered in the docs but it wasn't obvious to me.

SOLUTION:

Create object for the internal VLAN.
Network -> Object -> Add new -> Internal VLANs
in members add all of your VLANs eg.:
VLAN3 10.0.1.0/24

With that go to Gateways -> Balance Traffic -> Multigateway rules and Add New

Any, Any, Internal VLANs, all, gw-eth0

add, save and enjoy  8)
Title: Re: How to steer traffic to a specific gateway?
Post by: dzidek23 on March 16, 2022, 02:43:54 pm
Yet another reply to myself.

The above solution does work, somewhat... If I ping whichever IP from a client it is (mostly) redirected. But if I try "ip route" on Zentyal command line  or ping from there then the IP can't be resolved.