Gentoo Archives: gentoo-user

From: Oleg <lego12239@××××××.ru>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] netifrc & system init actions
Date: Thu, 05 Feb 2015 11:13:13
Message-Id: 20150205111127.GA15173@localhost
In Reply to: Re: [gentoo-user] netifrc & system init actions by thegeezer
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)

Replies

Subject Author
Re: [gentoo-user] netifrc & system init actions thegeezer <thegeezer@×××××××××.net>