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 |
did you enable a firewall with masquerading ?
|
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? |
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... |
All times are GMT -5. The time now is 01:28 AM. |