From owner-freebsd-questions@FreeBSD.ORG Wed May 7 04:25:40 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 EFCDC37B401 for ; Wed, 7 May 2003 04:25:40 -0700 (PDT) Received: from ns2.weronet.com (chello213047208163.surfer.at [213.47.208.163]) by mx1.FreeBSD.org (Postfix) with SMTP id 788B443F3F for ; Wed, 7 May 2003 04:25:39 -0700 (PDT) (envelope-from freebsd@werosoft.com) Received: (qmail 64030 invoked from network); 7 May 2003 12:07:00 -0000 Received: from unknown (HELO sonne) (213.47.208.170) by ns2.weronet.com with SMTP; 7 May 2003 12:07:00 -0000 From: "Ronald Weinrich" To: freebsd-questions@freebsd.org Date: Wed, 07 May 2003 13:27:46 +0200 MIME-Version: 1.0 Message-ID: <3EB909D2.28350.968671F@localhost> Priority: normal References: <3EB8E570.5774.8DA49D3@localhost> In-reply-to: <200305071245.05490.danny@ricin.com> X-mailer: Pegasus Mail for Windows (v4.02, DE v4.02 R1) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Subject: Re: no route to host X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd@werosoft.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2003 11:25:41 -0000 Hi Danny Pansters, thank you for clearing me up so that means 213.47.28.166/32 is only ip 213.47.28.166 if try to create a static route from 192.168.0.0/16 to my dns1 on 213.47.28.162/32 I have to add to my rc.conf static_route="dns" route_nds="-net 192.168.0.0/16 213.47.28.162/32" --------- ip xx.xx.xx.xx MY ROUTER --------- 213.47.28.161 is gw for ..162 and 163 | | --------www dns1 xx.xx.xx.162 | --------dns2 xx.xx.xx.163 | | --------- ed0 xx.xx.xx.166 freebsd-box ipnat should run here :) (ipfilter) later may be ;) --------- ep0 192.168.0.1 gw for intra 192.168.0.xx ^ ^ 192.168.0.0/16 correct ? thank you ron > No. 213.0.0.0/8 would mean a whole class A netblock. The number 8 means 8 bits > for the subnet part (starting from left, which is only the first byte, or 8 > bits) and 24 bits for the host part. So this is a subnet that can have ~ 16 > million hosts. More precisely the 213.47.28.160/8 describes what can be > called host 47.28.160 on that huge subnet (supernet really). > > In contrast, 213.47.28.166 with a 255.255.255.240 mask is 213.47.28.166/28. So > your gateway is host number 6 on the 213.47.28.160/28 subnet, 213.47.28.160 > being the network address, 213.47.28.175 being the broadcast address and the > 14 numbers inbetween can be used as host IPs. > > > It's not a firewalling/NAT problem, although it's a good idea to have routing > OK'd before dealing with filtering/NAT on the gateway/firewall box. > > HTH, > > Danny > > > > from outside 213.47.28.160/28 to ed0 213.47.28.166/32 works > > > > is that a ipnat problem? or a routing problem? > > > > -- > > Ricin Radio! > http://www.mp3.com/stations/ricin_radio > >