linksys router behind gateway not working

Ernie Luzar luzar722 at
Tue Feb 14 16:22:35 UTC 2017

Bernt Hansson wrote:
> On 2017-02-14 15:46, 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?
>> Thanks for any light you can shed on this
> Our connection is like this, can't check right now but it is from the 
> top of my head.
> internet--gateway--switch---LAN
>                                          |
>                                          |-- wifi
> Hope this is readable. The switch is dell power connect 2716 wifi is 
> asus something.
> .

This is what the layout looks like

  internet--gateway--switch-|---lan pc
                            |---lan pc
                            |-- lan pc

The router is a linksys model wrt160n with default internal config.
The LAN has worked for many years and still works with the router 
connected as shown as above, but nothing connected to the router works 
in this layout. I can cable a pc to the router and get connected to the 
router and it says that I have internet connection, but trying to browse 
to a url gives page not found error. The same thing happens if I wifi 
connect to the router.

The gateway is running ipfilter firewall and it's log shows nothing 
getting logged for the ip address assigned to the router.

The setup works if I place the router in front of the gateway so I know 
there is nothing wrong with the router. Having it this way is a security 
hole to my gateway server and lan.

More information about the freebsd-questions mailing list