+- +-

+-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: 380
Total Topics: 296
Most Online Today: 1
Most Online Ever: 413
(February 23, 2023, 05:55:07 am)
Users Online
Members: 0
Guests: 1
Total: 1

Author Topic: Making Subnets Communicate  (Read 114 times)

des

  • Full Member
  • ***
  • Posts: 246
  • 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

  • Full Member
  • ***
  • Posts: 246
  • 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

Joining Linux Mint 21.1 to Windows Server 2019 Domain by des
March 15, 2023, 03:47:25 am

Commercial Version of LM by des
March 13, 2023, 04:32:55 am

Is Linux Mint legal? by des
March 13, 2023, 04:20:30 am

First Day of Having Calendar - Anniversary by root
March 13, 2023, 04:17:28 am

Implementing a Compression Algorithm for PNF by des
March 13, 2023, 12:51:26 am

EULA and Remote Access by des
March 12, 2023, 12:14:55 am

Linux Mint Repositories by des
March 11, 2023, 06:20:26 pm

Smart Bulb Flickering Only on Some Colors by des
March 01, 2023, 09:58:47 pm

Custom Linux Mint Cinnamon Look - des a by des
February 28, 2023, 10:17:54 pm

MOVED: battlestar source code: On a fun note by root
February 20, 2023, 12:12:14 am