Author Topic: [SOLVED] How to steer traffic to a specific gateway?  (Read 417 times)

dzidek23

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
[SOLVED] How to steer traffic to a specific gateway?
« 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.
« Last Edit: March 16, 2022, 02:44:19 pm by dzidek23 »

dzidek23

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: How to steer traffic to a specific gateway?
« Reply #1 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)

dzidek23

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: How to steer traffic to a specific gateway?
« Reply #2 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.