Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a LAN (LAN1) that is working well and is connected to the internet. There is also a 2nd LAN (LAN2).
The nodes in LAN2 are connected to one another through netgear's WGT624 wireless router. All nodes in LAN2 can ping eachother. But this router has no connection to the internet. However one node (192.168.1.100) in LAN2 is also a node (192.168.0.100) on LAN1 so it can see the internet.
I have two questions:
1) How do I get WGT624 to send all packets from other machines through 192.168.1.100?
2) Then, do I use Masquerading to forward all requests from LAN2 to LAN1?
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
need a bit more info about hardware.
What is lan 1 using to connect to the internet?
Is lan1 a mix of wireless and wired or just wired?
If lan1 is on a wired router then how about making the wgt624 the main router and connect as many machines to this router. Leave one etherport open. With a cross over cable connect from lan1 router to the lan side of the other router. No connection to the wan side of router2. Now turn off any DHCP and set the wan side to something like 192.168.50.100. Something not used any where elses. Now the machines connected to the second router will either get an IP from the first router or if static use the same class C IP range as it is using and use the gateway on the lan side of router1. So in essence the second router is only using the switch portion of the device.
The first router is a wireless Actiontec DSL router. It is my only option for an internet connection.
So I really need to know how to get all nodes from LAN2 to reach the internet through linux box 1 (lb1). lb1 is connected wirelessly to LAN1 (the actiontec router) and wired to LAN2.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Ok if I understand this the Aciontec DSL router is connected to the Internet. Then the Linux Box 1 connects to it wirelessly. Now you have a wired nic in Linux Box 1 and connect them to lan 2 machines.
Is this correct?
How do you wish to use the netgear?
Option:1 Leaving machines on lan2 to talk to each other and to Linux box 1 but not allow Linux Box 1 to connect to services on lan2.
Option:2 Have all machines on lan2 to talk to each other and have Linux box 1 but also allow Linux Box to connect to services on lan2.
I would go Option:1 so as to leave the linux box as a more secure router/firewall. Actually I doubt there is much difference.
Before going on lets make sure we are on the same page with your setup
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.