From owner-freebsd-questions@FreeBSD.ORG Sun Dec 3 14:20:47 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E46D616A412 for ; Sun, 3 Dec 2006 14:20:47 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87D5043CA8 for ; Sun, 3 Dec 2006 14:20:20 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout4.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kB3EKk4g021162 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 3 Dec 2006 06:20:47 -0800 X-Auth-Received: from [192.168.0.101] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kB3EKk2p010291 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 3 Dec 2006 06:20:46 -0800 Message-ID: <4572DD3D.8020601@u.washington.edu> Date: Sun, 03 Dec 2006 06:20:45 -0800 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.8 (X11/20061116) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <1165144127.1142.17.camel@redevil.savola.com> In-Reply-To: <1165144127.1142.17.camel@redevil.savola.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.2.2.285561, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2006.12.3.60932 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: Routing Issue? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Dec 2006 14:20:48 -0000 Yousef Adnan Raffah wrote: > Hello Everyone, > > I have a FreeBSD 6.1-RELEASE box that has two network cards (Dual > Homed?). Each card is on a different network, as following > (from /etc/rc.conf): > > ifconfig_fxp0="inet 192.168.20.36 netmask 255.255.255.0" > ifconfig_rl0="inet 192.168.210.6 netmask 255.255.255.0" > defaultrouter="192.168.210.1" > route_servers="-net 192.168.2.0 192.168.20.1" > static_routes="net1 net2" > route_net1="-net 172.20.68.0 192.168.20.1 255.255.254.0" > route_net2="-net 192.168.2.0 192.168.20.1" > > The fxp0 is connected to the outside world while the rl0 is connected to > the internal networks. I noticed whenever I ssh or try to telnet to port > 25 on this box from 192.168.2.x for example, it delays the response by > something like 10 seconds, I even have a tcpdump of that! > > Can someone explain what is wrong with my setup? Should I have routed > running? (I personally don't feel it is needed) > > Thanks in advance for your help and guidance. > > P.S. I got the above setup based on my understanding of the handbook, so > forgive me if I didn't understand it correctly :) I believe the actual fault is that you don't understand how networks are done, based on the /etc/rc.conf entries you've listed above. I suggest that you pick up Computer Networks: A System Approach by Peterson and Davie to pick up a basic idea of how networking and routing works, and maybe consult as a basis for planning out how things will be done, in particular with network addresses. Providing netstat -nr" output would be beneficial as well when troubleshooting issues with routing, as well as any firewall rules you have in place. -Garrett