Solved

routing between 2 subnets

Posted on 2003-12-01
3
392 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now