Solved

routing between 2 subnets

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

786 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