LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-01-2006, 04:13 AM   #16
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985

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.
 
Old 08-01-2006, 06:36 AM   #17
codedv
Member
 
Registered: Nov 2003
Location: Slough, UK
Distribution: Debian
Posts: 146

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie
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
10.0.0.2 is the address of the Linux Router.
 
Old 08-01-2006, 07:21 AM   #18
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
routing tables or forwarding through IPTABLES razan Linux - Networking 7 03-24-2005 10:15 PM
routing/forwarding between multiple (3+) nics sublime Linux - Networking 2 07-26-2004 02:22 AM
IP Forwarding/Routing not working in Fedora 2 zeroGsa Linux - Networking 7 06-26-2004 04:16 AM
dialin server not routing/forwarding??? forumuser7 Linux - Networking 0 04-02-2004 01:54 PM
strange routing/IP forwarding behavior lukas_z Linux - Networking 3 07-25-2003 10:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration