From owner-freebsd-questions@FreeBSD.ORG Fri Nov 23 14:33:32 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19C5616A421 for ; Fri, 23 Nov 2007 14:33:32 +0000 (UTC) (envelope-from alaorneto@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id 1A88B13C45D for ; Fri, 23 Nov 2007 14:33:30 +0000 (UTC) (envelope-from alaorneto@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so641151uge for ; Fri, 23 Nov 2007 06:33:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=tguBWy9faafofyW//0oi62YWoVYNvWtEci5CEizLcZ4=; b=FyTSawp3HNz6Tq+8WhhrH3FX8Y2VuHiDi7Z6LSehiFpbO6FLytKQPGpZY45GdqbEnkiAWNMhI/SgvplAWv0GYNw2iNnne8EXdhLQBHd+n/wTB8QNJeb/C+Q8ZGkOhYkjhlCz6wKnWk31k6A3POsKK6rOS9fDl2wb2CNOivyQIO8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=uYs8P4QbxskEg/NR92GUiFqx8niroFw2P3F/y0RiydofJjW+F2WXzD0GN+utZdD9gaw4WR6YenQCRKHxVRxOlTLuM/O5yn4w0apiodthntUfzatJSxAS5XI1imr2bd8VDt6fIbFtqr7wUcxu31QTdkKNt/LfgwXv5svCM1GDaEI= Received: by 10.142.245.10 with SMTP id s10mr141707wfh.1195828406936; Fri, 23 Nov 2007 06:33:26 -0800 (PST) Received: by 10.143.125.3 with HTTP; Fri, 23 Nov 2007 06:33:26 -0800 (PST) Message-ID: <2949641c0711230633t562adcd6j4792f72719ca9bf6@mail.gmail.com> Date: Fri, 23 Nov 2007 12:33:26 -0200 From: "Alaor Barroso de Carvalho Neto" To: "Bill Moran" In-Reply-To: <20071123091111.e5cfa679.wmoran@potentialtech.com> MIME-Version: 1.0 References: <2949641c0711210609xc9fcb89t8217cd0995d1c86b@mail.gmail.com> <474440FC.5090901@ibctech.ca> <2949641c0711210644y3ffe8d19ub409b581971e2b1d@mail.gmail.com> <2949641c0711210646p7ded7321g66c4978bb56f1868@mail.gmail.com> <47444C3C.3000003@ibctech.ca> <2949641c0711230452t202d4875k821d5ff753ca0307@mail.gmail.com> <20071123083415.838efb76.wmoran@potentialtech.com> <2949641c0711230541l1d031b93t6f095b7e0853577d@mail.gmail.com> <20071123091111.e5cfa679.wmoran@potentialtech.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: routing problem 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: Fri, 23 Nov 2007 14:33:32 -0000 2007/11/23, Bill Moran : > > "Alaor Barroso de Carvalho Neto" wrote: > > > > 2007/11/23, Bill Moran : > > > > > > "Alaor Barroso de Carvalho Neto" wrote: > > > > > > > > OK guyz, I did some tests and I found the error, like you said, it's > a > > > > config problem with the routes, I thought the routed daemon would > care of it > > > > for me but it seems like it don't. Please I ask you to forget the > scenario I > > > > said before, now what i have is: > > > > > > > > The dns server is now with the IP 192.168.1.1. But to turn things > more easy > > > > I installed it in the FreeBSD box that is gonna be my gateway and > proxy > > > > machine, so the problem isn't about the dns anymore. > > > > > > > > I work in a school and I have now this sccenario two local networks, > > > > 192.168.1/24, an administrative network and 192.168.2/24, an > academic > > > > network, plus I must have access to a network of other school with > the ip > > > > 10.10/16, because they share their database serverwith us. So the > FreeBSD > > > > machine have four network cards: > > > > > > > > em0 external world XXX.XXX.XXX.XXX > > > > rl0 adm 192.168.1.80 > > > > rl1 acad 192.168.2.90 > > > > rl3 database 10.10.0.50 > > > > > > > > They are all separated networks. What I want: 192.168.2 should only > access > > > > the internet, shouldn't have access to 192.168.1 or 10.10/16. > > > > 192.168.1should access the internet and > > > > 10.10/16, but shouldn't access the academic network. 10.10/16 should > access > > > > only the 192.168.1 network, but it's not a problem if they had > access to > > > > internet too. > > > > > > > > How I would set up my rc.conf with my static routes? > > > > > > This is beyond the scope of routing. You'll need to install a packet > > > filter. The best at this time is probably pf: > > > > > > > http://www.freebsd.org/cgi/man.cgi?query=pfctl&sektion=8&apropos=0&manpath=FreeBSD+6.2-RELEASE > > > > > > > http://www.freebsd.org/cgi/man.cgi?query=pf.conf&apropos=0&sektion=0&manpath=FreeBSD+6.2-RELEASE&format=html > > > > Yes, I have IPFIlTER installed, but if I would want to everybody ping to > > everybody and then block the things in the firewall, it isn't about > routes? > > because neighter of my networks are pinging to any other right now. By > ping > > I mean have access. I thought it would have something to do with setting > > routes. BTW, my ipfilter now just pass everything because I'm building > the > > server, but I already have a config file with the blocks that I would > apply. > > That's a completely different scenario than the one you described in > your previous message. > > Do you have gatetway_enable="YES" in /etc/rc.conf? > > -- > Bill Moran > http://www.potentialtech.com > Yeah, I know, I was trying to make it work with only adm and external, but the real scenario I have is this. Yes I have this line, my rc.conf is like this: [...] gateway_enable="yes" defaultrouter="XXX.XXX.XXX.158" (the external ip) ifconfig_em0="inet XXX.XXX.XXX.130 netmask 255.255.255.227" ifconfig_rl0="inet 192.168.1.80 netmask 255.255.255.0" ifconfig_rl1="inet 192.168.2.90 netmask 255.255.255.0" ifconfig_rl2="inet 10.10.0.50 netmask 255.255.0.0" [...] I don't know if that matters, but the yes should be YES to things work? I'd kill myself if this is the problem.