Date: Wed, 15 Feb 2017 10:53:22 +0700 From: Olivier <Olivier.Nicole@cs.ait.ac.th> To: Ernie Luzar <luzar722@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: linksys router behind gateway not working Message-ID: <wu7ziho1559.fsf@banyan.cs.ait.ac.th> In-Reply-To: <58A3185B.7020606@gmail.com> (message from Ernie Luzar on Tue, 14 Feb 2017 09:46:51 -0500)
next in thread | previous in thread | raw e-mail | index | archive | help
Ernie, > 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? As others said, you give too few details. >From what I guess, you do NAT behind NAT. While it works in theory, it is not the best or fastest solution, you have to make sure your two NAT subnets are disjoints, etc. It is also better to use a static IP address for your WiFi router. As it was mentioned, you should be able to configure your WiFi router as a router or as a bridge. if the device has one yellow Ethernet port and several blue ports, use a blue port to connect to the main switch, disable DHCP and you are in. If your device has only one Ethernet port, you must make that choice at configuration level. Advantages of using bridge mode are that you only have one NAT level, all the clients on your network are equivalent, being on the LAN or on the WiFi, they show the same at the gateway (would you need some kind of authentication, debugging, whatelse), they get the same IP address range, etc. You only have to maintain one DHCP server at the gateway... Think the bridge mode like a WiFi switch. Best regards, Olivier
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?wu7ziho1559.fsf>