Networking Forums

Networking Forums > Computer Networking > Linux Networking > Sysctl problem

Reply
Thread Tools Display Modes

Sysctl problem

 
 
Walter Schiessberg
Guest
Posts: n/a

 
      09-26-2003, 04:17 PM
Hi,

on my Redhat 7.3 I have following entries in /etc/sysctl.conf:

net.ipv4.conf.ppp0.log_martians = 1
net.ipv4.conf.ppp0.accept_redirects = 0
net.ipv4.conf.ppp0.accept_source_route = 0

But after reboot the values are not set.


So I tried in rc.local:

sysctl -w net.ipv4.conf.ppp0.log_martians=1
sysctl -w net.ipv4.conf.ppp0.accept_redirects=0
sysctl -w net.ipv4.conf.ppp0.accept_source_route=0

But still the values are not set.
What am I missing?

Cheers

Walter


 
Reply With Quote
 
 
 
 
Horst Knobloch
Guest
Posts: n/a

 
      09-27-2003, 12:13 PM
Walter Schiessberg <(E-Mail Removed)> wrote:

> on my Redhat 7.3 I have following entries in /etc/sysctl.conf:
>
> net.ipv4.conf.ppp0.log_martians = 1
> net.ipv4.conf.ppp0.accept_redirects = 0
> net.ipv4.conf.ppp0.accept_source_route = 0
>
> But after reboot the values are not set.
>
> So I tried in rc.local:
>
> sysctl -w net.ipv4.conf.ppp0.log_martians=1
> sysctl -w net.ipv4.conf.ppp0.accept_redirects=0
> sysctl -w net.ipv4.conf.ppp0.accept_source_route=0
>
> But still the values are not set.
> What am I missing?


When you had set these was ppp0 already up? If not you should
got an error like:

sysctl -w net.ipv4.conf.ppp0.log_martians=1
error: 'net.ipv4.conf.ppp0.log_martians' is an unknown key

You could either configure *all* interfaces by
net.ipv4.conf.all.log_martians = 1
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.accept_source_route = 0

or put the above "sysctl -w" stuff for the ppp0 into the
/etc/ppp/ip-up.local script. The latter might be the better
solution.

HTH

Ciao, Horst
--
»When pings go wrong (It hurts me too)« E.Clapton/E.James/P.Tscharn
 
Reply With Quote
 
Horst Knobloch
Guest
Posts: n/a

 
      09-27-2003, 12:15 PM
Walter Schiessberg <(E-Mail Removed)> wrote:

> on my Redhat 7.3 I have following entries in /etc/sysctl.conf:
>
> net.ipv4.conf.ppp0.log_martians = 1
> net.ipv4.conf.ppp0.accept_redirects = 0
> net.ipv4.conf.ppp0.accept_source_route = 0
>
> But after reboot the values are not set.
>
> So I tried in rc.local:
>
> sysctl -w net.ipv4.conf.ppp0.log_martians=1
> sysctl -w net.ipv4.conf.ppp0.accept_redirects=0
> sysctl -w net.ipv4.conf.ppp0.accept_source_route=0
>
> But still the values are not set.
> What am I missing?


When you had set these was ppp0 already up? If not you should
got an error like:

sysctl -w net.ipv4.conf.ppp0.log_martians=1
error: 'net.ipv4.conf.ppp0.log_martians' is an unknown key

You could either configure *all* interfaces by
net.ipv4.conf.default.log_martians = 1
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.default.accept_source_route = 0

or put the above "sysctl -w" stuff for the ppp0 into the
/etc/ppp/ip-up.local script. The latter might be the better
solution.

HTH

Ciao, Horst
--
»When pings go wrong (It hurts me too)« E.Clapton/E.James/P.Tscharn
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sysctl permission denied on mc_forwarding keys J G Miller Linux Networking 8 09-25-2011 03:03 PM
Strange problem: no problem with Linux, when I boot windows 2K network is down... Santa Linux Networking 11 11-29-2004 06:46 AM
sysctl.conf not being executed? cam Linux Networking 0 10-26-2004 11:09 AM
Sysctl problem Walter Schiessberg Linux Networking 5 09-26-2003 06:55 PM
sysctl options Tim Sampson Linux Networking 1 08-12-2003 03:49 PM



1 2 3 4 5 6 7 8 9 10 11