From owner-freebsd-questions@FreeBSD.ORG Thu Mar 27 02:19:46 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E1AE237B401 for ; Thu, 27 Mar 2003 02:19:46 -0800 (PST) Received: from hp2.euro.net.mk (hp2.euro.net.mk [212.110.94.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24FD743F93 for ; Thu, 27 Mar 2003 02:19:42 -0800 (PST) (envelope-from FreeBSD@euro.net.mk) Received: from [212.110.94.68] by hp2.euronet.com.mk (NTMail 7.00.0018/SG1971.09.57a4aa33) with ESMTP id kmdqfaaa for freebsd-questions@freebsd.org; Thu, 27 Mar 2003 11:20:32 +0100 Date: Thu, 27 Mar 2003 11:20:32 +0100 From: Perica Veljanovski To: freebsd-questions@freebsd.org Message-Id: <20030327103938.673D.FREEBSD@euro.net.mk> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.00.01 X-VSMLoop: euronet.com.mk X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Subject: Dual homed host routing problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Mar 2003 10:19:49 -0000 Hi, I'm running FreeBSD 4.7-RELEASE and I have trouble routing between two NIC's. On one side I have a 192.168.1.0/24 network and on the other a 212.110.94.64/27 network on which I have mail and web servers, which the 192.168.1.0/24 hosts should be able to reach. Here are the ifconfig and netstat -r outputs: wb0: flags=8843 mtu 1500 inet 212.110.94.84 netmask 0xffffffe0 broadcast 212.110.94.95 inet6 fe80::280:48ff:feb5:af3%wb0 prefixlen 64 scopeid 0x1 ether 00:80:48:b5:0a:f3 media: Ethernet autoselect (100baseTX ) status: active rl0: flags=8843 mtu 1500 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::202:44ff:fe4f:958e%rl0 prefixlen 64 scopeid 0x2 ether 00:02:44:4f:95:8e media: Ethernet autoselect (10baseT/UTP) status: active Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 212.110.94.65 UGSc 4 0 wb0 localhost localhost UH 0 0 lo0 192.168.1 link#2 UC 1 0 rl0 192.168.1.255 ff:ff:ff:ff:ff:ff UHLWb 1 45 rl0 212.110.94.64/27 link#1 UC 8 0 wb0 and I have net.inet.ip.forwarding set to 1 How do I get my box to route packets between the two interfaces 192.168.1.1 and 212.110.94.84? -