*BSD News Article 97026


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.nl.innet.net!INnl.net!feed1.news.innet.be!INbe.net!stns.news.pipex.net!warm.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet
From: brian@shift.utell.net (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Packet Forwarding using a gateway
Date: 4 Jun 1997 09:23:17 GMT
Organization: Awfulhak Ltd.
Lines: 24
Message-ID: <5n3c65$dpq@ui-gate.utell.co.uk>
References: <5ml8st$1ql$1@ruby.mint.net> <5mmtbo$8kq@ui-gate.utell.co.uk>
    <5murk5$luf$1@ruby.mint.net> <5n0ofq$5bl@ui-gate.utell.co.uk>
    <3394DCEA.2DE6@itech-inc.com>
Reply-To: brian@awfulhak.org, brian@utell.co.uk
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:42316

In article <3394DCEA.2DE6@itech-inc.com>,
	jim <jiml@itech-inc.com> writes:
> I am trying to use a multihomed 2.2.1R to act as a gateway between two
> networks.  I have a router to the internet on one side attached to ed0
> and another small network on the opposite side attached to ed1.  I can
> ping either side when logged into the gateway machine, but cannot get
> the machine to forward packets between the interfaces (i.e. can't reach
> the inside network from the outside or the outside from the inside
> network).  
> 
> ed1 is setup as ifconfig ed1 xxx.xxx.xxx.80 -netmask 255.255.255.224
> ed0 is setup as ifconfig ed0 xxx.xxx.xxx.81 -netmask 255.255.255.224

If your xxx.xxx.xxx's are the same in both cases, your gateway will
have no reason to forward packets.  You must have two non-conflicting
networks, one on each interface.

[.....]
> Jim

-- 
Brian <brian@awfulhak.org> <brian@freebsd.org>
      <http://www.awfulhak.org>
Don't _EVER_ lose your sense of humour !