From owner-freebsd-questions Sun May 28 10:28: 5 2000 Delivered-To: freebsd-questions@freebsd.org Received: from imsp073.netvigator.com (imsp073.netvigator.com [205.252.144.130]) by hub.freebsd.org (Postfix) with ESMTP id 0F5D737B6E7 for ; Sun, 28 May 2000 10:28:00 -0700 (PDT) (envelope-from victor.tsang@ieee.org) Received: from ieee.org (bbig034067.netvigator.com [203.198.113.67]) by imsp073.netvigator.com (8.9.3/8.9.1) with ESMTP id BAA09322; Mon, 29 May 2000 01:27:46 +0800 (HKT) Message-ID: <393159A7.29F373C8@ieee.org> Date: Mon, 29 May 2000 01:38:47 +0800 From: Victor Tsang X-Mailer: Mozilla 4.72 [en] (X11; I; FreeBSD 4.0-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Jahanur R Subedar Cc: questions@freebsd.org Subject: Re: PPPoE and nat References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I know ppp -nat (ppp -alias) and that's what I used to establish PPPoE. I'm not using natd. As I configured it to start upon boot up, I enable it in rc.conf by setting ppp_nat="YES" as mentioned in my previous message. A fellow in this list reminded me about the MTU size... and I will try it later. However, I'd experienced something strange regarding nat which let me think the mtu is not the sole issue. I telnet to a BBS using the testing Mac machine and the bbs supports 2 kinds of languages: traditional Chinese and simplified Chinese. When I login as a traditional Chinese user, after I key in the password, there is nothing to show me and the telnet eventually timeout. However, if I login as a simplified Chinese user, the telnet session works fine and I can read and write messages in the bbs for an hour without any problem. Maybe the pppoe nat works from time to time, and it happens to work when I telnet as a simplified Chinese user. Jahanur R Subedar wrote: > do you know about ppp -alias. > that works great. you dont need nat at all. > > On Sun, 28 May 2000, Victor Tsang wrote: > > > I am new to FreeBSD and it is my first time to install FreeBSD. > > > > I installed FreeBSD 4.0 and am going to configure PPPoE and NAT. I > > followed the instructions found in FreeBSD.org web site and man pages > > and easily get PPPoE work. However, NAT don't work and its behavior is > > strange. > > > > My environment is one FreeBSD running as gateway, connecting my LAN and > > ISP using PPPoE and there is a Macintosh running Darwin in the LAN for > > my testing purpose. > > > > Either I don't enable NAT in rc.conf, or set ppp_nat="YES" , the > > behaviors are the same: > > > > In Macintosh, when I telnet to outside world, I can see the login screen > > and login prompt. Once I key in the user name and password, there is > > nothing to show on screen and eventually the telnet timeout and > > disconnected. > > > > Similarly in ftp: I can login ftp server but get no response after > > playing a very short while. > > ftp> user anonymous 123@123 > > ftp> dir > > (show something) > > ftp> cd pub > > (OK.) > > ftp> dir > > (no response! I tested for about 4-5 sites. All are "die" in dir the > > /pub directory.) > > > > I suspect two possibilities: > > 1. only the first packet (mtu or mur?) are transmitted successful but > > the subsequent packets are failed. > > 2. Something wrong in telnet and ftp packet translation. > > > > However, I have no clue on how to proceed futher. The /var/log/alias.log > > shows nothing helpful. > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > Jahanur R Subedar > WWW.JJSOFT.COM -- Victor Tsang victor.tsang@ieee.org FreeBSD + AfterStep To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message