*BSD News Article 51610


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!news.uoregon.edu!usenet.eel.ufl.edu!news.mathworks.com!uunet!in2.uu.net!news1.digital.com!nntp-hub2.barrnet.net!parc!fenner
From: fenner@parc.xerox.com (Bill Fenner)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: IPFORWARDING on FreeBSD2.0, Help Please
Date: 20 Sep 1995 16:10:59 GMT
Organization: Xerox Palo Alto Research Center
Lines: 23
Message-ID: <43peej$m6l@news.parc.xerox.com>
References: <43ip24$as@mippet.ci.com.au>
NNTP-Posting-Host: crevenia.parc.xerox.com

In article <43ip24$as@mippet.ci.com.au>,
Ferry Winarta  <ferryw@softplus.com.au> wrote:
>
> I tried to enable ipforwarding on FreeBSD2.0, but it didn't work.
>
> I did recompile the kernel with GATEWAY, IPFORWARDING, and 
> IPFORWARDING_VERBOSE options.
>
> I tried sysctl -a, it gave me ipforwarding = 1.
>
> I have 2 network cards, with different subnet. I tried to telnet from
> network1 to network2, it came back with timeout.

Sounds like you don't have your routes set properly.  Do you have static
routes on network1 and network2 pointing to the FreeBSD box, or do you run
routed or gated on the FreeBSD box to advertise the routes?

> Do I need to use ipfw command to enable this

No, ipfw tells the kernel to *not* forward certain packets.  This is probably
not what you want.

  Bill