Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Feb 1998 19:58:48 +0000
From:      Brian Somers <brian@Awfulhak.org>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: natd isn't working? 
Message-ID:  <199802051958.TAA07525@awfulhak.org>
In-Reply-To: Your message of "Wed, 04 Feb 1998 14:39:32 %2B0300." <199802041140.OAA09953@ciam.comtel.ru> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
Don't _EVER_ lose your sense of humour....





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802051958.TAA07525>