From owner-freebsd-questions Wed Aug 9 18:31: 7 2000 Delivered-To: freebsd-questions@freebsd.org Received: from lebel.org (HSE-Montreal-ppp140171.sympatico.ca [64.228.201.114]) by hub.freebsd.org (Postfix) with SMTP id CE9EC37BFBA for ; Wed, 9 Aug 2000 18:31:01 -0700 (PDT) (envelope-from lebel@lebel.org) Received: (qmail 33672 invoked by uid 1001); 10 Aug 2000 01:31:03 -0000 Date: Wed, 9 Aug 2000 21:31:03 -0400 From: David Lebel To: freebsd-questions@freebsd.org Subject: problems with slow routing over tun0... Message-ID: <20000809213103.A17856@lebel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Organization: None whatsover. X-URL: http://www.lebel.org/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I'm kinda new to FreeBSD, but an old timer on various other UNIX flavours (esp. Linux). Now, my problem is I used to run Linux on my machine, and my machine was connected to the Internet via an ADSL connection (using PPPoE). That machine did also provide "masqueraded" Internet access via a secondary network interface and a local area network. Now, that same machine is running FreeBSD 4.1-STABLE with user-land ppp. Here is my netstat -rn output: ---cut--- Routing tables Internet: Destination Gateway Flags Netif Expire default 64.228.201.1 UGSc 30 168 tun0 10/24 link#1 UC 0 0 xl0 => 10 link#2 UC 0 0 ed1 => 10.0.0.1 0:50:4:8a:51:64 UHLW 1 34 lo0 10.0.0.50 link#1 UHLW 1 186 xl0 => 64.228.201.1 64.228.201.114 UH 30 0 tun0 127.0.0.1 127.0.0.1 UH 0 203 lo0 ---cut--- Now, my ppp.conf file (I've blanked my username and passwords, ...): ---cut--- default: set log Phase Chat IPCP CCP tun command nat enable yes nat same_ports yes nat use_sockets yes set redial 15 0 set reconnect 15 0 pppoe: set device PPPoE:ed1:sympatico.ca set mru 1412 set mtu 1412 set speed sync enable lqr set lqrperiod 5 set cd 5 set dial set login set timeout 0 set authname b1xxxxx@sympatico.ca set authkey xxxxxxx set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR enable dns ---cut--- And here is the output of my xl0 and tun0 interfaces: ---cut--- tun0: flags=8051 mtu 1412 inet6 fe80::250:4ff:fe8a:5164%tun0 --> :: prefixlen 64 scopeid 0xb inet 64.228.201.114 --> 64.228.201.1 netmask 0xffffff00 Opened by PID 362 xl0: flags=8843 mtu 1500 inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255 inet6 fe80::250:4ff:fe8a:5164%xl0 prefixlen 64 scopeid 0x1 ether 00:50:04:8a:51:64 media: autoselect (100baseTX ) status: active supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP 100baseTX ---cut--- xl0 is connected to my local area network. Now, the problem: whenever a machine inside my local area network (let say, 10.0.0.50, which is a notebook) try to access the Internet, I get timeouts, failures, very slow transfers (ie. <2KB/s on a 100KB/s line), etc... When that same machine tries to talk directly to the machine connected to the tun0, instead of going "thru" it, it goes at the full speed (ie. at 100Mb/s speed). Is there something wrong on my setup? The same "hardware" was doing this without any problems under Linux. Thanks in advance... Ciao, ...David -- // david lebel // nobiaze' Inc. // http://www.lebel.org/ // http://www.nobiaze.com/ // pgp: 3633 6999 D47E 73ED 099F // vox: (514) 943.3045 4341 08A4 8E48 EF56 61D1 // fax: (514) 938.8881 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message