*BSD News Article 96958


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!uwm.edu!newsfeeds.sol.net!news.maxwell.syr.edu!newsfeed.internetmci.com!news.jb.com!news
From: jim <jiml@itech-inc.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Packet Forwarding using a gateway
Date: Tue, 03 Jun 1997 20:11:38 -0700
Organization: Internet Access Services
Lines: 27
Message-ID: <3394DCEA.2DE6@itech-inc.com>
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>
NNTP-Posting-Host: random22.ordata.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0Gold (Win95; I)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:42254

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

gateway="YES" in the sysconfig.

Default route is set and can access machines on the net so it's getting
through the router (xxx.xxx.xxx.94) and I can access the xxx.xxx.xxx.70
machine on the inside network (both of these from the gateway bsd
machine itself).

Maybe without a complete reprogram of the router (sorry no way it's
owned by my provider) I just can't do it but it would be very nice if I
could. 

Any ideas greatly appreciated.  Email or post.

thanks all

Jim