Solved

routing between 2 subnets

Posted on 2003-12-01
3
401 Views
Last Modified: 2012-05-04
I have a 2 subnet (internal) network connected to a redhat 7.3 box with 2 nics. The linux box is the gateway to the internet for my 2 lans via ip MASQ configured in ipchains. Linux is connected to subnet A on eth1 and the internet on eth0 (just for clarity) for subnet B I have a linksys BEFW1154 which connects to subnet A throught the WAN port. I changed the linksys to router mode instead of gateway mode and the static routes are configured on both the linksys and the linux boxes. Here is the problem:  subnet A CAN communicate with subnet B and vise versa and Subnet A CAN access the internet but Subnet B CANNOT.

here is a layout of my configuration:

internet--Linux--LAN1-------------------------------------------LAN1--Linksys--LAN2
      |                   |                                                            |                    |
 68.x.x.x ---/---192.168.0.x                                     192.168.0.x---/--- 192.168.1.x(cannot
                                                                                                         (access public ips)  
0
Comment
Question by:hfc_docsis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9854886
have a check this document which can give you the idea of using the iproute and  build the secure network http://lartc.org/howto/index.html
0
 
LVL 12

Accepted Solution

by:
paullamhkg earned 125 total points
ID: 9854897
also you can have a check this one http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/
0
 

Author Comment

by:hfc_docsis
ID: 9855919
The problem was with my ipchains setup. I didnt have a rule to mask out from subnet B.
The statement was
ipchains -A forward -j MASQ -i eth0 -s 192.168.1.0/24 -d 0.0.0.0/0

Thanks
0

Featured Post

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question