From owner-freebsd-questions Thu Feb 5 18:21:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA24519 for questions-outgoing; Thu, 5 Feb 1998 18:21:12 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA24500 for ; Thu, 5 Feb 1998 18:20:59 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.7/8.8.7) with ESMTP id TAA07525 for ; Thu, 5 Feb 1998 19:58:49 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199802051958.TAA07525@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: freebsd-questions@FreeBSD.ORG Subject: Re: natd isn't working? In-reply-to: Your message of "Wed, 04 Feb 1998 14:39:32 +0300." <199802041140.OAA09953@ciam.comtel.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 05 Feb 1998 19:58:48 +0000 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe questions" > Hello! > > I'v decided to try ip-masquareding. So, I rebuild may kernel with IPFIREWALL > and IPDIVERT options. All right. I saw it when booting. > Next I checked sysctl for net.inet.ip.forwarding=1. It's o'k. > Next I runned natd -n ed0. > Finally: > ipfw add divert natd all from any to any via ed0 > ipfw add pass all from any to any > > Everything like in manual. > ipfw list output: > > 01000 allow ip from 127.0.0.0/8 to 127.0.0.0/8 > 01010 deny ip from 127.0.0.0/8 to 127.0.0.0/8 > 65000 divert 6668 ip from any to any via ed0 > 65100 allow ip from any to any > 65535 deny ip from any to any > > All right? > Nothing working. Network blocked. > I see packages diverted to natd (used ipfw show) > But natd is not receiving anything. I tried natd -l -n ed0 and natd -v -n ed0 > to check it. > > Please help! I read all manual and I think I did all right. Do you have the correct line in /etc/services ? Also, if you're using a pre 2.2.2 FreeBSD, the -i & -o options must be used on different ports. > Sem. > PS Sorry if something wrong with my english :) -- Brian , , Don't _EVER_ lose your sense of humour....