On 24 May 2011, Raphaël Jacquot told this: > On Tue, 2011-05-24 at 11:32 +0300, Pete wrote: >> Just assign IP address to all interfaces and set >> /proc/sys/net/ipv4/ip_forward to 1 . >> If you wan't firewall functions also just set iptables ad apropriate. > > in fact, /proc/sys/net ... is deprecated > you should use sysctl instead
I think you got that backwards. The sysctl() syscall is very, very deprecated, so deprecated that huge chunks of it are rotten and nonfunctional at any given time, so deprecated that most of it has been torn out and replaced with code that uses /proc/sys/net instead (as of commit 77b14db502cb85a031fe8fde6c85d52f3e0acb63). There is one known user of sysctl(). Unfortunately that user is glibc :( so sysctl() cannot go away for the foreseeable future. But still nobody should use it for anything. Even the sysctl(8) command reads and writes to/from /proc and never uses the sysctl() system call. > also, you should start to bother about IPv6 immediately so as to be > ready when the proverbial shit hits the proverbial fan As an AAISP customer, I must second this :) and push getting IPv6-ready up my priority list... -- NULL && (void) _______________________________________________ Soekris-tech mailing list [email protected] http://lists.soekris.com/mailman/listinfo/soekris-tech
