Solved

routing between 2 subnets

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

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

759 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