From owner-freebsd-questions@FreeBSD.ORG Sun Jan 25 16:50:28 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C57622FE for ; Sun, 25 Jan 2015 16:50:28 +0000 (UTC) Received: from potato.growveg.org (potato.growveg.org [62.49.247.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 824E2A3E for ; Sun, 25 Jan 2015 16:50:28 +0000 (UTC) Received: from john by potato.growveg.org with local (Exim 4.85 (FreeBSD)) (envelope-from ) id 1YFQOB-000A9c-8X for freebsd-questions@freebsd.org; Sun, 25 Jan 2015 16:50:19 +0000 Date: Sun, 25 Jan 2015 16:50:19 +0000 From: freebsd-lists@potato.growveg.org To: freebsd-questions@freebsd.org Subject: Re: real IP and rfc1918 IP on the same machine - how? Message-ID: <20150125165019.GA38580@potato.growveg.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <20150125141518.GA23664@potato.growveg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: John X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: john@potato.growveg.org X-SA-Exim-Scanned: No (on potato.growveg.org); SAEximRunCond expanded to false X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jan 2015 16:50:28 -0000 On Sun, Jan 25, 2015 at 08:16:11AM -0700, Matthew Hardcastle wrote: > > Hi John, > > The setup you’re describing is pretty standard and should “just work” > when configured correctly. It sounds like you may have misconfigured > one of your interfaces. The output of `ifconfig`, `netstat -rn`, and > `grep ^ifconfig /etc/rc.conf` would be helpful in diagnosing your > issue. > > Also, I noticed you say your wired interface is a /28 but then state > it’s configured as a /24. Perhaps this is your issue? Ah sorry I've probably worded it wrongly. em0 = wired interface = real ip on a /28 = 255.255.255.240 netmask ath0 = wireless interface = 192.168.100.100 netmask 255.255.255.0 Something just occurred to me. If the default route i.e. 0.0.0.0/0 -> my real router ip then how am I going to exclude 192.168.100.0/24 ? -- John