rc-scripts psuja ustawienia sysctl?

The Undefined undefine w aramin.net
Śro, 19 Sty 2005, 08:31:18 CET


On Wed, Jan 19, 2005 at 03:28:41AM +0100, Andrzej Krzysztofowicz wrote:
> > wytlumaczcie mi coś, bo nie rozumiem:
> > [root w sv1 eth0]# pwd
> > /proc/sys/net/ipv4/conf/eth0
> > [root w sv1 eth0]# sysctl -p /etc/sysctl.conf |grep redirect
> > net.ipv4.conf.all.accept_redirects = 0
> > net.ipv4.conf.eth0.accept_redirects = 0
> > net.ipv4.conf.all.send_redirects = 0
> > net.ipv4.conf.eth0.send_redirects = 0
> 
> Te ustawienia sysctl sa dostepne dopiero po zainicjalizowaniu interfejsow
> sieciowych.
zainicjalizowaniu? popraw mnie jesli sie myle, ale one chyba sa gdy
modul jest zaladowany?
A przeciez modul nie jest wyladowywany podczas restartu sieci?

[root w router eth0]# cat send_redirects;ip link set eth0 down; cat send_redirects; ip link set eth0 up; cat send_redirects
0
0
0

> > [root w sv1 eth0]# /etc/rc.d/init.d/network restart
> > Wyłączanie interfejsu eth0.........................................[ ZROBIONE ]
> > Podnoszenie interfejsu eth0........................................[ ZROBIONE ]
> > Ustawianie statycznych wpisów ARP..................................[ ZROBIONE ]
> > [root w sv1 eth0]# cat accept_redirects 
> > 1
> 
> A najwyrazniej po skonfigurowaniu sieci juz sysctl nie jest wolany...
jest jakas "right way" by to zrobic?
czy lepsze jest poprawienie rc-scriptow by wolaly sysctl po restarcie
sieci?

Zreszta - nie moge teraz sprawdzic, ale zdaje mi sie ze w "ra" to
dzialalo :/

-- 
Andrzej 'The Undefined' Dopierała
UNIX && Linux administrator, Adam Mickiewicz University WMiI
PLD Linux Developer             HomePage: http://aramin.net/
JID: undefine w piastlan.net    e-mail: undefine w pld-linux.org




Więcej informacji o liście dyskusyjnej pld-devel-pl