Author Topic: Policy routing Configuration  (Read 1185 times)

wonderaug

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Policy routing Configuration
« on: October 14, 2013, 03:34:00 pm »
Hello,

I have been able to configure loadbalancing on Zentyal to my WAN gateways. Then I go to the commandline and zentyal configured ip rules which look like this

#ip rule show table 101
ip route default via $gw1_ip dev eth1

#ip rule show table 102
ip route default via $gw2_ip dev eth2

However I would like to add the following routes to each rule table
#ip rule 101
gw1_network/24 dev eth1  scope link

#ip rule 102
gw2_network/24 dev eth2 scope link

So the final tables will look like

#ip rule add from $eth1_ip table 101
ip route default via $gw1_ip dev eth1
gw1_network/24 dev eth1  scope link

#ip rule add from $eth2_ip table 102
ip route default via $gw2_ip dev eth2
gw2_network/24 dev eth2 scope link

Please does anyone know how I can achieve this config with Zentyal? I am interested in knowing if I can do this from the GUI.

Thank you

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Policy routing Configuration
« Reply #1 on: October 14, 2013, 11:58:35 pm »
Hi there: If you want that traffic from LAn 1 goes through, say gw1 and traffic from LAn goes through gw2, you can do this in GUI with multigw rules quite easily (just defining the origin of the traffic on each rule)