From owner-freebsd-questions@FreeBSD.ORG  Sun Jan 25 15:16:19 2015
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 0C9D4FAB
 for <freebsd-questions@freebsd.org>; Sun, 25 Jan 2015 15:16:19 +0000 (UTC)
Received: from homiemail-a26.g.dreamhost.com (sub4.mail.dreamhost.com
 [69.163.253.135]) by mx1.freebsd.org (Postfix) with ESMTP id E155CF3C
 for <freebsd-questions@freebsd.org>; Sun, 25 Jan 2015 15:16:18 +0000 (UTC)
Received: from homiemail-a26.g.dreamhost.com (localhost [127.0.0.1])
 by homiemail-a26.g.dreamhost.com (Postfix) with ESMTP id B3F70B8058;
 Sun, 25 Jan 2015 07:16:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=doomgeek.com; h=subject
 :mime-version:content-type:from:in-reply-to:date:cc
 :content-transfer-encoding:message-id:references:to; s=
 doomgeek.com; bh=MqiusSQXJXYUH84JusWDDsj5pmY=; b=ED2sDODoemscUHx
 V/Acaqq5p8OAH7B6/FuGvX5I/uXRbjG7WQsYUwgH8F7TPu8XDPFBLOU/G/zNj560
 xUbITy4OaXfQFypYOLGsOVsRR4ink3DMKZ1VksiGJlc5pgiWVJNbKv/0fiZ/SZ2O
 tr8NeJ5FnCPx/X7MfP6FrjGJ1ej8=
Received: from [10.0.66.52] (c-73-20-92-222.hsd1.ut.comcast.net [73.20.92.222])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: geek@doomgeek.com)
 by homiemail-a26.g.dreamhost.com (Postfix) with ESMTPSA id 7D24DB8057;
 Sun, 25 Jan 2015 07:16:12 -0800 (PST)
Subject: Re: real IP and rfc1918 IP on the same machine - how?
Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\))
Content-Type: text/plain; charset=utf-8
From: Matthew Hardcastle <geek@doomgeek.com>
In-Reply-To: <20150125141518.GA23664@potato.growveg.org>
Date: Sun, 25 Jan 2015 08:16:11 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <FE000C8F-1C05-4B4B-B7EA-D32118D09C0E@doomgeek.com>
References: <20150125141518.GA23664@potato.growveg.org>
To: John <freebsd-lists@potato.growveg.org>
X-Mailer: Apple Mail (2.1993)
Cc: freebsd-questions@freebsd.org
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.18-1
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 25 Jan 2015 15:16:19 -0000


> On Jan 25, 2015, at 7:15 AM, John <freebsd-lists@potato.growveg.org> =
wrote:
>=20
> hello freebsd-questions,
>=20
> I have a workstation with two NICs - one wired (real IP address on a=20=

> /28) and one wireless, which I want to configure to use the protected=20=

> wireless LAN on 192.168.100.0/24. I want the internet to route through=20=

> real IP address, and I want access to the wireless LAN. I don't want =
to=20
> route out to the internet through the wireless LAN, I just need to be=20=

> able to contact the machines within it. The wireless LAN itself has =
its=20
> own gateway, which is not this machine but a wifi access point.
>=20
> How can I configure the ath0 interface so it sees the wireless LAN but=20=

> doesn't break routing to the outside world on this machine? Both=20
> interfaces will have static IPs. I have tried statically assigning =
ath0=20
> (wireless interface) to 192.168.100.100 255.255.255.0 , em0 interface =
to=20
> [real IP] and default gateway to the real IP of the gateway, but once =
I=20
> bring the interfaces up I cannot access the real IP of the default=20
> gateway.
>=20
> can anyone help?
>=20
> thanks,
>=20
> --=20
> John=20

Hi John,

The setup you=E2=80=99re describing is pretty standard and should =
=E2=80=9Cjust work=E2=80=9D 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=E2=80=99s configured as a /24. Perhaps this is your issue?

Matt=