[Cialug] Routing between subnets with iptables

Barry Von Ahsen barry at vonahsen.com
Wed Jan 16 20:47:20 CST 2013


Is the NAT device also the routing device?  Would a static route work?

-barry




-------- Original message --------
From: Don Ellis <don.ellis at gmail.com> 
Date:  
To: SLUUG general discussion <discuss at sluug.org>,Central Iowa Linux Users Group <cialug at cialug.org>,"Mailing List for LUG in greater Grand Rapids,	MI area." <grlug at grlug.org>,CWE-LUG <cwelug at googlegroups.com> 
Subject: [Cialug] Routing between subnets with iptables 
 
We have a network set up with two subnets behind a NAT. We are able to
get out of the network from either subnet.

What we want to do is be able to connect between a system on one
subnet and a system on the other subnet.

Does anyone have examples of doing this using iptables?

systemA in subnet0: 10.0.1.200
systemB in subnet1: 10.0.3.200

I have tried making changes in the iptables configuration, but I don't
have enough experience in iptables to know where to use -i, -o, -d,
and -s (I think those are the values to be adjusted here). Also, I'm
making assumptions about what table and chain the rules need to be
added to, and when to append (-A) and when to insert (-I).

Except for my first adjustment to something someone else had done
wrong, my shooting in the dark has had no results.

TIA,

--Don Ellis
_______________________________________________
Cialug mailing list
Cialug at cialug.org
http://cialug.org/mailman/listinfo/cialug


More information about the Cialug mailing list