* sysctl vs. echo > /proc...
@ 2005-05-31 5:57 Taylor, Grant
2005-05-31 8:24 ` Robert Vangel
0 siblings, 1 reply; 2+ messages in thread
From: Taylor, Grant @ 2005-05-31 5:57 UTC (permalink / raw)
To: netfilter
Hey fellow TuX users out there, I have a question for you.
Does any one know the (technical) difference in using sysctl verses echoing values in to the appropriate areas in side of the /proc file system? Which is the more current (expected in the future) practice? Any ideas and / or thoughts on this matter would be greatly appreciated. Consider this very simple and common example:
sysctl -w net.ipv4.ip_forward=1
verses
echo "1" > /proc/sys/net/ipv4/ip_forward
Grant. . . .
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sysctl vs. echo > /proc...
2005-05-31 5:57 sysctl vs. echo > /proc Taylor, Grant
@ 2005-05-31 8:24 ` Robert Vangel
0 siblings, 0 replies; 2+ messages in thread
From: Robert Vangel @ 2005-05-31 8:24 UTC (permalink / raw)
To: netfilter
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]
Taylor, Grant wrote:
> Hey fellow TuX users out there, I have a question for you.
>
> Does any one know the (technical) difference in using sysctl verses
> echoing values in to the appropriate areas in side of the /proc file
> system? Which is the more current (expected in the future) practice?
> Any ideas and / or thoughts on this matter would be greatly
> appreciated. Consider this very simple and common example:
>
> sysctl -w net.ipv4.ip_forward=1
>
> verses
> echo "1" > /proc/sys/net/ipv4/ip_forward
>
>
> Grant. . . .
>
I don't think there is any real different between the two methods.
Really calling sysctl to do it is just another step when using echo
would do it anyway.
On the other hand, if sysctl can be used to log anything so you can
possibly reverse any changes may be an idea, but the only things I have
ever changed (that I can think of) in /proc are ip_forward and
tcp_conntrack_max, which have been with an echo and then editing
/etc/sysctl.conf to match.
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3166 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-05-31 8:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-31 5:57 sysctl vs. echo > /proc Taylor, Grant
2005-05-31 8:24 ` Robert Vangel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.