From owner-freebsd-questions@FreeBSD.ORG Thu Jan 4 23:55:29 2007 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 7987216A531 for ; Thu, 4 Jan 2007 23:55:29 +0000 (UTC) (envelope-from dead_line@hotmail.com) Received: from bay0-omc2-s38.bay0.hotmail.com (bay0-omc2-s38.bay0.hotmail.com [65.54.246.174]) by mx1.freebsd.org (Postfix) with ESMTP id 2A3AE13C4E0 for ; Thu, 4 Jan 2007 23:55:27 +0000 (UTC) (envelope-from dead_line@hotmail.com) Received: from hotmail.com ([65.54.175.27]) by bay0-omc2-s38.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 4 Jan 2007 15:55:26 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 4 Jan 2007 15:55:26 -0800 Message-ID: Received: from 65.54.175.200 by by104fd.bay104.hotmail.msn.com with HTTP; Thu, 04 Jan 2007 23:55:26 GMT X-Originating-IP: [62.150.106.109] X-Originating-Email: [dead_line@hotmail.com] X-Sender: dead_line@hotmail.com From: "Marwan Sultan" To: freebsd-questions@freebsd.org Date: Thu, 04 Jan 2007 23:55:26 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 04 Jan 2007 23:55:26.0567 (UTC) FILETIME=[CE5C6F70:01C7305B] Subject: routing and networking help. (urgent help please) 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: Thu, 04 Jan 2007 23:55:29 -0000 Hello Gurus, This is an Urgent help, as everything pending, waiting.. a FreeBSD Solution. and I appologize if I will explain in details, please be patient with me. Just yesterday, our ISP installed 2 routers (both 3com) at our main office. One router acting for Datalink between the office and the branch (datarouter) One for the internet connection.(internet router) one short cable connected from the internet router to datalink router So everyone on the WAN has internet access which we donot want. So we decided to have our FreeBSD 6.1-R server, managing all the job. So I installed a FreeBSD box, with NATd enabled, this is how it works Internet router <---> rl0 192.168.0.3 freebsd dc0 192.168.1.1 <---> switch <---> all clinets also a cat5 cable hookedup from the datalink router to the switch. So the switch having the clinets+datalink router + lan freebsd cable. The datalink router connected to the branch site also WAN. the internet router has the following configurations. IP 192.168.0.2 gateway 192.168.0.254 and the datalink configuration has the follow gateway 192.168.0.253 WAN (branch site) IPs of 192.168.2.xx gateway 192.168.0.254 ALL can ping each other and see each other..(if there is no freebsd server) also wan works perfectly.. with no FreeBSD server.. Here is the problem the problem when I configure my fbsd lan interface to 192.168.1.1 and my clinets will have the IP 192.168.1.x/24 with gateway 192.168.0.254 wthey will have the internet.. and will NOT see any datalink clients, nor will see the WAN on the branch site. (diffrences of IPs and gateways) because clinets directed to the fbsd server which regonize 192.168.0.254 (internet router) If I configure my clients behind fbsd nat server to IPs of 192.168.0.x/24 and gateway 192.168.0.253 (Insted of 192.168.1.x and gw 192.168.0.254) they will see the datalink and wan but no internet. How would I make all clinets have my fbsd lan ips 192.168.1.x/24 and freebsd will have the ability to see the two gateways 192.168.0.254 (internet router) and 192.168.0.253 (datalink router) In short words, all clinets should be connected to FreeBSD server lan interface but in the same time, freebsd will route and manage to the requests for wan. Second problem: If i have rl0 to host my internet router real IP and defautlrouter to the NAT ip, internet will not work. ifconfig_rl0="inet 62.215.x.6 netmask 255.255.255.252" defaultrouter="62.215.x.5" #internet router IP No Internet. but if i host my rl0 to 192.168.0.3 and defaultrouter to 192.168.0.254 (internet router gateway) internet will work... ifconfig_rl0="inet 192.168.0.3 netmask 255.255.255.0" defaultrouter="192.168.0.254" The first case, disabling nat from router and having it to freebsd only second case, having the router to NAT and again freebsd doing another nat. Sorry Gurus for the long emails, excuse me, and waiting your reply asap. -Marwan Sultan. _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/