From owner-freebsd-questions Wed Oct 2 06:20:02 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA04578 for questions-outgoing; Wed, 2 Oct 1996 06:20:02 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id GAA04525 for ; Wed, 2 Oct 1996 06:20:00 -0700 (PDT) Received: from snake.hut.fi (snake.hut.fi [193.167.6.99]) by who.cdrom.com (8.7.5/8.6.11) with ESMTP id GAA25801 for ; Wed, 2 Oct 1996 06:17:46 -0700 (PDT) Received: from [194.100.45.30] ([194.100.45.30]) by snake.hut.fi (8.7.5/8.7.3) with SMTP id QAA97426; Wed, 2 Oct 1996 16:15:53 +0300 X-Sender: pera@pop.hut.fi. Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Wed, 2 Oct 1996 16:20:06 +0300 To: Richard J Kuhns From: petri.riihikallio@hut.fi (Petri Riihikallio) Subject: Re: IP forwarding not working Cc: questions@freebsd.org Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >OK, how about trying > >arp -s lonely_mac ether_addr pub > >on your gateway machine, where "lonely_mac" is the hostname for the Mac, >and "ether_addr" is the colon-seperated 6 field ethernet address of the >card in the gateway. This tells the rest of the net that your gateway >machine will respond to requests for "lonely_mac" even tho the host address >is not it's own. > >Check out arp(8) for more info. Thanks for your input. If I understand arp(8) correctly, the setup you suggest would cause all ethernet packets addressed to lonely_mac being accepted by the FreeBSD box as well. This is not allowed and I get a "writing to a routing socket: File exists"-error. At the moment the ethernet works correctly. All packets addressed to lonely_mac are accepted by the Mac alone. All packets the Mac generates, either addressed to the FreeBSD box or the Internet, are received by ed0. The problem is that the FreeBSD doesn't forward the packets to ppp0. The whole setup looks like: +------ethernet------+ | | +-----+ +---------+ | Mac | | FreeBSD | +-----+ +---------+ | ppp | +-----+ | ISP |-->Internet +-----+ I think you were thinking of the proxyarp option to pppd. It causes pppd to add an arp entry for the IP address at the other end of the ppp link. I tried it but it didn't work because my IP addresses are not in the same subnet as the ISP's PPP interface. I don't know whether that option would activate the packet forwarding. If you have any more thoughts please let me know. Cheer Petri -- Petri.Riihikallio@hut.fi