Date: Wed, 9 Aug 2000 21:31:03 -0400 From: David Lebel <lebel@lebel.org> To: freebsd-questions@freebsd.org Subject: problems with slow routing over tun0... Message-ID: <20000809213103.A17856@lebel.org>
next in thread | raw e-mail | index | archive | help
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<UP,POINTOPOINT,RUNNING,MULTICAST> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex>) status: active
supported media: autoselect 100baseTX <full-duplex> 100baseTX 10baseT/UTP <full-duplex> 10baseT/UTP 100baseTX <hw-loopback>
---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 <lebel@lebel.org> // 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000809213103.A17856>
