From owner-freebsd-questions Tue Apr 4 4:43:52 2000 Delivered-To: freebsd-questions@freebsd.org Received: from enterprise.sanyusan.se (enterprise.sanyusan.se [212.209.55.83]) by hub.freebsd.org (Postfix) with ESMTP id EF64A37B627 for ; Tue, 4 Apr 2000 04:43:47 -0700 (PDT) (envelope-from anders@enterprise.sanyusan.se) Received: (from anders@localhost) by enterprise.sanyusan.se (8.9.3/8.9.3) id NAA35731 for questions@FreeBSD.org; Tue, 4 Apr 2000 13:43:36 +0200 (CEST) (envelope-from anders) Date: Tue, 4 Apr 2000 13:43:36 +0200 From: Anders Andersson To: questions@FreeBSD.org Subject: NAT/Gateway routing problems? Message-ID: <20000404134336.A35647@enterprise.sanyusan.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have an old Compaq P60/16MB RAM box with 2 NIC's (3Com 509) setup as our NAT box here at my company. I use FreeBSD-4.0-RELEASE on this box. We have 212.209.55.80/28 as our "real" IP numbers. I use 192.168.4.1 for our local NAT LAN. from rc.conf: ifconfig_ep0="inet 212.209.55.82 netmask 255.255.255.240" ifconfig_ep1="inet 192.168.4.17 netmask 255.255.255.0" defaultrouter="212.209.55.81" gateway_enable="YES" I have a kernel with: options IPFIREWALL options IPDIVERT to allow natd to work. It works fine, except its damn slow to be honest. If I for example should do a ftp install of FreeBSD on a box on my local LAN, a box with IP 192.168.4.19 for example. I have a FreeBSD mirror at 212.209.55.83. All our 192.168.4. hosts are connected to a 3com SuperStack 3300 switch and our "public" IP's are connected to a 3com SuperStack 1000 switch. ep0 in my gw box is connected to the "internet" switch and the ep1 card is connected to the "local" switch. I start the ftp install of FreeBSD and I get very bad transfer rates, bad means in this case about 4kb/s transfer rates! So I figures something must be wrong here. Maybe I need to setup some routing tables? Please help me out here. If you want more information, please do not hesitate to contact me. -- Anders Andersson anders@sanyusan.se Sanyusan International AB http://www.sanyusan.se/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message