Re: [owl-users] static-route

From: Solar Designer (solar@private)
Date: Mon Aug 28 2006 - 09:24:53 PDT


On Mon, Aug 28, 2006 at 04:43:21PM +0200, Stanislav wrote:
> is it correct that 
> 
> root:~# cat /etc/sysconfig/static-routes  
> any net x.x.x.x netmask x.x.x.x gw x.x.x.x
> 
> should add a static route entry ?

Yes.

> Neither /etc/sysconfig/network-scripts/ifup-routes
> nor /etc/rc.d/init.d/network use it !?

They do, but:

1. /etc/rc.d/init.d/network in older versions of Owl had a typo that
prevented this from working.  The bug was fixed over a year ago:

* Tue May 24 2005 (GalaxyMaster) <galaxy-at-owl.openwall.com> 0.24-owl1
- Fixed a typo in /etc/rc.d/init.d/network which used to break the static
routes logic. Thanks to DaNuk <noc at spacenet.ru> for pointing it out.

You didn't mention what version of Owl you're using, but I am guessing
that it's an old one.

2. /etc/sysconfig/network-scripts/ifup-routes only takes care of routes
that are specific to a particular network interface.  Your example route
would be setup by the "network" script rather than by "ifup-routes".

-- 
Alexander Peslyak <solar at openwall.com>
GPG key ID: B35D3598  fp: 6429 0D7E F130 C13E C929  6447 73C3 A290 B35D 3598
http://www.openwall.com - bringing security into open computing environments

Was I helpful?  Please give your feedback here: http://rate.affero.net/solar



This archive was generated by hypermail 2.1.3 : Mon Aug 28 2006 - 09:29:05 PDT