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.
well i said not to use NAT, but either way will work. in your scenario the point of failure will be the return traffic from the adsl router. that router sits on one network and so can directly route traffic that sits within it's locally connected subnet. however it doesn't know how to reach the network on the other side of your linux router. so the traffic goes from the client, to the linux router, to the adls router, to the net. the reponse comes from the net, to the router and then chokes. by natting you make the client address become the address of the linux router which is on the same subnet as the adsl router, so the router can respond back fine. as above, a better solution would be to simply tell the adsl router that the client network lives via the linux router. then you don't need to nat and have a more visibile and clearer network.
as above, a better solution would be to simply tell the adsl router that the client network lives via the linux router. then you don't need to nat and have a more visibile and clearer network.
How do I do that? I have already added a static route to the ADSL routers routing table and it seems to work for local connections but not connections through the defaukt gateway.
My ADSL Routers Routing Table is as follows with the static route highlighted:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
194.159.161.34 * 255.255.255.255 UH 0 0 0 ppp41
10.0.0.0 * 255.255.0.0 U 0 0 0 br0
10.10.0.0 10.0.0.2 255.255.0.0 UG 1 0 0 br0
default 194.159.161.34 0.0.0.0 UG 0 0 0 ppp41
sorry, yes so it is... so what happens if you ping a 10.10.0.0 address from the adsl router (looks like a linux based adsl router there ... busybox?)? I would think that if you're now masquarading on the linux router, you won't be able to reach them.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.