I need policy based routing at my server, but I donÂ´t now the right place to make it persistent across reboots.
At this time we start a script (router.sh) after reboot. It works but it isnÂ´t a clean solution.
ip route add 10.10.20.0/24 dev eth1 src 10.10.20.10 table rt2
ip route add default via 10.10.20.1 dev eth1 table rt2
ip rule add from 10.10.20.10/32 table rt2
ip rule add to 10.10.20.10/32 table rt2
Where is the right place and the syntax to make it persistent clean? I try /etc/sysconfig/network/if-up.d/route.sh but it doesnÂ´t work (maybe I use the wrong syntax)