I’m currently routing some marked packets via eth0
. However, I have to apply the routing rules every time the system reboots. The two commands I always have to re enter are
ip rule add fwmark 3 table 3
ip route add default via 192.168.0.1 table 3
The gateway for eth0
being 192.168.0.1
I’ve tried placing those commands in both /etc/rc.local
and /etc/network/interfaces
, and in both cases I have still had to run them manually. Does anyone have a suggestion as to where/how to run these commands on every startup?