From owner-freebsd-questions@freebsd.org Tue Feb 14 23:18:14 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 609ACC0303D for ; Tue, 14 Feb 2017 23:18:14 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-qk0-x235.google.com (mail-qk0-x235.google.com [IPv6:2607:f8b0:400d:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2688C10CC for ; Tue, 14 Feb 2017 23:18:13 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-qk0-x235.google.com with SMTP id p22so45833954qka.0 for ; Tue, 14 Feb 2017 15:18:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=date:from:to:subject:message-id:in-reply-to:references:organization :mime-version:content-transfer-encoding; bh=fc/+Bi2yHh+HWhLuAxaWzs07oRPYB9tTI9w0NZsem5Y=; b=ZPPJGo7AIVNSfqNcUsURkuInA/HJBf27piYVk4cvpKE0mj0T3wC6/6PnsDExSC7DpN AYLnx4A6iEHLev2z0YFdxj9R+DzBSGnJy4ROP1gzh5SB4QoLiKTBhfY0YyKKBZexA4K8 NI444NFi+SQnrJZ/4E1DZn+s31vY2mLJvtaDE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=fc/+Bi2yHh+HWhLuAxaWzs07oRPYB9tTI9w0NZsem5Y=; b=aUTXxgm1OWaj3fOjeDk5eJj9gjcaLQFCdCyi58Kd5KSgBfZk6N7QyeZPq32SKIgJPI R0db8UWjctBtEJNSnaAf9/rng7imUEdzL/7NipOPIYgFEeXF2U1v0INT83QXDq7qqupt 3e1vgwvaKgqm8okbyll13tXZ7udgHZQc88Wv/9pPk1lg08S2AkSiqkd7Bj2BuBsrZTwl h0CybfhD6nmBpLHovH+GdRQ5KNAMVuUU/11jgKv7V16e3HLpHSqTJwV7Wb0ToXtQqRCw PQAkykwc5kk3Qpht7ERJcpxYax501fveWlRKgrcF6UX53dURdx1OoY8q0QgG3wVGkdwT 6ZcQ== X-Gm-Message-State: AMke39kVHbAm5yMFy4ftSx8YMmjhlkSTPc+tCYbEumUmRX9xFtbCvd//t79NVUVcfYDr8A== X-Received: by 10.55.154.204 with SMTP id c195mr29325902qke.293.1487114293029; Tue, 14 Feb 2017 15:18:13 -0800 (PST) Received: from Papi ([177.158.101.118]) by smtp.gmail.com with ESMTPSA id y2sm1198720qta.61.2017.02.14.15.18.12 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Feb 2017 15:18:12 -0800 (PST) Date: Tue, 14 Feb 2017 20:19:04 -0300 From: Mario Lobo To: freebsd-questions@freebsd.org Subject: Re: linksys router behind gateway not working Message-ID: <20170214201904.7cfae158@Papi> In-Reply-To: <58A3185B.7020606@gmail.com> References: <58A3185B.7020606@gmail.com> Organization: BSD X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2017 23:18:14 -0000 Hi Ernie; On Tue, 14 Feb 2017 09:46:51 -0500 Ernie Luzar wrote: > Hello list; > > I am running 11.0 on my gateway system. It has a small LAN behind it. > This gateway host has ipfilter firewall and a dhcp server. The LAN is > cabled from the host to a switch and from the switch to each PC on > the LAN. I added a cable from the switch to a linksys wifi router. I > can get wifi and cable connection to the router but no connection to > the public internet through the LAN. The dhcp server lease file shoes > a lease for the router. I can see this ip address in the router's > internal configuration. > > Is the problem because the router NATs it's issued ip address and > then the host gateway system NAT's it again? > It shouldn't be. The problem must some configuration in the LAN side of linksys. You pluggued the WAN port of the linksys to your switch, right? Do the wifi clients get an IP from the linksys internal net? I have this very same config here at home, with 2 different wifi routers. My advice is: Disable the routing function (NAT/DHCP) completely from the linksys, Assign a fixed IP from your gatway LAN to the linksys LAN, and let your wifi clients get their IPs from your gateway. It will act just as an AP (a wifi switch). Much simpler and of course, less overhead for your linksys. I don't know the details of how to do this with this particular router but I'm sure there must be away. I've done with several different routers and it varies from router to router. On some, there is an AP mode. On another, is bridging all interfaces together. But on all of them, DHCP must be disabled and its LAN interface must have an IP from your gateway LAN. -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since 2.2.8 [not Pro-Audio.... YET!!] "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things."