1 |
On Tue, Feb 03, 2015 at 09:41:22PM +0000, thegeezer wrote: |
2 |
> howdy, |
3 |
> don't use postup for this. |
4 |
> netifrc is much cleverer |
5 |
> u can directly in /etc/conf.d/net do |
6 |
> |
7 |
> rules_eth0=( |
8 |
> "from 77.247.233.224/30 lookup vsd_linknet pref 32001" |
9 |
> "from all lookup customers pref 32050" |
10 |
> ) |
11 |
|
12 |
I know about this, but i need ip rules that doesn't depend on any interface. |
13 |
This machine is a router with several downstreams and several upstreams; so i |
14 |
can set eth0 interface down and all policy rules must continue to work. |
15 |
|
16 |
> the advantage to doing this instead of in postup is that if you stop |
17 |
> eth0 then the rules are removed and then added back when you start the |
18 |
> interface again |
19 |
|
20 |
As i've mentioned above this is the disadvantage for me. |
21 |
|
22 |
|
23 |
-- |
24 |
Неманов Олег (Nemanov Oleg) |