Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Nov 1997 12:56:04 +0000
From:      Ruslan Shevchenko <Ruslan@Shevchenko.kiev.ua>
To:        Brian Somers <brian@awfulhak.org>
Cc:        freebsd-questions@FreeBSD.org, freebsd-isp@FreeBSD.org
Subject:   Re: Help with Natd, pls.
Message-ID:  <3461BE63.D1047E3C@Shevchenko.kiev.ua>
References:  <199711052358.XAA03948@awfulhak.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Brian Somers wrote:

> ?
> ?  I have:
> ?                                  ISP (user-level ppp)
> ?   10.0.0.50 = ep0 FreeBSD tun0 ---------?
> ?    / \
> ?     |
> ?     |
> ?   Local net
> ?
> ? I can't setup natd, (during this nigth).
> ?
> ?  I want, that mashines in 10.0.0. -- was be abble
> ?   connect with news-server outside my,
> ?  as i think, natd must change 10.0.0. address to address of my mashine,
> ?   during request from client to outside mashine, and do back substitute,
> ?   as proxy.
> ?
> ?
> ? According to documentation I included all options in kernel,
> ?
> ? in /etc/rc.firewall:
> ?    /sbin/ipfw -f flash
> ?    /sbin/ipfw add 1000 pass all from 127.0.0.1 to 127.0.0.1
> ?    /sbin/ipfw add divert 6668 all from any to any via ep0
> ?    /sbin/ipfw add 6500 pass all from any to any.
> ?
> ?
> ? in /etc/rc.local:
> ?    /usr/sbin/natd -n ep0
> ?
> ?
> ? what I doing wrong ?
> ?
>
> You're masquerading on the wrong interface.  You should remove natd
> altogether (along with your divert rules) and use the -alias switch
> to ppp.

 Yes. It's works.

   (But quite interesting, why Natd is not work, when I changed ep0 to tun0
in it ?)

  Great thanks.


> --
> Brian ?brian@Awfulhak.org?, ?brian@FreeBSD.org?, ?bri@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?3461BE63.D1047E3C>