From owner-freebsd-ipfw@FreeBSD.ORG Wed Jul 26 23:07:07 2006 Return-Path: X-Original-To: freebsd-ipfw@freebsd.org Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E395316A4DA for ; Wed, 26 Jul 2006 23:07:07 +0000 (UTC) (envelope-from webmaster@elaconta.com) Received: from sapo.pt (relay3.ptmail.sapo.pt [212.55.154.23]) by mx1.FreeBSD.org (Postfix) with SMTP id E28C143D4C for ; Wed, 26 Jul 2006 23:07:06 +0000 (GMT) (envelope-from webmaster@elaconta.com) Received: (qmail 5508 invoked from network); 26 Jul 2006 23:07:04 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.206) by relay3 with SMTP; 26 Jul 2006 23:07:04 -0000 Received: (qmail 14275 invoked from network); 26 Jul 2006 23:07:04 -0000 X-AntiVirus: PTMail-AV 0.3-0.88.3 X-Virus-Status: Clean (0.01259 seconds) Received: from unknown (HELO pop.elaconta.pt) (op149960@[213.228.181.10]) (envelope-sender ) by mta11 (qmail-ldap-1.03) with SMTP for ; 26 Jul 2006 23:07:04 -0000 Received: from pop.elaconta.pt (localhost.elaconta.pt [127.0.0.1]) by pop.elaconta.pt (Postfix) with ESMTP id 87D9527E644; Thu, 27 Jul 2006 00:07:04 +0100 (WEST) Received: from [192.168.0.165] (195-23-239-12.nr.ip.pt [195.23.239.12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pop.elaconta.pt (Postfix) with ESMTP id D556827E5D8; Thu, 27 Jul 2006 00:07:03 +0100 (WEST) Message-ID: <44C7F4BE.2080805@elaconta.com> Date: Thu, 27 Jul 2006 00:03:26 +0100 From: "elaconta.com Webmaster" User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Tony Abou-Assaleh References: <44C7C55E.3090907@elaconta.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-ipfw@freebsd.org Subject: Re: FreeBSD Gateway to replace old Linux gateway X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jul 2006 23:07:08 -0000 Tony Abou-Assaleh wrote: > I would like to see a reference that shows that it is not possible to have > two networks with the same subnet IP ranges. In fact, your working linux > PC is a good example that it can be done. > > You need to be careful not to use the same full IP address on both sides > of the network, that's about it. The rest can be handled with a proper > configuration of the routing table. > > take a look at your routing table (using route) and see if you can > reproduce it on FreeBSD. If you run into problems on the freebsd, report > them, and someone might recognize something. > > Cheers, > > TAA > > ----------------------------------------------------- > Tony Abou-Assaleh > Email: taa@acm.org > Web site: http://taa.eits.ca > ----------------------[THE END]---------------------- > > On Wed, 26 Jul 2006, elaconta.com Webmaster wrote: > > >> Howdy >> >> We have here an old (Mandrake Linux 8 - yeah i know...) PC with two NICs >> which serves as a firewall for our LAN and runs a Bind caching nameserver. >> Although the machine is getting old, it still works well. Thing is, i'm >> having a hard time trying to reproduce it, that is, getting another PC >> to do exactly the same thing this PC is doing. It was configured by a >> guy that left the company, so i can't simply ask him how he configured >> it configured. >> It's a precautionary measure, if the machine breaks down we need another >> one to go in its place. >> So while am at it i would love to replace the crusty old thing with a >> new one running FreeBSD. >> The networking scheme is: >> >> Router (192.168.1.120) <-> (192.168.1.121) Firewall PC (192.168.1.122) >> <-> (192.168.1.0/24) LAN >> >> Now, thing is, the Linux firewall has two NICs: >> >> NIC 1: 192.168.1.121 >> NIC 2: 192.168.1.122 >> >> The two NICs on the Linux box are configured with 192.168.1.121 and >> 192.168.1.122, both interfaces on the same subnet. 192.168.1.121 acesses >> the company router (192.168.1.120) and 192.168.1.122 acesses the company >> LAN (192.168.1.0/24) >> >From what i've googled, this shouldn't even be possible, everything is >> on the same subnet. Regardless, it works great, and if i went and got an >> FreeBSD rig to replace the old Linux rig, it would have to retain this >> networking scheme, we can't afford to reconfigure the entire network >> just for switching our firewall. >> >> I known we could use a network bridge, but we need the caching >> nameserver functionality. >> >> I'm an all round Unix guy, but i'm a bit green on the routing departament. >> >> Can an FreeBSD box be configured the same way the Linux box is so it can >> be a drop-in replacement for the Linux box? I can of course depict in >> further detail the configuration of the Linux box (netstat -r to show >> the routes, ifconfig or whatever). >> >> I've already prepped a FreeBSD 6.1 box which already works if the NICs in the gateway >> are in different subnets (dc0 is 192.168.1.125 and dc1 is 192.168.0.5, for instance), >> i've changed a PC in the network to the 192.168.0.20 IP (instead of 192.168.1.20) and >> if connected without a problem to the Internet, but we have lots of appliances which >> depend on the 192.168.1.0 style network. We would need the two NICs in the box to be in the same subnet... >> >> ----------------------------- >> Elaconta.com Webmaster >> ----------------------------- >> >> _______________________________________________ >> freebsd-ipfw@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw >> To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org" >> >> > > > The routing table on the Linux box, as shown per the "route" command: [root@visao root]# route Tabela de Roteamento IP do Kernel Destino Roteador MáscaraGen. Opções Métrica Ref Uso Iface 192.168.1.0 * 255.255.255.0 U 0 0 0 eth1 192.168.1.0 * 255.255.255.0 U 0 0 0 eth1 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default 192.168.1.120 0.0.0.0 UG 0 0 0 eth0 Hum, some things in this table are in portuguese... Basically "Tabela de Roteamento IP do Kernel" means Kernel IP Routing Table, "Destino" means Destiny, "Roteador" means Router, "Máscara" means Mask. Now the thing that strikes me in this Linux routing table are the asterisks (*).Are they normal, or some kind of Linux black magic? Is there a way to reproduce this routing table on FreeBSD? What do the asteriks mean? ----------------------------- Elaconta.com Webmaster -----------------------------