+- +-

+-User

Welcome, Guest.
Please login or register.
 
 
 

Login with your social network

Forgot your password?

+-Stats ezBlock

Members
Total Members: 4
Latest: guser
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 484
Total Topics: 383
Most Online Today: 4
Most Online Ever: 562
(November 28, 2023, 11:19:02 pm)
Users Online
Members: 0
Guests: 2
Total: 2

Author Topic: Making Subnets Communicate  (Read 135 times)

des

  • Sr. Member
  • ****
  • Posts: 344
  • Karma: +0/-0
    • View Profile
Making Subnets Communicate
« on: February 08, 2019, 07:12:02 pm »

This thread: 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. 

Share on Facebook Share on Twitter



des

  • Sr. Member
  • ****
  • Posts: 344
  • Karma: +0/-0
    • View Profile
Re: Making Subnets Communicate
« Reply #2 on: May 09, 2021, 02:40:12 pm »
To make them communicate from an ip range only, do the same in the first router and in the second:

Code: [Select]
iptables -I FORWARD -s [IP SUBNET]/[NETMASK NUMBER] -j ACCEPT

 

+-Recent Topics

JavaScript GUI For shelp.sh - Reading a File in JavaScript, Displayed on Linux Client by des
Today at 07:12:54 pm

Literate Programming Languages by des
March 17, 2024, 09:15:07 pm

My craziest experience with Android by des
March 13, 2024, 05:10:52 am

How to remove a device connected to Google ? by des
March 13, 2024, 05:07:54 am

How to reset Bluetooth on LMDE by des
March 13, 2024, 05:03:39 am

A few questions about Docker configuration by des
March 13, 2024, 05:01:19 am

subdomain of subdomain of home.arpa domain? by des
March 09, 2024, 10:40:00 pm

Firewall: HP Officejet Pro 8025e by des
March 04, 2024, 12:25:04 am

Linux Mint Apps: The Rest of Them by des
February 29, 2024, 11:33:33 pm

Linux Mint Apps: Program to print a google calendar and display it's events, like the builtin calendar app, but somethin by des
February 28, 2024, 07:36:47 pm