Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!pravda.aa.msen.com!spool.mu.edu!daily-planet.execpc.com!news.moneng.mei.com!howland.reston.ans.net!tank.news.pipex.net!pipex!news.mathworks.com!fu-berlin.de!zib-berlin.de!irz401!uriah.heep!bonnie.heep!not-for-mail From: j@bonnie.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: How to set up routing tables? Date: 21 Aug 1995 13:27:15 +0200 Organization: Private U**x site, Dresden. Lines: 35 Message-ID: <419qij$r1h@bonnie.tcd-dresden.de> References: <ARNULF.95Aug17095614@arnulf.dialup.fu-berlin.de> <411n6s$e62@bonnie.tcd-dresden.de> <415a6d$eui@sol.ctr.columbia.edu> Reply-To: joerg_wunsch@uriah.heep.sax.de NNTP-Posting-Host: 192.109.108.139 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Bill Paul <wpaul@ctr.columbia.edu> wrote: >: options GATEWAY is almost a no-op and will disappear in one of the >: next releases. > >I hope not. There's no reason to remove the ability to set default >kernel flags like this at compile time. That aside: I think there's an RFC that forbids this being turned on by default. GATEWAY is perhaps the last option that performs this type of hackery. >: Use > >: sysconf -w net.inet.ip.forwarding=1 > >First of all, it's sysctl, not sysconf. Second, crusty traditionalists Of course, my fault. >like myself would probably prefer to do it like this: > ># echo "set ipforwarding = 1" | gdb -k -w /vmunix /dev/mem Won't work in FreeBSD though. (I think you'll get a ``Readonly file system'' or so.) I rather like the sysctl version. It's less error-prone and allows the kernel some sort of control (e.g. you can have read/only variables). -- cheers, J"org private: joerg_wunsch@uriah.heep.sax.de http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)