General Information

Computers => Other => Topic started by: des on February 08, 2019, 09:12:02 pm


Title: Making Subnets Communicate
Post by: des on February 08, 2019, 09:12:02 pm

This thread: https://www.linuxquestions.org/questions/linux-networking-3/running-second-router-in-router-mode-dd-wrt-4175627289/page4.html (https://www.linuxquestions.org/questions/linux-networking-3/running-second-router-in-router-mode-dd-wrt-4175627289/page4.html), has a solution to making things work within the NAT environment. Maybe that will do for you? I'll just repeat it here.

 To make it work with NAT, you first set both to gateway mode, and do as before. Then, in the first router's routing table, add a static route:



Code: [Select]
Network: [your second router's subnet]
Netmask: [your second router's netmask]
Gateway: [your second router's WAN address]
Then, in the second router, you save a firewall script as follows:



Code: [Select]
iptables -I FORWARD -j ACCEPT
That's what you do. Then, it works with NAT. Why they recommend having the second router on router mode, instead of this, is beyond me... I couldn't make it work as they said it should either, but this is what I chose to do. 
Title: Re: Making Subnets Communicate
Post by: des on February 08, 2019, 09:13:15 pm
Reference: http://smileynetmain.createaforum.com/troubleshooting/linksys-wrt54g-dd-wrt-not-able-to-route-when-in-router-mode/