LinuxQuestions.org
Review your favorite Linux distribution.
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 09-29-2003, 07:22 PM   #1
cox
LQ Newbie
 
Registered: Sep 2003
Location: Rio de Janeiro - Brazil
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
static route


I'd like to implement a configuration change on my network using static routes.

Today I have this configuration:

-- eth0 (192.168.7.0/24)----\
-- eth1 (10.254.103.0/24)----> Linux Box
-- eth2 (Valid /24 IP range)--/

On my Linux Box, I run a Media Server. The media server ip address is 10.254.103.2. I am connected, with this network, to 10.254.103.1.

I need to change the machine that runs this Media server daemon. The other machine is on the eth2 network, but needs to has the ip address 10.254.103.3.

I made a static route on 10.254.103.1 router. All the traffic for 10.254.103.3 will be route to 10.254.103.2.
network -> 10.254.103.1 -> 10.254.103.2 -> 10.254.103.3
I made some static routes on Linux Box too.

I can traceroute, and ping successfully, but the Media daemon server recognize the connections came from the network connected via 10.254.103.1 always with ip eth2 IP... But these connections are coming from other ip address.

It's working like a proxy, but it is not a proxy, because I really need the real ip address for UDP packets.

Does anybody know where is my error?

thanks and sorry my english mistakes
 
Old 09-29-2003, 07:33 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
did you enable a firewall with masquerading ?
 
Old 09-29-2003, 09:02 PM   #3
cox
LQ Newbie
 
Registered: Sep 2003
Location: Rio de Janeiro - Brazil
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: 0
I'll try to explain better what I want to do...

____________________
| Linux Box |
| eth0 (192.168.7.x) |
10.254.103.1 <- | eth1 (10.254.103.2) |
z.x.y.129(gw)<- | eth2 (z.x.y.151) | -> 10.254.103.3 (*)
--------------------------------

The (*) is what I want.

A way to route packets from/to 10.254.103.3.

I already have a static route from the 10.254.103.1 router to pass packets to 10.254.103.3 destination thru 10.254.103.2.

As I sad, the from address of the connection is z.y.x.151.

And the traceroute from 10.254.103.3 to some address reachable from 10.254.103.0/24 network is
10.254.103.3 -> z.y.x.151 -> 10.254.103.1 -> ...
I expected
10.254.103.3 -> 10.254.103.2 -> 10.254.103.1 -> ...

What can I do?
 
Old 09-30-2003, 02:22 PM   #4
cox
LQ Newbie
 
Registered: Sep 2003
Location: Rio de Janeiro - Brazil
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: 0
I guess I understood the reason of your simple question.

I was doing my NAT wrong, without using -s localnetwork address.

Now, I change this configuration and the static route is working now.

Thanks for your simple help... It makes me think about and I realize that I am masquereding all address...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Help with static route noinfo Linux - Networking 1 10-05-2005 11:40 AM
mandrake static route information jeffxor Linux - Networking 1 03-26-2005 03:10 PM
Adding static route in Mandrake 9.2 bloke Linux - Networking 1 02-23-2004 07:38 AM
STATIC Route using IPTables Milkman00 Linux - Networking 3 03-06-2003 07:47 PM
Static route to a router? Milkman00 Linux - Networking 9 02-09-2003 11:11 AM


All times are GMT -5. The time now is 12:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration