*BSD News Article 51358


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!recepsen.aa.msen.com!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!not-for-mail
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: IPFORWARDING on FreeBSD2.0, Help Please
Date: 18 Sep 1995 22:47:30 +0200
Organization: Private FreeBSD site, Dresden.
Lines: 26
Message-ID: <43klt2$306@uriah.heep.sax.de>
References: <43ip24$as@mippet.ci.com.au>
NNTP-Posting-Host: uriah.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

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.

Btw., sysctl would have been sufficient.  options GATEWAY is
considered obsolote (well, now, in the upcoming 2.1).

>
> I have 2 network cards, with different subnet. I tried to telnet from
> network1 to network2, it came back with timeout.

Guessing...

Inconsistent netmask?  Perhaps one of the machines in the subnets
attempts to resolve the remote peer via arp instead of forwarding the
packet to the gateway?  You can use the arp command to see this.
-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)