How can I configure a persistent ip rule
on Linux (specifically Redhat based distros)? Is there no built in method? Is my only option adding to /etc/rc.d/rc.local
or creating my own rc.d
script?
Edit: For clarification I am not referring to iptables
but the ip
tool (which I don't think a lot of people are familiar with). In any case, the rule I am trying to persist is added with the following command:
# ip rule add fwmark 1 lookup 100
# ip rule
...
32765: from all fwmark 0x1 lookup 100
...
The only reference I've found to doing this is from Novell: http://www.novell.com/support/viewContent.do?externalId=7008874&sliceId=1 which recommends creating an rc.d
script